Main issue: Calling the Shopify Admin REST endpoint /admin/api/2023-01/orders.json returned an empty list (“orders”: ). A shop name change (capitalization/space) had occurred but was reverted; uncertainty if related.
Key checks and suggestions:
Verify the exact myshopify.com domain is correct; a mismatch typically yields a different error, but worth confirming.
Resolution/updated finding:
The base endpoint returns only current unfulfilled/open orders (i.e., not all orders). This explained the empty result.
Adding the query parameter status=any returns recent orders regardless of status.
• Without filter: https://{shop_name}.myshopify.com/admin/api/2023-01/orders.json
• With filter: https://{shop_name}.myshopify.com/admin/api/2023-01/orders.json?status=any
Outcome: After using status=any, orders appeared as expected. No further issues reported.
Status: Resolved. The empty response was due to default filtering, not the shop name change.
Thank you for asking! I couldn’t figure out how to reply to my own message after I was able to figure out what I was doing wrong. using a simple python url get request would return blank orders json file. That’s because this API only returns current unfulfilled orders!