Refunds
Refund a completed mobile money payment within 45 days.
Host: refund-api.hubtel.com. Requests must come from an allowlisted IP.
Authenticate with your API ID and API Key. See Authentication and accounts.
| Operation | Request |
|---|---|
| Refund a payment | POST /refund/{accountNumber}/order/{transactionId} |
Response codes
The codes this service returns in ResponseCode, as documented for production. Codes shared by all payment APIs are also explained in Errors.
| ResponseCode | Status | Description |
|---|---|---|
0001 | 202 | Transaction pending. Expect callback request for final state. Data contains order ID |
3000 | 404 | Could not find order with ID {orderId}. Data is null |
4000 | 404 | Cannot honour refund request because amount on order is less than 1 cedi. Data is null |
4509 | 404 | Order with ID {orderId} is not eligible for a refund. Data is null |
4515 | 423 | Order with ID {orderId} is currently being processed. Please wait for callback on your supplied URL. This means you have made an initial refund request with the same order ID. |
Verify a recurring invoice POST
Completes setup with the OTP from create (`otpPrefix-0000` in the sandbox). Hubtel then prompts the customer; the initial debit callback arrives at the `callbackUrl` from create after they respond or the request expires.
Refund a payment POST
Refunds a completed mobile money payment in full, within 45 days. The refund is processed asynchronously and the result is POSTed to `callbackUrl`.