Direct Receive Money
Charge a customer's mobile money wallet from your server. The customer approves on their phone.
Host: rmp.hubtel.com. Requests must come from an allowlisted IP.
Authenticate with your API ID and API Key. See Authentication and accounts.
| Operation | Request |
|---|---|
| Charge a mobile money wallet | POST /merchantaccount/merchants/{accountNumber}/receive/mobilemoney |
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 |
2001 | The MTN Mobile Money user has reached counter or balance limits, has insufficient funds or is missing permissions. The Vodafone Cash failed You entered the wrong PIN. Please try again Dear Customer, you have insufficient funds. Avail. Balance:#### 5 successive invalid transfers will lock your account. Thank you. MTN Exception: Account Holder with FRI Not Found Transaction id is invalid | Customer either entered no or invalid PIN ; 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 |
Confirm a pre-approval with an OTP POST
Completes a pre-approval started with the OTP flow, using the code the customer received. On success the customer's wallet can be debited without further prompts.
Charge a mobile money wallet POST
Sends a payment prompt to the customer's phone. The response is `0001` (pending) while the customer decides. The final result is POSTed to `PrimaryCallbackUrl`, after the customer responds or the request expires. If no callback arrives within 5 minutes, call **Check a collection's status**. Prevent unsolicited prompts by charging only registered customers whose number cannot change at payment time, or verify unregistered numbers with an OTP first.