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.
Request Body
{"amount"=>{"currency"=>"EUR", "value"=>2500}, "reference"=>"YOUR_UNIQUE_REFERENCE", "merchantAccount"=>"{{YOUR_MERCHANT_ACCOUNT}}"}
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}}