Logo
Adyen APIs API Documentation

Refund a payment

POST {{baseUrl}}/payments/:paymentPspReference/refunds

Refunds a payment that has been captured, and returns a unique reference for this request. You get the outcome of the request asynchronously, in a REFUND webhook. You can refund either the full captured amount or a part of the captured amount. You can also perform multiple partial refunds, as long as their sum doesn't exceed the captured amount. > Some payment methods do not support partial refunds. To learn if a payment method supports partial refunds, refer to the payment method page such as cards, iDEAL, or Klarna. If you want to refund a payment but are not sure whether it has been captured, use the /payments/{paymentPspReference}/reversals endpoint instead. For more information, refer to Refund.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string
Idempotency-Key
null A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).




RESPONSES

status Created

{ "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "paymentPspReference": "993617894903480A", "reference": "YOUR_UNIQUE_REFERENCE", "pspReference": "993617894906488A", "status": "received", "amount": { "currency": "EUR", "value": 2500 } }

Curl
curl -X POST 'https://checkout-test.adyen.com/v71/payments/:paymentPspReference/refunds' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Idempotency-Key: ' -d '{"amount":{"currency":"EUR","value":2500},"reference":"YOUR_UNIQUE_REFERENCE","merchantAccount":""}'

ENDPOINTS