Shopify admin api

Topic summary

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.

Summarized with AI on January 30. AI used: gpt-5.

i am attempting to request orders using shopify admin api. my orders.json response is coming back blank.

{
“orders”:
}

This was working earlier today but my partner changed the shop store. but it has been changed back. (he capitalized and added a space)

any idea why this would happen or how to fix it?

Is it still returning zero orders?

Double check the shops myshopify.com domain to make sure that its correct, though you probably would receive a different error in that case…

1 Like

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!

url = f"https://{shop_name}.myshopify.com/admin/api/2023-01/orders.json"

I was able to ask Shopify help and the nice person was able to find this to be able to show any recent orders

url = f"https://{shop_name}.myshopify.com/admin/api/2023-01/orders.json?status=any"

I hope this response will help anyone in the future that is also having this issue.