# Is there any api to retrieve the complete orders list based on Location Id or personal access token?

**URL:** <https://developer.squareup.com/forums/t/is-there-any-api-to-retrieve-the-complete-orders-list-based-on-location-id-or-personal-access-token/21100>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [February 18, 2025, 11:37am UTC](https://developer.squareup.com/forums/t/is-there-any-api-to-retrieve-the-complete-orders-list-based-on-location-id-or-personal-access-token/21100 "2025-02-18T11:37:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![divakar](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@divakar](https://developer.squareup.com/forums/u/divakar)\
**Post date:** [February 18, 2025, 11:37am UTC](https://developer.squareup.com/forums/t/is-there-any-api-to-retrieve-the-complete-orders-list-based-on-location-id-or-personal-access-token/21100/1 "2025-02-18T11:37:47Z")

</div>

Is there any api to retrieve the complete orders list based on Location Id or personal access token instead of array of order ID?

I have reviewed the RetrieveOrder and BatchRetrieveOrders endpoints but these endpoints requires order id. I don’t want to retrieve any specific order or list of order, I wants the complete list of orders for that seller.

---

<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:** [February 18, 2025, 11:38am UTC](https://developer.squareup.com/forums/t/is-there-any-api-to-retrieve-the-complete-orders-list-based-on-location-id-or-personal-access-token/21100/2 "2025-02-18T11:38:07Z")

</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:

> **[Retrieve Orders](https://developer.squareup.com/docs/orders-api/manage-orders/retrieve-orders)**
>
> Learn how to use the RetrieveOrder and BatchRetrieveOrders endpoints to retrieve one or more orders.

> **[Payments API Integration](https://developer.squareup.com/docs/pos-api/payments-integration)**
>
> Learn how to get payment details from a Point of Sale API transaction ID.

> **Additional Documentation**
>
> [Retrieve, List, or Search Invoices](https://developer.squareup.com/docs/invoices-api/retrieve-list-search-invoices)  
> [Merchants API](https://developer.squareup.com/docs/merchants-api)  
> [Search Orders](https://developer.squareup.com/docs/orders-api/manage-orders/search-orders)

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:** ![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:** [February 18, 2025, 5:47pm UTC](https://developer.squareup.com/forums/t/is-there-any-api-to-retrieve-the-complete-orders-list-based-on-location-id-or-personal-access-token/21100/3 "2025-02-18T17:47:17Z")

</div>

Yes, you can retrieve a list of orders based on a location ID using the SearchOrders endpoint of the Orders API. This endpoint allows you to find orders that match your filtering criteria, such as orders created within a specific time range or requested by a particular customer. You must include one or more location\_ids in your request, and SearchOrders will return the orders for those locations.

However, please note that the SearchOrders endpoint does not support personal access tokens as a filtering criterion. The personal access token is used for authentication and authorization, not for filtering orders.

_This answer was reviewed by @Bryan-Square._
