Shopify Python API Order Count Return Ridiculously Low Number

Solved
Highlighted
New Member
1 0 0

I started to use Shopify API for python today and ran into this headache. I created my private apps just yesterday and use key and password for this API. Our shop has thousands of orders, but the api call returned only 46. I I waited a bit and tried again, the number increased a bit, to 47. I guess new order came, but still is this supposed to return thousands, instead of 4x

 

The codes I tried:

 

order= shopify.Order.find(created_at_min="2014-07-17 03:00")

len(order)

 

orders = shopify.Order.find(limit=100)
len(orders)

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

This is an accepted solution.

Hey @vuduong191,

 

The orders endpoint returns open orders by default: https://shopify.dev/docs/admin-api/rest/reference/orders/order#index-2020-01

 

Try setting the status to any:

 

GET /admin/api/2020-01/orders.json?status=any

 

0 Likes