HubtelDevelopers
API referenceCommission Services

Pay Ghana Water

POST
/commissionservices/{accountNumber}/6c1e8a82d2e84feeb8bfd6be2790d71d

Pays for Ghana Water from your prepaid balance; look up a meter 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/6c1e8a82d2e84feeb8bfd6be2790d71d" \  -H "Content-Type: application/json" \  -d '{    "Destination": "233548359582",    "Amount": 1,    "Extradata": {      "bundle": "080706070056",      "Email": "[email protected]",      "SessionId": "e7a113dd2f8b08b85a149d3db40854de2f13410b"    },    "CallbackUrl": "https://webhook.site/b630fc60-8041-470c-b13e-ee69ef15b2c2",    "ClientReference": "275438fce23f4983b9583abdf0ded9c7e"  }'
{  "ResponseCode": "0001",  "Message": "Transaction pending. Expect callback request for final state.",  "Data": {    "ClientReference": "509e21d2b1104036a64ca44b30613f1ftestt",    "Amount": 1,    "TransactionId": "7304f27f559a4680a912ce7ec19e6d2a",    "Meta": {      "Commission": "0.0070"    }  }}