Hi Yash,
If you're using REST API you can use updated_at_min param with your GET to /orders.json endpoint.
updated_at_min | Show orders last updated at or after date (format: 2014-04-25T16:15:47-04:00). |
https://shopify.dev/docs/admin-api/rest/reference/orders/order?api[version]=2020-07
If you're going back 60 days or more you need to request full Orders access through your partner dashboard.
Regards,
Sam Bazargan - Owner
Yash,
You can email me directly here: admin@achieveapplabs.com.
Regards,
Sam
Yash,
Make sure you're getting the datetime format correct this works for us:
const created_at_min = moment(new Date()).format('llll');
Also you may have archived orders so you should specify the order status in params as well
Filter orders by their status.
(default: open)
Regards,
Sam
Also these params don't look right:
*/admin/api/2019-10/orders.json?limit=5&updated_at_min=2019-07-19T00:04:46Z&status=any&order=updated_at%20asc*)
Try this:
*/admin/api/2019-10/orders.json?limit=5&updated_at_min=2019-07-19T00:04:46Z&status=open*)
At the very end the last Params doesn’t look correct try removing it.
User | Count |
---|---|
13 | |
12 | |
7 | |
4 | |
4 |