Skip to main content

Payment Refund (Refund)

11.2 Payment Return (Refund)

Definition

The refund process provides a refund of a certain amount or all of a completed (captured) payment.

Endpoint: POST /b2c/payment/refund

Header

AreaTypeMandatoryDescription
AuthorizationstringBearer {AccessToken}

Request Body

AreaTypeMandatoryDescription
referenceCodestringMerchant reference code for the transaction
amountdecimalAmount to be refunded
reasonstringReason for return

Request Example

{
"referenceCode": "8893cec8-51df-40bc-b7e3-cc06fd1a48b6",
"amount": 1,
"reason": "partial_refund"
}

Response

AreaTypeDescription
successbooleanTransaction result
errorstringError message
lastAmountdecimalRemaining amount after refund

Response Example

{
"error": null,
"success": true,
"lastAmount": 0.00
}