API: Order JSON not containing all orders

Solved
Highlighted
New Member
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?

0 Likes
Shopify Partner
69 12 24

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

0 Likes