Solved

API: Order JSON not containing all orders

DmitryDev
Visitor
1 0 0

I use private app and I try to call:
/admin/api/2020-04/orders.json or /admin/api/2020-07/orders.json (without filters)
it return last orders (this month ~10), but in store admin I see more orders (this month ~30), some last orders are not in list 

if I try to call:
/admin/api/2020-04/orders/{order_id}.json
I see missed order.

I tried:
/admin/api/2020-04/orders.json?created_at_min=2020-07-11T00:00:00-00:00&limit=250

and

/admin/api/2020-04/orders.json?&since_id={order_id}

no orders for yesterday

what's going on?

Accepted Solution (1)

Jayvin
Shopify Partner
284 42 89

This is an accepted solution.

Hi,

As mentioned in the documentation here . By default shopify returns orders in open status. You need to add an extra query string to the url ?status=any and this will return all orders.

Your url need to look like this: /admin/api/2020-04/orders.json?status=any

banned

View solution in original post

Reply 1 (1)

Jayvin
Shopify Partner
284 42 89

This is an accepted solution.

Hi,

As mentioned in the documentation here . By default shopify returns orders in open status. You need to add an extra query string to the url ?status=any and this will return all orders.

Your url need to look like this: /admin/api/2020-04/orders.json?status=any

banned