Refund and Partially Refund Orders Information

Highlighted
New Member
3 0 0

Is it possible to get the refunded and partially_refunded orders information in a single API call?
If yes, can someone share that API?

 

Thanks!

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hey @khanshahbaz ,

 

Yes, if you are using GraphQL Admin API you can perform the following query:

 

query {
orders(first:10, query:"financial_status:partially_refunded OR financial_status:refunded") {
	edges {
		node {
			id
      createdAt
		}
	}
}
}

And if you are using the REST Admin API you can perform the following GET request: https://{store-name}.myshopify.com/admin/api/2020-01/orders.json?financial_status=refunded,partially_refunded

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes