HubtelDevelopers

Charge a mobile money wallet

POST
/merchantaccount/merchants/{accountNumber}/receive/mobilemoney

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.

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.

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/merchantaccount/merchants/string/receive/mobilemoney" \  -H "Content-Type: application/json" \  -d '{    "CustomerName": "Joe Doe",    "CustomerMsisdn": "233200000000",    "CustomerEmail": "[email protected]",    "Channel": "vodafone-gh",    "Amount": 0.8,    "PrimaryCallbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede",    "Description": "Union Dues",    "ClientReference": "3jL2KlUy3vt21"  }'
{  "Message": "Transaction pending. Expect callback request for final state",  "ResponseCode": "0001",  "Data": {    "TransactionId": "09f84e20a283942e807128e8c21d08d6",    "Description": "Union Dues",    "ClientReference": "3jL2KlUy3vt21",    "Amount": 0.8,    "Charges": 0.05,    "AmountAfterCharges": 0.8,    "AmountCharged": 0.85,    "DeliveryFee": 0  }}