Re: Orders API Financial Status Filtering Not Working For Refunds

Solved

Orders API Financial Status Filtering Not Working For Refunds

wthomas999
New Member
8 0 0

My request:

 

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

 

Response:

{
	"orders": [
		{
			"id": X,
			"financial_status": "refunded",
			"updated_at": "2021-10-26T16:52:45-04:00"
		},
		{
			"id": Y,
			"financial_status": "refunded",
			"updated_at": "2021-10-26T16:52:22-04:00"
		}
	]
}

 

However, I know Order Z was refunded today, and I can confirm that the financial status is "refunded" for it. 

 

Call:

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

 

Response:

{
	"order": {
		"id": Z,
		"financial_status": "refunded",
		"updated_at": "2022-02-25T12:46:14-05:00"
	}
}

 

Any ideas why Order Z wouldn't be showing in the first query?

Accepted Solution (1)

csam
Shopify Staff (Retired)
267 40 51

This is an accepted solution.

Hi @wthomas999 

Can you try adding status=any as a parameter on the query. By default, the orders.json endpoint returns only open orders.

 

Regards,

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

View solution in original post

Replies 2 (2)

csam
Shopify Staff (Retired)
267 40 51

This is an accepted solution.

Hi @wthomas999 

Can you try adding status=any as a parameter on the query. By default, the orders.json endpoint returns only open orders.

 

Regards,

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

wthomas999
New Member
8 0 0

That was it! Thank you!