Skip to main content

Retrieve a refund

To get more details on a refund request made against a payment you can perform a GET request providing the payment id and refund id.

note

Details on authorization and headers can be found in our Open API specification.


GET https://api.paytently.io/payments/{payment_id}/refunds/{refund_id}

Request:​

curl --location 'https://sandbox.api.paytently.io/payments/{payment_id}/refunds/{refund_id}'
--header 'Authorization: Bearer token_here'

Response:​

{
"id": "ref_12345",
"status": "successful",
"amount": 123,
"currency": "EUR",
"requested_on": "2024-08-23T10:18:14Z",
"completed_on": "2024-08-24T04:23:21Z",
"metadata": {
"key": "value"
},
"_links": {
"self": {
"method": "GET",
"href": "https://sandbox.api.paytently.io/payments/{payment_id}/refunds/{refund_id}"
}
}
}