Skip to Content
Docs
Orders

List an order's refunds

GET/orders/{order_id}/refunds

The refunds made through the order, oldest first. They're the main API's refund objects, which GET /v1/refunds/{id} also finds.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

order_idstringRequired

The order's ID (ord_).

Query parameters

limitinteger

Objects per page. Defaults to 10.

Default: 10

starting_afterstring

A cursor. Returns objects created after the object with this ID. Mutually exclusive with ending_before.

ending_beforestring

A cursor. Returns objects created before the object with this ID.

Returns

A page of the order's refunds.

resourcestring
dataarray of objects
Show 17 child attributesHide child attributes
idstring
resourcestring
statusstring

One of pending, succeeded or failed.

amountinteger
currencystring

Three-letter ISO currency code, in lowercase.

orderstring or null

The order it refunds, or null for a renewal invoice's refund.

invoicestring or null

The renewal invoice it refunds.

chargestring
line_itemsarray of objects
Show 3 child attributesHide child attributes
line_itemstring
quantityinteger
amountinteger
amount_shippinginteger
credit_notestring or null
customer_reference_idstring
reasonstring or null
referencestring or null
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

createdstring
test_modeboolean
has_moreboolean

Errors

400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
404
No such object in this workspace and environment.
Was this page helpful?