What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Get Refunds List in Shopify with Date Filter (Not Orders)

Get Refunds List in Shopify with Date Filter (Not Orders)

nextdigital1
Visitor
1 0 1
`GET /admin/api/2022-10/orders.json?financial_status=refunded,partially_refunded&fields=refunds&created_at_min=2022-10-05T00:00:00-05:00&created_at_max=2022-11-17T24:00:00-05:00&limit=250&since_id=0&status=any`


We are using this API to fetch the refunds list. Actually we want to fetch refunds on Date base like refunds with in specific date but Shopify does not provide any refund Listing API to get the refunds on date basis.

So if a refund is issued after two months (Order in Dec-> Refund in Feb) then we have it in the order list of that month (Dec)but not in the order list of after two months (Feb).

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 525

Hi @nextdigital1, We would be happy to turn this into a feedback/discussion point and pass it to our product teams that you would have a use case for a dedicated refund listing accessible via the API. You may also get further suggestions from the community on solutions to refactor the orders data after retrieving a wider data set or possibly the returns data in ShopifyQL could be of use to your needs. Hope this helps. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

riddleydiddely
Shopify Partner
15 1 5

Yeah I think all endpoints should be able to take in a date range to filter instead of specific IDs only, the developer experience would be much better this way since multiple roundtrips would not be needed

riddleydiddely
Shopify Partner
15 1 5

Yeah I think all endpoints should be able to take in a date range to filter instead of specific IDs only, the developer experience would be much better this way since multiple roundtrips would not be needed