Skip to main content

Refund Transaction

Refund a previously successful transaction.

Endpoint Information​

Name: Payment Transaction Refund
Method: POST
URL: {{BASE_URL}}/api/v1/payment-transaction/refund

Description​

Initiate a full or partial refund for a transaction. Note that not all payment solutions support refunds via API.

Authentication​

Type: Basic Auth

  • Username: App Key
  • Password: Secret Key

Request Body​

Content-Type: application/json

{
"reference": "w27Wd5JaIl",
"amount": "151",
"merchantAccountId": "100012"
}

Parameters​

ParameterTypeRequiredDescription
referencestringYesThe reference of the original transaction to refund
amountnumberYesThe amount to refund
merchantAccountIdstringYesYour merchant account ID

Response​

Success Response​

{
"success": true,
"message": "Refund request success.",
"data": {
"processor_reference": "5047869357",
"processor_reference_time": "2025-07-11 09:54:59",
"processor_status": "Refunded",
"status": "Refunded",
"amount": "120"
}
}

Failed Response​

{
"success": false,
"message": "Refund not allowed for this solution.",
"errors": [
"Refund not allowed for this solution."
]
}

Response Fields​

FieldTypeDescription
successbooleanRefund success status
messagestringResponse message
data.statusstringNew status of the transaction (e.g., "Refunded")
data.amountstringRefunded amount

Usage​

Use this endpoint to refund customers. Ensure the original transaction reference is correct.