`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).
2
Answers
Refunds in Shopify are just a property within orders.
The
order resource
schema looks like this :To filter refunds by date, you’ll need to fetch the orders list then use the refund’s
created_at
orprocessed_at
properties to filter them in the order you want : either when the refund request was issued or when it was processed.There is not current API which provides direct refund access like orders. You can fetch it through the order list or order ids.