Get a list of all refunds that belong to a payment.
cURL
curl --request GET \ --url https://sandbox.hellgate.io/payments/{id}/refunds \ --header 'X-API-Key: <api-key>'
{ "data": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "amount": 1, "currency_code": "<string>", "payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "reference": "<string>", "status": "processing", "created_at": "2023-11-07T05:31:56Z", "failure_details": [ { "classifier": "<string>", "message": "<string>", "source": "processor" } ], "splits": [ { "type": "<string>", "merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "amount": 123, "reference": "<string>" } ], "metadata": { "my_key_one": "my_value_one", "my_key_two": "my_value_two" } } ], "pagination": { "current_page": 1, "page_size": 1, "total_items": 1, "total_pages": 1 } }
The ID of the payment on Commerce.
Success response
Show child attributes
The meta-data describing lists of data from the Commerce API. The pages are indexed from 1 up to the total_pages.
{ "current_page": 1, "page_size": 1, "total_items": 1, "total_pages": 1}