A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
How could i fetch orders that has been created in a specific day?.
I need to fetch only 1 specific day, by example , all orders from August 23.
https://shop-name-here.myshopify.com/admin/api/2022-07/orders.json?status=any&created_at_min=2022-08... -> response , an empty array.
https://shop-name-here.myshopify.com/admin/api/2022-07/orders.json?status=any&created_at_min=2022-08...4 -> response , all orders between 23 and 24.
Thxs
Solved! Go to the solution
This is an accepted solution.
Hi
You must define the timestamp according to the format as in the documentation.
For example:
2022-08-25T07:48:59+00:00
Ref.
This is an accepted solution.
created_at_min must be lower than created_at_max
example
https://shop-name-here.myshopify.com/admin/api/2022-04/orders.json?status=any&created_at_min=2022-08-22T21:59:59+02:00&created_at_max=2022-08-23T22:00:00+02:00
This is an accepted solution.
Hi
You must define the timestamp according to the format as in the documentation.
For example:
2022-08-25T07:48:59+00:00
Ref.
That should do the trick, thxs.
This is an accepted solution.
created_at_min must be lower than created_at_max
example
https://shop-name-here.myshopify.com/admin/api/2022-04/orders.json?status=any&created_at_min=2022-08-22T21:59:59+02:00&created_at_max=2022-08-23T22:00:00+02:00
yep, you are right, i saw it after posting.
thx for your help.