GET orders by date range

Neeraj_Saini
Shopify Partner
11 0 0

is it possible to get only the orders between certain date range.?

 

0 Likes
Chris_Saunders
Shopify Staff
Shopify Staff
582 0 49

Could you provide an example of what you mean?

If you only wanted orders between Jan 1 and Jan 15 2014 you could make a query like this:

https://shop.myshopify.com/admin/orders.json?created_at_min=2014-01-01&created_at_max=2014-01-15

You can find other filters you can apply to your GET requests on the Orders API documentation

Neeraj_Saini
Shopify Partner
11 0 0

Thanks that works for me.

0 Likes
Boyadzhiev
Tourist
3 0 0

If you want to use the SDK (Python):

shopify.Order.find(created_at_min="2020-07-01", created_at_max="2020-07-15")

 

0 Likes