Fetching all order for specific date range.

Solved
Highlighted
Tourist
7 0 0

I am trying to get all the orders for a specific date range. But my order count is different from the number of orders fetched.

This is code I am using for getting order count which is giving the right value.

https://XXXXXXXXXXXXX.myshopify.com/admin/api/2019-10/orders/count.json?status=any&created_at_min='.$currentdate.'T00:00:00+05:30&created_at_max='.$currentdate.'T23:59:59+05:30

And this the code used for fetching all the orders which is giving the wrong values.

https:/XXXXXXXXXXXXXXXX.myshopify.com/admin/api/2019-10/orders.json?&created_at_min='.$currentdate.'T23:59:59+05:30&created_at_max='.$currentdate.'T23:59:59+05:30&status=any&limit=250

Can anyone please help me with this?

Thanks

0 Likes

Success.

Hello 

You can fetch order like this:

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

Please refer this url for more information:
https://help.shopify.com/en/api/reference/orders/order#index

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
1 Like