# How do you use Search Orders API?

**URL:** <https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306>\
**Category:** Announcements\
**Tags:** orders-api\
**Created:** [June 23, 2022, 5:05pm UTC](https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306 "2022-06-23T17:05:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlummus](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/mlummus/32/2175_2.png) [@mlummus](https://developer.squareup.com/forums/u/mlummus)\
**Post date:** [June 23, 2022, 5:06pm UTC](https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306/1 "2022-06-23T17:06:00Z")

</div>

Hello,

The Orders team is doing discovery on Search Orders and we need your input.

In order to make Search better, we would like to understand how you are using the Search Orders endpoint today. Please reply with how you are currently using Search Orders; feel free to include any pain points that you have with search. Also, let us know any expectations you have around search results.

thanks,  
Mark Lummus  
Product Manager, Orders API

---

<div class="post-metadata">

**Author:** ![btc](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@btc](https://developer.squareup.com/forums/u/btc)\
**Post date:** [October 5, 2022, 6:23pm UTC](https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306/2 "2022-10-05T18:23:58Z")

</div>

We are using it to try and find open orders for the current business date. If we could search by table name/number or bill name/number (for restaurant orders) that would be helpful in reducing response sizes for some of our searches. Currently this endpoint does not return open orders that are currently being built on the Square Terminal or iPad App, and that is a big blocker for a real-time integration we’re looking to build to bring square compatibility up to parity with other POS platforms.

---

<div class="post-metadata">

**Author:** ![mlummus](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/mlummus/32/2175_2.png) [@mlummus](https://developer.squareup.com/forums/u/mlummus)\
**Post date:** [October 13, 2022, 10:31pm UTC](https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306/3 "2022-10-13T22:31:59Z")

</div>

Are your searches performed programmatically / regularly, for example as part of a polling mechanism? or do you expose a search interface to your users and the search is driven by user?

---

<div class="post-metadata">

**Author:** ![treasurer.fosm](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@treasurer.fosm](https://developer.squareup.com/forums/u/treasurer.fosm)\
**Post date:** [November 27, 2022, 4:47pm UTC](https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306/4 "2022-11-27T16:47:36Z")

</div>

I am using search orders to retrieve and breakdown sales in Excel.

The concept works to a point but my pain point is I am unable to get consistent results from the API:

1. Not all orders are returned, I have about 600 total orders but the API only returns about 1/2 of the orders

2. The number of orders returned is different depending on whether I sort by date Ascending or Descending (the date range is static)

If this is a user issue any advice would be welcome

---

<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:** [November 28, 2022, 5:54pm UTC](https://developer.squareup.com/forums/t/how-do-you-use-search-orders-api/6306/5 "2022-11-28T17:54:38Z")

</div>

👋 This is expected with the Orders API `limit` and the `sort_order` for orders. The `limit` is the maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page. The default is 500 which is the maximum it will return for a single call. 🙂
