Orders
List an order's refunds
GET
/orders/{order_id}/refundsThe refunds made through the order, oldest first. They're the main API's refund objects, which GET /v1/refunds/{id} also finds.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Path parameters
order_idstringRequiredThe order's ID (ord_).
Query parameters
limitintegerObjects per page. Defaults to 10.
starting_afterstringA cursor. Returns objects created after the object with this ID. Mutually exclusive with ending_before.
ending_beforestringA cursor. Returns objects created before the object with this ID.
Returns
A page of the order's refunds.
resourcestringdataarray of objectsShow 17 child attributesHide child attributes
idstringresourcestringstatusstringamountintegercurrencystringThree-letter ISO currency code, in lowercase.
orderstring or nullThe order it refunds, or null for a renewal invoice's refund.
invoicestring or nullThe renewal invoice it refunds.
chargestringline_itemsarray of objectsShow 3 child attributesHide child attributes
line_itemstringquantityintegeramountintegeramount_shippingintegercredit_notestring or nullcustomer_reference_idstringreasonstring or nullreferencestring or nullmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringtest_modebooleanhas_morebooleanErrors
400The request is invalid.
401The API key is missing or wrong.
403The key's permissions don't allow this route.
404No such object in this workspace and environment.
Was this page helpful?