Cannot fetch orders data for selected shops.
`/orders.json` returns an empty array.
An app that has granted appropriate permissions for the shops.
Development store that has various orders (different financial statuses).
Trying to fetch orders list an empty array is returning.
Tested on 3 development stores.
Only for 1 of them, this issue is reproducible.
For the other 2 all work as expected (identical settings and set up).
Webhooks for orders paid has been fired. (for a store that returning an empty array in the response of `/orders.json`).
Other data (like shops info `/shop.json` successfully returning data)
App permissions list (scopes): 'read_orders', 'write_orders', 'read_all_orders'
API_VERSION: "2019-10" (tried with latest, - the same behavior)
REQUEST: GET `https://<developer-store-name>.myshopify.com/admin/api/2019-10/orders.json` (also tried with different filters, - the same behavior)
`wavetest0207.myshopify.com` - cannot fetch orders
`mystorelionvs2.myshopify.com`- successfully fetching orders
Solved! Go to the solution
This is an accepted solution.
did you tried query param status=any? for ex. orders.json?status=any
because I think default its returning only open orders.