Discussing APIs and development related to customers, discounts, and order management.
Hello:
I am switching over to the cursor based pagination, and am having an issue with the orders API. There is no Link returned for this API call. I have successfully used the customers API call pagination, but can't get the orders pagination to work. My X-Request_ID is 0136074c-4615-4d0e-90c8-933d7ce6e6f3, and my API call is:
myshopify.com/admin/api/2020-01/orders.json?limit=100&created_at_min=2018-01-01T00:00:01-04:00
As I said, the same API call for customers works fine, and the link is in the header.
Thank you,
Engineering
Solved! Go to the solution
This is an accepted solution.
Do you get any orders in the response, if so, are there really more than 100 orders matching the created_at_min constraint? Make sure you pass status=any to get all orders no matter their status (default is to return only open orders).
This is an accepted solution.
Do you get any orders in the response, if so, are there really more than 100 orders matching the created_at_min constraint? Make sure you pass status=any to get all orders no matter their status (default is to return only open orders).
Yes, thank you. That was the issue.