As we were writing a Python script to retrieve Orders from our online store, we faced a confusing issue.
The HTTP request works for some months only and returns an empty response for other months (using the same request). Please find below the HTTP request URL:
If we change 07 to 05 for example it doesn’t return any orders, and this happens for several other months, even though there are orders during these months.
Kindly let me know if you need further information or if I’m doing something wrong.
Are you trying to access orders made more than 60 days ago? I believe you need to request read_all_orders through your app settings to see orders over 60 days old. https://shopify.dev/api/usage/access-scopes
The 2021-07 or 2021-01 part of the URL is referencing the version of the API being requested, not the date range of the orders themselves. You’ll want to use the created_at_min/max or updated_at_min/max as parameters for requesting specific order dates.
I would also recommend following our API Changelog here: https://changelog.shopify.com/ This will let you know of any large changes to the API that might affect your app in future.