Discussing APIs and development related to customers, discounts, and order management.
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?
Solved! Go to the solution
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
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