# Stock\_levels OUT catalog items are not being reflected/searched properly

**URL:** <https://developer.squareup.com/forums/t/stock-levels-out-catalog-items-are-not-being-reflected-searched-properly/6445>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [July 11, 2022, 7:15pm UTC](https://developer.squareup.com/forums/t/stock-levels-out-catalog-items-are-not-being-reflected-searched-properly/6445 "2022-07-11T19:15:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justsqit](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@justsqit](https://developer.squareup.com/forums/u/justsqit)\
**Post date:** [July 11, 2022, 7:15pm UTC](https://developer.squareup.com/forums/t/stock-levels-out-catalog-items-are-not-being-reflected-searched-properly/6445/1 "2022-07-11T19:15:29Z")

</div>

Hi there,

I have a catalog item named **(AUTOMATIONTEST)** with variation id = **4B55VLXMVHHUBE2LRXY7OKKD** that currently has 0 stock. I was able to locate its 0 quantity IN\_STOCK using the **retrieve\_inventory\_count** endpoint, response shown below:

```auto
{
  "counts": [
    {
      "catalog_object_id": "4B55VLXMVHHUBE2LRXY7OKKD",
      "catalog_object_type": "ITEM_VARIATION",
      "state": "IN_STOCK",
      "location_id": "LB5F8WYCHXM5V",
      "quantity": "0",
      "calculated_at": "2022-07-11T18:42:41.03Z"
    }
  ]
}

```

However, when I tried to locate it from the **search-catalog-items** endpoint with “stock\_levels”: [“OUT”] filter on, I was not able to locate it somehow?!

Here is the request I had:

```auto
curl https://connect.squareup.com/v2/catalog/search-catalog-items \
  -X POST \
  -H 'Square-Version: 2022-06-16' \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled_location_ids": [
      "LB5F8WYCHXM5V"
    ],
    "product_types": [
      "REGULAR"
    ],
    "text_filter": "(AUTOMATIONTEST)",
    "stock_levels": [
      "OUT"
    ]
  }'

```

And here is the response I got:

```auto
{
  "cursor": ""
}

```

Is this a bug on Square’s end? Or is there something I am not doing correctly here? Correct me if I am wrong. Thanks for helping!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 18, 2022, 6:13pm UTC](https://developer.squareup.com/forums/t/stock-levels-out-catalog-items-are-not-being-reflected-searched-properly/6445/2 "2022-07-18T18:13:49Z")

</div>

Wanted to provide an update on this. The team is working on a fix for this! 🙂
