API reference
Direct Debit
Get a customer's approval for direct debits on their wallet, check it, and cancel or reactivate it. Charges go through Receive Money.
Preview documentation
Host: preapproval.hubtel.com. Requests must come from an allowlisted IP.
Authenticate with your API ID and API Key. See Authentication and accounts.
| Operation | Request |
|---|---|
| Start a direct debit pre-approval | POST /api/v2/merchant/{accountNumber}/preapproval/initiate |
| Confirm a pre-approval with an OTP | POST /api/v2/merchant/{accountNumber}/preapproval/verifyotp |
| Get a pre-approval's status | GET /api/v2/merchant/{accountNumber}/preapproval/{clientReference}/status |
| Cancel a pre-approval | GET /api/v2/merchant/{accountNumber}/preapproval/{msisdn}/cancel |
| Reactivate a pre-approval | POST /api/v2/merchant/{accountNumber}/preapproval/reactivate |
Response codes
The codes this service returns in ResponseCode, as documented for production. Codes shared by all payment APIs are also explained in Errors.
| Response Code | Description | Required Action |
|---|---|---|
0000 | The transaction has been processed successfully. | None |
0001 | Request has been accepted. A callback will be sent on final state | None |
2000 | success Request received! Pending preapproval OTP Verified! Pending preapproval success, Customer is already preapproved | None |
2001 | The MTN Mobile Money user has reached counter or balance limits, has insufficient funds or is missing permissions. The Vodafone Cash failed Dear Customer, you have insufficient funds. Avail. Balance:#### 5 successive invalid transfers will lock your account. Thank you. Transaction id is invalid | ; Mobile network not able to parse your request ; USSD session timeout ; Having strange characters (&\*!%@) in your description ; Ensure that the number provided matches the channel |
4000 | Validation errors | Validation errors. Something is not quite right with this request. Please check again. |
4070 | We're unable to complete this payment at the moment. Please try again later. Fees not set for given conditions. | Ensure you are passing the required minimum amount or contact your Hubtel relationship manager to setup fees for your account if error persists. |
4101 | The business you're trying to pay isn't fully set up to receive payments at the moment. Please try again later Supplied API keys does not have \"mobilemoney-receive-direct\" in scopes. Client request keys do not match API keys on business | Contact your Retail Systems Engineer to enable Receive Money Scopes Ensure that you're providing the correct Basic Auth key for the Authorization header and ensure you’re passing your Collection Account Number in the endpoint. |
4103 | Permission denied. Sorry, your account is not allowed to transact on this channel | Contact your Retail Systems Engineer |
4204 | Preapproval request failed! Please try again. | Inspect your request and try again |
Build with AI
Give your AI coding agent Hubtel's docs, API schemas and sandbox tools, with guidance on callbacks, reconciliation and avoiding duplicate fulfilment.
Cancel a pre-approval GET
Stops future debits for a customer's wallet. Do this when a loan is repaid or a subscription ends, so the customer isn't charged again.