Refunds
This feature allows you to refund a single collection. You can refund transactions made via Bank Transfers, Cards or Mobile money.
To Initiate Refunds for a transaction
Authorization
Bearer SECRET_KEY
Content-type
application/json
The secret key can be gotten from the 'Settings' page on your Startbutton dashboard.
See Authentication.
Endpoint
POST - {{baseurl}}/transaction/refunds
transactionReference
Yes
This is the original transaction reference of the transaction you wish to refund. This can be gotten from your collection Tab under the "Transaction Ref" column.
reason
optional
This is to provide a reason for the refund.
amount
Yes
This is the amount you'd like to refund. Note: Refunds can be partially or fully initiated.
This means that for a NGN2000 transaction, you can refund the whole sum or part of the entire sum.
Sample code
{
"transactionReference": "79xxxxxxxxx",
"amount": 500
}{
"transactionReference": "79xxxxxxxxx",
"reason":"Test refund",
"amount": 500
}The amount is not required to be in fractional units.
The original transaction reference can be obtained from the dashboard transaction detail or the Webhook notification.
Your available balance must be sufficient to cater to the refund being initiated.
A fee is attached to any processed refund.
Sample responses
When a refund is processed, you receive an email- informing you if the refund was successful OR failed.
Last updated