How can I get all my store orders through the API

huunguyen
New Member
1 0 0

Hello support team and everyone.
My English is not good so I used google to translate from Vietnamese to English.
The problem I am having is that I want to get all the orders including: (Unfulfilled, In Progress, Fulfiled, ...) but when I use the API "https: //xxxxxx@my-shop.myshopify/ admin / api / 2021-04 / orders.json? page_info = {page_info} & limit = {limit}; rel = "next" "then it just returns me the orders" Unfulfilled, In Progress "and the orders" Fulfilled " "Not returned. When I add "status = any" to the URL it gives an error and does not return me any orders.

Error: 

"status cannot be passed when page_info is present. See https://help.shopify.com/api/guides/paginated-rest-results for more information"


I want to know a workaround for this problem.

Thanks.

0 Likes
policenauts
Trailblazer
170 8 29

I think you need to use status=any and instead of page info, use cursor-based pagination: https://www.shopify.com/partners/blog/relative-pagination

0 Likes