HubtelDevelopers
API referenceCommission Services

Buy Telecel data bundle

POST
/commissionservices/{accountNumber}/fa27127ba039455da04a2ac8a1613e00

Pays for Telecel data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key.

In: header

Path Parameters

accountNumber*string

Your disbursement account number (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under Programmable keys → Account ID. In the sandbox, use the disbursement 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/commissionservices/string/fa27127ba039455da04a2ac8a1613e00" \  -H "Content-Type: application/json" \  -d '{    "Destination": "233206439419",    "Amount": 0.5,    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",    "ClientReference": "TestDATA01025",    "Extradata": {      "bundle": "25 MB"    }  }'
{  "ResponseCode": "0001",  "Message": "Transaction pending. Expect callback request for final state",  "Data": {    "ClientReference": "TestDATA01025",    "Amount": 1,    "TransactionId": " 558625e7f8c94feb82ddf50cb33bc557",    "Meta": {      "Commission": "0.0140"    }  }}