# Search-catalog-items broke a couple days ago?

**URL:** <https://developer.squareup.com/forums/t/search-catalog-items-broke-a-couple-days-ago/19155>\
**Category:** Questions\
**Created:** [October 14, 2024, 4:08pm UTC](https://developer.squareup.com/forums/t/search-catalog-items-broke-a-couple-days-ago/19155 "2024-10-14T16:08:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelbambl](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@michaelbambl](https://developer.squareup.com/forums/u/michaelbambl)\
**Post date:** [October 14, 2024, 4:08pm UTC](https://developer.squareup.com/forums/t/search-catalog-items-broke-a-couple-days-ago/19155/1 "2024-10-14T16:08:31Z")

</div>

I implemented a “restock” mechanic by using the search-catalog-items operation to return the matching item, using text\_filter to match. Without warning, it stopped working a couple days ago.

I was using version 2024-07-17. Now it returns the first Square item we have in our items dashboard instead of the item that matches the text\_filter.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 14, 2024, 4:08pm UTC](https://developer.squareup.com/forums/t/search-catalog-items-broke-a-couple-days-ago/19155/2 "2024-10-14T16:08:49Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Monitor Sold-out Item Variations or Modifiers](https://developer.squareup.com/docs/inventory-api/monitor-sold-out-status-on-item-variation)**
>
> Learn how to use the Catalog API to set or inspect a sold-out item or to have it enabled to be set as sold out when its inventory count reaches zero.

> **[Call the SearchCatalogItems Endpoint](https://developer.squareup.com/docs/catalog-api/search-catalog-items)**
>
> Learn how to call the SearchCatalogItems endpoint to search for items or item variations using one or more supported query filters.

> **Additional Documentation**
>
> [Search for Items and Objects](https://developer.squareup.com/docs/catalog-api/search-catalog)  
> [Build and Manage a Simple Inventory](https://developer.squareup.com/docs/inventory-api/build-with-inventory)  
> [Catalog API Webhooks](https://developer.squareup.com/docs/catalog-api/webhooks)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<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:** [October 15, 2024, 3:57pm UTC](https://developer.squareup.com/forums/t/search-catalog-items-broke-a-couple-days-ago/19155/3 "2024-10-15T15:57:23Z")

</div>

What’s your application ID and what’s a request that was previously working that now no longer works? 🙂

---

<div class="post-metadata">

**Author:** ![michaelbambl](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@michaelbambl](https://developer.squareup.com/forums/u/michaelbambl)\
**Post date:** [October 15, 2024, 4:07pm UTC](https://developer.squareup.com/forums/t/search-catalog-items-broke-a-couple-days-ago/19155/4 "2024-10-15T16:07:03Z")

</div>

Actually, the issue seems to be resolved now. I checked and it ran correctly an hour and a half ago. It seems to have been broken between Saturday and Monday.

Now it does appear to be correctly matching the item with the text\_filter condition.
