Orders not filtering based on Updated_at

Orders not filtering based on Updated_at

wthomas999
New Member
8 0 0

My request:

 

https://fyieyecare-dev.myshopify.com/admin/api/2022-01/orders.json?fields=id,updated_at&updated_at_m...

 

My result:

 

{
	"orders": [
		{
			"id": Y,
			"updated_at": "2022-02-24T12:39:52-05:00"
		},
		{
			"id": Z,
			"updated_at": "2022-02-23T23:34:13-05:00"
		}
	]
}

 

 

Given the updated_at_min parameter, I'm expecting to receive orders updated (in my case, refunded) today (2022-02-25). I did the refunds myself today, and I verified that the two Orders have updated_at properties with today's date:

 

https://fyieyecare-dev.myshopify.com/admin/api/2022-01/orders/X.json?fields=id,updated_at 

 

{
	"order": {
		"id": X,
		"updated_at": "2022-02-25T12:11:49-05:00"
	}
}

 

 

Any ideas why Order X is not being returned in the first call? I've tried various formats of the updated_at_min time format, including the full ISO 8601 of 2022-02-24T00:00:00-05:00, and receive the same result. 

Reply 1 (1)

csam
Shopify Staff (Retired)
267 40 51

Hi @wthomas999 

 

Can you try adding the status=any parameter? The orders endpoint returns only open orders by default. Hope this helps!

To learn more visit the Shopify Help Center or the Community Blog.