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
Authorizationstring✔Bearer {AccessToken}

Request Body

AreaTypeMandatoryDescription
referenceCodestring✔Merchant reference code for the transaction
amountdecimal✔Amount to be refunded
reasonstring✔Reason 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
}