API referenceRefunds
Refund a payment
Refunds a completed mobile money payment in full, within 45 days. The refund is processed asynchronously and the result is POSTed to callbackUrl.
Authorization
basicAuth AuthorizationBasic <token>
Base64 of API ID:API Key.
In: header
Path Parameters
accountNumber*string
Your collection account number (POS sales), where customer payments land. Find it in your Hubtel merchant account under Programmable keys → Account ID. In the sandbox, use the collection account in Workbench.
transactionId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
Callbacks
curl -X POST "https://example.com/refund/string/order/string" \ -H "Content-Type: application/json" \ -d '{ "callbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede" }'{ "message": "Transaction pending. Expect callback request for final state.", "responseCode": "0001", "data": { "orderId": "b230733cd56b4a0fad820e39f66bc27c" }}