Skip to main content

Refund a payment

Performing a refund will return the funds to the customer after a payment has been settled. For this reason, refunds can only be requested for payments in a captured state.

Multiple refund requests for the same transaction can be made if supported by the respective channel. The total amount of all successful partial refunds cannot exceed the total captured amount of the original payment.

If no amount value is provided in the refund request then a full refund will be processed.

You will receive notifications related to a refund through webhooks or by calling the GET endpoints

Refund amounts are in minor units, for example a refund for €1.20 should be sent as 120.

note

Details on required fields and validation can be found in our Open API specification.


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

Request:​

curl --location 'https://sandbox.api.paytently.io/payments/{payment_id}/refunds'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer token_here'
--data-raw '{
"reference": "ord123"
}'

Response:​

{
"id": "ref_12345",
"status": "pending",
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds/ref_12345",
"method": "GET"
}
}
}