HubtelDevelopers
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.

OperationRequest
Start a direct debit pre-approvalPOST /api/v2/merchant/{accountNumber}/preapproval/initiate
Confirm a pre-approval with an OTPPOST /api/v2/merchant/{accountNumber}/preapproval/verifyotp
Get a pre-approval's statusGET /api/v2/merchant/{accountNumber}/preapproval/{clientReference}/status
Cancel a pre-approvalGET /api/v2/merchant/{accountNumber}/preapproval/{msisdn}/cancel
Reactivate a pre-approvalPOST /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 CodeDescriptionRequired Action
0000The transaction has been processed successfully.None
0001Request has been accepted. A callback will be sent on final stateNone
2000success Request received! Pending preapproval OTP Verified! Pending preapproval success, Customer is already preapprovedNone
2001The 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
4000Validation errorsValidation errors. Something is not quite right with this request. Please check again.
4070We'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.
4101The 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 businessContact 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.
4103Permission denied. Sorry, your account is not allowed to transact on this channelContact your Retail Systems Engineer
4204Preapproval request failed! Please try again.Inspect your request and try again