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.
- Production
- Sandbox
GET https://api.paytently.io/payments/{payment_id}/refunds/{refund_id}
GET https://sandbox.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:
- 200
- 404
- 500
{
"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}"
}
}
}
{
"trace_id": "12345",
"errors": [
{
"code": "refund_not_found"
}
]
}
{
"title": "Server error",
"status": 500,
"trace_id": "12345"
}