# Order API Search Filters

**URL:** <https://developer.squareup.com/forums/t/order-api-search-filters/5659>\
**Category:** Questions\
**Tags:** orders-api\
**Created:** [April 11, 2022, 6:59pm UTC](https://developer.squareup.com/forums/t/order-api-search-filters/5659 "2022-04-11T18:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottgifford](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/scottgifford/32/837_2.png) [@scottgifford](https://developer.squareup.com/forums/u/scottgifford)\
**Post date:** [April 11, 2022, 6:59pm UTC](https://developer.squareup.com/forums/t/order-api-search-filters/5659/1 "2022-04-11T18:59:44Z")

</div>

I’m trying to build a search on the orders API and would like to filter out all orders that do not have a `customer_id`. Is this possible?

---

<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:** [April 11, 2022, 10:27pm UTC](https://developer.squareup.com/forums/t/order-api-search-filters/5659/2 "2022-04-11T22:27:09Z")

</div>

👋 At this time there isn’t a query that would return all orders without the `customer_id`. You’ll need to `SearchOrders` for all the orders and parse the results for ones that don’t have the `customer_id`. 🙂
