HubtelDevelopers
API referenceCommission Services

Buy AirtelTigo data bundle

POST
/commissionservices/{accountNumber}/06abd92da459428496967612463575ca

Pays for AirtelTigo 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/06abd92da459428496967612463575ca" \  -H "Content-Type: application/json" \  -d '{    "Destination": "233273833933",    "Amount": 50,    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",    "ClientReference": "TestDATA01090",    "Extradata": {      "bundle": "DATA50"    }  }'
{  "ResponseCode": "0001",  "Message": "Transaction pending. Expect callback request for final state",  "Data": {    "ClientReference": "TestDATA01090",    "Amount": 50,    "TransactionId": " 6bf810b8f7d5424a973165b36cc1817e",    "Meta": {      "Commission": "0.0560"    }  }}