List all refunds
How to fetch a collection of refunds via API
To fetch a collection of refunds, send a GET request to the /api/refunds endpoint.
Request
GET https://yourdomain.commercelayer.io/api/refunds
Example
The following request fetches a collection of refunds:
curl -g -X GET \
'https://yourdomain.commercelayer.io/api/refunds/' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token'Remember that when you fetch a list of resources you get paginated result.
Sortable fields
The list of refunds can be sorted by the following fields:
Attributes
numbertypeamount_centsidcreated_atupdated_atreferencereference_origin
Relationships
orderreturn
Filterable fields
The list of refunds can be filtered by the following fields:
Attributes
numbertypecurrency_codeamount_centssucceededmessageerror_codeerror_detailtokengateway_transaction_ididcreated_atupdated_atreferencereference_originmetadata
Relationships
orderpayment_sourceattachmentseventsreference_capturereturn
Last updated

