I’m using the shopify python API.
After creating a session, when I run these commands, I get the data back for Customers, but nothing is returned for Orders:
orders = shopify.Order.find(status=any)
customers = shopify.Customer.find(status=any)
Trying (what I think is) the same query for orders from the command line does return the Orders data successfully:
curl -X GET "https://xxxxxxxxxx.myshopify.com/admin/api/2023-01/orders.json?status=any" -H "X-Shopify-Access-Token:xxxxxxxxxx"
I tried the same python code to connect to a test store, and that returns the Orders data from the test store fine. It just doesnt work on my real shopify store.
I compared the access scopes between the test store and my real store and they’re identical. I even reduced the access scope on both to only read_orders. The test store still returned orders and the real store still returned no data. I tried removing the read_orders scope on the real store and this time it throws an error instead of no data.
I can’t see what I’m doing wrong here. Any help would be much appreciated!