HubtelDevelopers
API referenceCommission Services

Buy Telecel broadband

POST
/commissionservices/{accountNumber}/b9a1aa246ba748f9ba01ca4cdbb3d1d3

Pays for Telecel broadband 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/b9a1aa246ba748f9ba01ca4cdbb3d1d3" \  -H "Content-Type: application/json" \  -d '{    "Destination": "0302450262",    "Amount": 1,    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",    "ClientReference": "567680374084840678",    "Extradata": {      "bundle": "P0444101"    }  }'
{  "ResponseCode": "0001",  "Message": "Transaction pending. Expect callback request for final state.",  "Data": {    "ClientReference": "567680374084840678",    "Amount": 1,    "TransactionId": "f12b0054fe884769910e187cac833ba1",    "Meta": {      "Commission": "0.0000"    }  }}