HubtelDevelopers

Commission Services

Sell airtime, data and bill payment services.

Business accountsUpdated 26 Nov 2026
Overview

The Hubtel Commission Services API is a set of developer tools and products that help businesses, financial organizations and individuals to facilitate bill payments, airtime top-ups and other digital services for customers.


Base Endpoint

All requests to the Commission Services API will be sent to the base URLs below with the corresponding parameter formats.


ParameterValue
BaseURLhttps://cs.hubtel.com/commissionservices
Disbursement Account Number{Disbursement_Account_Number}
ServiceID{serviceID}
Content TypeJSON

Generic Commission Services Endpoint URL looks like this:

{BaseUrl}/{Disbursement_Account_Number}/{ServiceID}

Example:

https://cs.hubtel.com/commissionservices/11691/fdd76c884e614b1c8f669a3207b09a98

ServiceIDs
ServiceIDDescription
fdd76c884e614b1c8f669a3207b09a98MTN Airtime
f4be83ad74c742e185224fdae1304800Telecel Airtime
dae2142eb5a14c298eace60240c09e4bAirtelTigo Airtime
e6d6bac062b5499cb1ece1ac3d742a84ECG Prepaid & PostPaid
b9a1aa246ba748f9ba01ca4cdbb3d1d3Telecel Broadband
b230733cd56b4a0fad820e39f66bc27cMTN Data
fa27127ba039455da04a2ac8a1613e00Telecel Data
06abd92da459428496967612463575caAirtelTigo Data
297a96656b5846ad8b00d5d41b256ea7DSTV
e6ceac7f3880435cb30b048e9617eb41GOtv
a3ab78c84c6b4976b78a6f393e247a72Telecel Postpaid Bills
6c1e8a82d2e84feeb8bfd6be2790d71dGhana Water
6598652d34ea4112949c93c079c501ceStarTimes TV

Getting Started

Understanding the Service Flow

The Hubtel Sales API allows you to integrate multiple functionalities into your applications. This document focuses on:

  • Commission Services endpoints: REST API to either query one of the service endpoints or make a bill payment.
  • Status Check API: REST API to check for the status of a Commissions Service transaction initiated previously after five (5) or more minutes of the transaction’s completion. It is mandatory to implement the Transaction Status Check API only for transactions that you do not receive a callback from Hubtel.

The entire process is asynchronous. The figure below demonstrates the service flow using these two endpoints:

Service Flow

The table below outlines the steps involved in the Commissions Service API:

StepDescription
1Client App makes a Commissions Service request to Hubtel.
2Hubtel performs authentication on the request and sends a response to Client App accordingly.
3A final callback is sent to Client App via the CallbackURL provided in the request.
4In instances where a merchant does not receive the final status of the transaction after five (5) minutes from Hubtel, it is mandatory to do a status check using the Status Check API to determine the final status of the transaction.

API Reference

The core services are broken down into three main kinds: Airtime Top-ups, Data Bundles and Utility Payments. The details of how to integrate with each of the services can be found below.

It’s also mandatory to pass your Disbursement Account Number for every Commission Service request in the URL. Replace “{Disbursement_Account_Number}” in the endpoint "https://cs.hubtel.com/commissionservices/{'{Disbursement_Account_Number}'}/" with your Disbursement Account Number. Find your Disbursement Account Number here.


Airtime Top-Ups

Note

The maximum airtime top-up amount per request is 100 cedis.


MTN Airtime Top-Up

This endpoint is used to top up an MTN account with Airtime.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/fdd76c884e614b1c8f669a3207b09a98
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination account to receive the airtime value.
AmountFloatMandatoryThe airtime value to be sent during this transaction. NB: Only 2 decimal places is allowed E.g.: 0.50.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
DataObjectAn object containing the required data response from the API.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/fdd76c884e614b1c8f669a3207b09a98 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233246912184",
    "Amount": 0.5,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestEVD01011"
}

SAMPLE RESPONSE
  {
    "ResponseCode": "0001",
    "Message": "Transaction pending. Expect callback request for final state",
    "Data": {
        "ClientReference": "TestEVD01011",
        "Amount": 0.85,
        "TransactionId": "a50e003d8d8741d49a3a0dc677a7576b",
        "Meta": {
            "Commission": "0.05"
        }
    }   
}

Telecel Airtime Top-Up

This endpoint is used to top up an Telecel account with Airtime.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/f4be83ad74c742e185224fdae1304800
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination account to receive the airtime value.
AmountFloatMandatoryThe airtime value to be sent during this transaction. Eg: 0.5
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
DataObjectAn object containing the required data response from the API.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/f4be83ad74c742e185224fdae1304800 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233206439599",
    "Amount": 0.5,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestEVD01021"
}

SAMPLE RESPONSE
  {
    "ResponseCode": "0001",
    "Message": "Transaction pending. Expect callback request for final state",
    "Data": {
        "ClientReference": "TestEVD01021",
        "Amount": 0.85,
        "TransactionId": "0305e0d79b2048e5b57647d4acaff939",
        "Meta": {
            "Commission": "0.0280"
        }
    }   
}

AT Airtime Top-Up

This endpoint is used to top up an AT account with Airtime.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/dae2142eb5a14c298eace60240c09e4b
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination account to receive the airtime value.
AmountFloatMandatoryThe airtime value to be sent during this transaction. Eg: 0.5
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
DataObjectAn object containing the required data response from the API.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/dae2142eb5a14c298eace60240c09e4b HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233574126849",
    "Amount": 0.5,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestEVD01027"
}

SAMPLE RESPONSE
  {
    "ResponseCode": "0001",
    "Data": {
        "ClientReference": "TestEVD01027",
        "Amount": 0.85,
        "TransactionId": "a1579b60845444babfe13945660a679d",
        "Meta": {
            "Commission": "0.35"
        }
    }   
}

Data & Voice Bundle Services

Note

The data bundle packages are subject to change by the telco. Be sure to query the packages before initiating a top-up request.


MTN Data Bundle Query

This queries the MTN Data bundle service for the available bundles which can be purchased for a specific number.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/b230733cd56b4a0fad820e39f66bc27c?destination={RecipientNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination number which will be receiving the data bundle value. This parameter is to be placed in the URL. Not in the request body.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that show of different bundle packages
DisplayStringThe display key for the bundle.
ValueStringThe value of the data bundle. The desired value will then be used in the request body of the MTN Data topup endpoint.
AmountFloatThe transaction amount. The actual cost of the data bundle.

SAMPLE REQUEST
GET /commissionservices/11691/b230733cd56b4a0fad820e39f66bc27c?destination=233246912184 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "Successful",
  "Data": [
      {
          "Display": "17.79MB",
          "Value": "data_bundle_1",
          "Amount": 0.5
      },
      {
          "Display": "Kokrokoo 400MB, 5am to 8am",
          "Value": "kokrokoo_bundle_1",
          "Amount": 1.24
      },
      {
          "Display": "35.57MB",
          "Value": "data_bundle_2",
          "Amount": 1.0
      },
      {
          "Display": "349.24MB",
          "Value": "data_bundle_3",
          "Amount": 3.0
      },
      {
          "Display": "718.91MB",
          "Value": "data_bundle_4",
          "Amount": 10.0
      },
      {
          "Display": "1.19GB",
          "Value": "flexi_data_bundle",
          "Amount": 20.0
      },
      {
          "Display": "2.38GB",
          "Value": "flexi_data_bundle",
          "Amount": 40.0
      },
      {
          "Display": "3.58GB",
          "Value": "flexi_data_bundle",
          "Amount": 60.0
      },
      {
          "Display": "4.77GB",
          "Value": "flexi_data_bundle",
          "Amount": 80.0
      },
      {
          "Display": "7.87GB",
          "Value": "flexi_data_bundle",
          "Amount": 100.0
      },
      {
          "Display": "9.44GB",
          "Value": "flexi_data_bundle",
          "Amount": 120.0
      },
      {
          "Display": "11.80GB",
          "Value": "flexi_data_bundle",
          "Amount": 150.0
      },
      {
          "Display": "26.50GB",
          "Value": "flexi_data_bundle",
          "Amount": 200.0
      },
      {
          "Display": "33.13GB",
          "Value": "flexi_data_bundle",
          "Amount": 250.0
      },
      {
          "Display": "39.62GB",
          "Value": "flexi_data_bundle",
          "Amount": 299.0
      },
      {
          "Display": "92.88GB",
          "Value": "flexi_data_bundle",
          "Amount": 350.0
      },
      {
          "Display": "Video 135.69MB",
          "Value": "video_bundle_1",
          "Amount": 1.0
      },
      {
          "Display": "Video 678.43MB",
          "Value": "video_bundle_2",
          "Amount": 5.0
      },
      {
          "Display": "Video 1.33GB",
          "Value": "video_bundle_3",
          "Amount": 10.0
      },
      {
          "Display": "Social Media 70.87MB",
          "Value": "social_media_bundle_1",
          "Amount": 1.0
      },
      {
          "Display": "Social Media 354.36MB",
          "Value": "social_media_bundle_2",
          "Amount": 5.0
      },
      {
          "Display": "Social Media 708.72MB",
          "Value": "social_media_bundle_3",
          "Amount": 10.0
      }
  ]
}

MTN Data Bundle Top-Up

This endpoint is used to top up an MTN account with a data bundle.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/b230733cd56b4a0fad820e39f66bc27c
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination account to receive the data bundle value.
AmountFloatMandatoryThe cost of the data bundle being purchased. This amount is known by querying for the available data bundles to purchase.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.
ExtradataObjectMandatoryThis Object contains bundle name/key.
BundleStringMandatoryThe desired bundle being purchased. This parameter is taken from the “value” response parameter on the MTN Data Bundle Query Endpoint. Note: If the Bundle and the amount do not correspond to what is taken from the Data Bundle Query endpoint, the transaction will fail.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
DataObjectThis is an object that contains the parameters below.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectThis is an object that contains the Commission parameter.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/b230733cd56b4a0fad820e39f66bc27c HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233246912184",
    "Amount": 0.5,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestDATA01013",
    "Extradata": {
        "bundle": "data_bundle_1"
    }
}

SAMPLE RESPONSE
  {
    "ResponseCode": "0001",
    "Message": "Transaction pending. Expect callback request for final state.",
    "Data": {
        "ClientReference": "TestDATA01013",
        "Amount": 0.5,
        "TransactionId": "5b40e2e40fd4441d80b69b352f3103c7",
        "Meta": {
            "Commission": "0.0198"
        }
    }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
      "AmountDebited": 0.5,
      "TransactionId": "5b40e2e40fd4441d80b69b352f3103c7",
      "ClientReference": "TestDATA01013",
      "Description": "GHC 0.50 (data_bundle_1) has been sent to 233242825109 on January 24, 2024.",
      "ExternalTransactionId": "2024012416592042208544402",
      "Amount": 0.5,
      "Charges": 0,
      "Meta": {
          "Commission": "0.0198"
      },
      "RecipientName": null
  }
}

Telecel Data Query

This queries the Telecel Data Bundle Service for the available bundles which can be purchased for a specific number.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/fa27127ba039455da04a2ac8a1613e00?destination={RecipientNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination number which will be receiving the data bundle value. This parameter is to be placed in the URL. Not in the request body.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that show of different bundle packages.
DisplayStringThe display key for the bundle.
ValueStringThe value of the data bundle. The desired value will then be used in the request body of the Telecel Data topup endpoint.
AmountFloatThe transaction amount. The actual cost of the data bundle.

SAMPLE REQUEST
GET /commissionservices/11691/fa27127ba039455da04a2ac8a1613e00?destination=233206439599 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "Successful",
  "Data": [
      {
          "Display": " Dual Recharge",
          "Value": " 5.7 GB",
          "Amount": 50.0
      },
      {
          "Display": "Chat Monthly",
          "Value": "2 GB",
          "Amount": 20.0
      },
      {
          "Display": "Starter Monthly",
          "Value": "560 MB",
          "Amount": 10.0
      },
      {
          "Display": " Streamer Weekly",
          "Value": "460 MB",
          "Amount": 5.0
      },
      {
          "Display": "Browser Daily",
          "Value": "61 MB",
          "Amount": 1.0
      },
      {
          "Display": " Starter Daily",
          "Value": "25 MB",
          "Amount": 0.5
      }
  ]
}

Telecel Data Bundle Top-Up

This endpoint is used to top up a Telecel account with a data bundle.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/fa27127ba039455da04a2ac8a1613e00
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination account to receive the data bundle value.
AmountFloatMandatoryThe cost of the data bundle being purchased. This amount is known by querying for the available data bundles to purchase.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.
ExtradataObjectMandatoryThis Object contains bundle name/key.
BundleStringMandatoryThe desired bundle being purchased. This parameter is taken from the “value” response parameter on the MTN Data Bundle Query Endpoint. Note: If the Bundle and the amount do not correspond to what is taken from the Data Bundle Query endpoint, the transaction will fail.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/fa27127ba039455da04a2ac8a1613e00 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233206439419",
    "Amount": 0.5,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestDATA01025",
    "Extradata": {
        "bundle": "25 MB"
    }
}

SAMPLE RESPONSE
 {
   "ResponseCode": "0001",
   "Message": "Transaction pending. Expect callback request for final state",
   "Data": {
       "ClientReference": "TestDATA01025",
       "Amount": 1,
       "TransactionId": " 558625e7f8c94feb82ddf50cb33bc557",
       "Meta": {
           "Commission": "0.0140"
       }
   }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
      "AmountDebited": 1,
      "TransactionId": "d28c20baebdc44f19be7b62c922ac9c6",
      "ClientReference": "TestDATAwithkaks",
      "Description": "OK : ",
      "ExternalTransactionId": "767732a31701457c99bfcfad773fbedd",
      "Amount": 1,
      "Charges": 0,
      "Meta": {
          "Commission": "0.0269"
      },
      "RecipientName": null
  }
}

Telecel Broadband Query

This queries the Telecel Broadband service to get the details of a Broadband account.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/b9a1aa246ba748f9ba01ca4cdbb3d1d3?destination={RecipientNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe landline number on the broadband account. E.g.: "0302450262"

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that contains info on the account.
DisplayStringThe display key for the account detail. Eg: name, account, etc.
ValueStringThis shows the actual account detail of the “Display” parameter. E.g: the Account name (John Manu) is shown under a display key of value “name”.
AmountFloatThe amount. This parameter is usually zero.

SAMPLE REQUEST
GET /commissionservices/11691/b9a1aa246ba748f9ba01ca4cdbb3d1d3?destination=0302450262 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "",
  "Data": [
    {
        "Display": "name",
        "Value": "BOATENG PHILIP NANA BEDIAKO",
        "Amount": 0.0
    },
    {
        "Display": "amountDue",
        "Value": "0.00",
        "Amount": 0.0
    },
    {
        "Display": "account",
        "Value": "0302450262",
        "Amount": 0.0
    }
  ]
}

Telecel Broadband Top-Up

This endpoint is used to top up a Telecel broadband account.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/b9a1aa246ba748f9ba01ca4cdbb3d1d3
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe landline number on the broadband account. E.g.: "0302450262"
AmountFloatMandatoryThe top-up amount.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryA unique string identifying the transaction.
ExtradataObjectMandatoryThis Object contains bundle name/key.
BundleStringMandatoryThe broadband number.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/b9a1aa246ba748f9ba01ca4cdbb3d1d3 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "0302450262",
    "Amount": 1.0,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "567680374084840678",
    "Extradata": {
        "bundle": "P0444101"
    }
}

SAMPLE RESPONSE
{
  "ResponseCode": "0001",
  "Message": "Transaction pending. Expect callback request for final state.",
  "Data": {
      "ClientReference": "567680374084840678",
      "Amount": 1.0,
      "TransactionId": "f12b0054fe884769910e187cac833ba1",
      "Meta": {
          "Commission": "0.0000"
      }
  }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
    "AmountDebited": 1,
    "TransactionId": "f12b0054fe884769910e187cac833ba1",
    "ClientReference": "567680374084840678",
    "Description": "Status: ADSL[0302450262] Successful; Other Details: 0#09FG08211340576120512#1.00#2.00Operation successfully.; Reference: 09FG08211340576120512",
    "ExternalTransactionId": "09FG08211340576120512",
    "Amount": 1,
    "Charges": 0,
    "Meta": {
      "Commission": "0.0000"
    },
    "RecipientName": null
  }
}

AT Data Bundle Query

This queries the AT Data Bundle Service for the available bundles which can be purchased for a specific number.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/06abd92da459428496967612463575ca?destination={RecipientNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination number which will be receiving the data bundle value. This parameter is to be placed in the URL. Not in the request body.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that show of different bundle packages
DisplayStringThe display key for the bundle.
ValueStringThe value of the data bundle. The desired value will then be used in the request body of the AT Data top-up endpoint.
AmountFloatThe transaction amount. The actual cost of the data bundle.

SAMPLE REQUEST
GET /commissionservices/11691/06abd92da459428496967612463575ca?destination=233273833933 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "Select bundle",
  "Data": [
      {
          "Display": "80MB Bundle (GHS 1)",
          "Value": "DATA1",
          "Amount": 1.0
      },
      {
          "Display": "200MB Bundle (GHS 2",
          "Value": "DATA2",
          "Amount": 2.0
      },
      {
          "Display": "650MB Bundle (GHS 5)",
          "Value": "DATA5",
          "Amount": 5.0
      },
      {
          "Display": "2GB Bundle (GHS 10)",
          "Value": "DATA10",
          "Amount": 10.0
      },
      {
          "Display": "5GB Bundle (GHS 20)",
          "Value": "DATA20",
          "Amount": 20.0
      },
      {
          "Display": "11GB Bundle (GHS 50)",
          "Value": "DATA50",
          "Amount": 50.0
      }
  ]
}

AT Data Bundle Top-Up

This endpoint is used to top up a AT account with a data bundle.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/06abd92da459428496967612463575ca
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe destination account to receive the data bundle value.
AmountFloatMandatoryThe cost of the data bundle being purchased. This amount is known by querying for the available data bundles to purchase.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.
ExtradataObjectMandatoryThis Object contains bundle name/key.
BundleStringMandatoryThe desired bundle being purchased. This parameter is taken from the “value” response parameter on the MTN Data Bundle Query Endpoint. Note that: if the Bundle and the amount do not correspond to what is taken from the Data Bundle Query endpoint, the transaction will fail.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/06abd92da459428496967612463575ca HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233273833933",
    "Amount": 50,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestDATA01090",
    "Extradata": {
        "bundle": "DATA50",
    }
}

SAMPLE RESPONSE
{
  "ResponseCode": "0001",
  "Message": "Transaction pending. Expect callback request for final state",
  "Data": {
      "ClientReference": "TestDATA01090",
      "Amount": 50,
      "TransactionId": " 6bf810b8f7d5424a973165b36cc1817e",
      "Meta": {
          "Commission": "0.0560"
      }
  }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
      "AmountDebited": 50,
      "TransactionId": "d880a1a9cdb64e6b861f06b51b4f7504",
      "ClientReference": "TestDATA2024Ka",
      "Description": "Operation successful.",
      "ExternalTransactionId": "999000002777764224",
      "Amount": 50,
      "Charges": 0,
      "Meta": {
          "Commission": "0.0333"
      },
      "RecipientName": null
  }
}

Utility Bill Payments

DSTV Account Query

This queries the DSTV service to get the details of a DSTV account.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/297a96656b5846ad8b00d5d41b256ea7?destination={AccountNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe DSTV account number.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that contains info on the account.
DisplayStringThe display key for the account detail. Eg: name, account, etc.
ValueStringThis shows the actual account detail of the “Display” parameter. Eg: the Account name (John Manu) is shown under a display key of value “name”.
AmountFloatThe amount. This parameter is usually zero.

SAMPLE REQUEST
GET /commissionservices/11691/297a96656b5846ad8b00d5d41b256ea7?destination=7029864396 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "",
  "Data": [
      {
          "Display": "name",
          "Value": "John Barnes",
          "Amount": 0.0
      },
      {
          "Display": "amountDue",
          "Value": "0.00",
          "Amount": 0.0
      },
      {
          "Display": "account",
          "Value": "7029864396",
          "Amount": 0.0
      }
  ]
}

DSTV Bill Payment

This endpoint is used to top up a DSTV account with any specified amount.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/297a96656b5846ad8b00d5d41b256ea7
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe DSTV account number.
AmountFloatMandatoryThe top-up amount. NB: Only 2 decimal places is allowed E.g.: 0.50.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/297a96656b5846ad8b00d5d41b256ea7 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "7029864396",
    "Amount": 50,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestTV0101"
}

SAMPLE RESPONSE
  {
    "ResponseCode": "0001",
    "Message": "Transaction pending. Expect callback request for final state",
    "Data": {
        "ClientReference": "TestTV0101",
        "Amount": 50,
        "TransactionId": "9c6d65a2a7834759b44919a1621b80fd",
        "Meta": {
            "Commission": "0.3500"
        }
    }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
    "AmountDebited": 50,
    "TransactionId": "9c6d65a2a7834759b44919a1621b80fd",
    "ClientReference": "TestTV0101",
    "Description": "Status: DSTV[7038632593] Successful; Other Details: Approved or completed successfully; Reference: 09FG05151003161426526",
    "ExternalTransactionId": "09FG05151003161426526",
    "Amount": 50,
    "Charges": 0,
    "Meta": {
      "Commission": "0.35"
    },
    "RecipientName": null
  }
}

GoTV Account Query

This queries the GoTV service to get the details of a DSTV account.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/e6ceac7f3880435cb30b048e9617eb41?destination={AccountNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe GoTV account number.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that contains info on the account.
DisplayStringThe display key for the account detail. Eg: name, account, etc.
ValueStringThis shows the actual account detail of the “Display” parameter. Eg: the Account name (John Manu) is shown under a display key of value “name”.
AmountFloatThe amount. This parameter is usually zero.

SAMPLE REQUEST
GET /commissionservices/11691/e6ceac7f3880435cb30b048e9617eb41?destination=
7032371505 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
  {
    "ResponseCode": "0000",
    "Message": "Successful",
    "Label": "",
    "Data": [
        {
            "Display": "name",
            "Value": "Senya Duku",
            "Amount": 0.0
        },
        {
            "Display": "amountDue",
            "Value": "-201.00",
            "Amount": 0.0
        },
        {
            "Display": "account",
            "Value": "7032371505",
            "Amount": 0.0
        }
    ]
}

GoTV Bill Payment

This endpoint is used to top up a GoTV account with any specified amount.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/e6ceac7f3880435cb30b048e9617eb41
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe GoTv account number.
AmountFloatMandatoryThe top-up amount. NB: Only 2 decimal places is allowed E.g.: 0.50.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/e6ceac7f3880435cb30b048e9617eb41 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "7032371505",
    "Amount": 50,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestTV0106",
}

SAMPLE RESPONSE
  {
    "ResponseCode": "0001",
    "Message": "Transaction pending. Expect callback request for final state",
    "Data": {
        "ClientReference": "TestTV0106",
        "Amount": 50.0,
        "TransactionId": "9c6d65a2a7834759b44919a1621b80fd",
        "Meta": {
            "Commission": "0.3500"
        }
    }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
    "AmountDebited": 50,
    "TransactionId": "f871040095cd46ca9389f1b447d80c5e",
    "ClientReference": "TestTV0106",
    "Description": "Status: DSTV[7032371505] Successful; Other Details: Approved or completed successfully; Reference: 09FG05151017535304132",
    "ExternalTransactionId": "09FG05151017535304132",
    "Amount": 50.0,
    "Charges": 0,
    "Meta": {
      "Commission": "0.3500"
    },
    "RecipientName": null
  }
}

StarTimes TV Account Query

This queries the StarTimes TV service to get the details of a DSTV account.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/6598652d34ea4112949c93c079c501ce?destination={AccountNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe StarTimes TV account number.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that contains info on the account.
DisplayStringThe key that holds several details about the account. E.g.: name, account number and bouquet.
ValueStringThis shows the actual account detail of the “Display” parameter. Eg: the Account name (John Nti) is shown under a display key of value “name”.
AmountFloatThe amount being paid for in this transaction. As this is a Query endpoint and not a POST endpoint, this parameter will usually be empty.

SAMPLE REQUEST
GET /commissionservices/11691/6598652d34ea4112949c93c079c501ce?destination=02190617357 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "Successful",
  "Data": [
      {
          "Display": "Name",
          "Value": "Joe Nti",
          "Amount": 0.0
      },
      {
          "Display": "Account Number",
          "Value": "02190617357",
          "Amount": 0.0
      },
      {
          "Display": "Bouquet",
          "Value": "DTH_Super ",
          "Amount": 0.0
      }
  ]
}

StarTimes TV Bill Payment

This endpoint is used to top up a StartTimes TV account with any specified amount.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/6598652d34ea4112949c93c079c501ce
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe StarTimes TV account number.
AmountFloatMandatoryThe top-up amount. NB: Only 2 decimal places is allowed E.g.: 0.50.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount. NB: Only 2 decimal places is allowed E.g.: 0.50.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/6598652d34ea4112949c93c079c501ce HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==
{
    "Destination": "02190617357",
    "Amount": 50,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestTV0108",
}

SAMPLE RESPONSE
{
  "ResponseCode": "0001",
  "Message": "Transaction pending. Expect callback request for final state",
  "Data": {
      "ClientReference": "TestTV0108",
      "Amount": 50.0,
      "TransactionId": "0bf810b8f7d5424a973165b36cc1817e",
      "Meta": {
          "Commission": "0.3500"
      }
  }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
    "AmountDebited": 50,
    "TransactionId": "0bf810b8f7d5424a973165b36cc1817e",
    "ClientReference": "TestTV0108",
    "Description": "Payment made was Successfully",
    "ExternalTransactionId": "2000020594",
    "Amount": 50,
    "Charges": 0,
    "Meta": {
      "Commission": "0.3500"
    },
    "RecipientName": null
  }
}

ECG Meter Query

This queries the list of Meters linked to a mobile number via the ECG Power App.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/e6d6bac062b5499cb1ece1ac3d742a84?destination={MobilePhone_Number}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe mobile number linked to a particular ECG meter whose details need to be checked.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that contains info about the meter.
DisplayStringThe key that holds several details about the meter. Eg: name, account, etc.
ValueStringThis shows the Meter Number.
AmountFloatThe outstanding amount to be paid on the meter.

SAMPLE REQUEST
GET /commissionservices/11691/e6d6bac062b5499cb1ece1ac3d742a84?destination=233541312238 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "Successful",
  "Data": [
      {
          "Display": " THOMAS ANANE (G131099826)",
          "Value": " G131099826",
          "Amount": -1.1432
      },
      {
          "Display": " ADEMAU LYDIA (24911947992)",
          "Value": " 24911947992",
          "Amount": 0
      }
  ]
}

ECG Meter Top-Up

This endpoint is used to top up a Meter (PostPaid or Prepaid).

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/e6d6bac062b5499cb1ece1ac3d742a84
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe mobile phone number linked to a particular ECG Meter.
AmountFloatMandatoryThe amount to be topped up on the meter.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe reference number that is provided by the API user.
ExtradataObjectMandatoryThis Object contains the bundle.
BundleStringMandatoryThis is the actual Meter Number or Account Number for which the Topup is to be done.

Note

This endpoint will link the phone number to the meter if that has not already been done. Please ensure that this is your intended action. For POSTPAID meters, pass the account number in the bundle parameter.


RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectObject that contains Commission key
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/e6d6bac062b5499cb1ece1ac3d742a84 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233541312238",
    "Amount": 1,
    "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
    "ClientReference": "TestDATA2022052105",
    "Extradata": {
        "bundle": "P09137104"
    }
}

SAMPLE RESPONSE
{
  "ResponseCode": "0001",
  "Message": "Transaction pending. Expect callback request for final state",
  "Data": {
      "ClientReference": " TestDATA2022052105",
      "Amount": 1,
      "TransactionId": " 6bf810b8f7d5424a973165b36cc1817e",
      "Meta": {
          "Commission": "0.0171"
      }
  }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
    "AmountDebited": 1,
    "TransactionId": "6bf810b8f7d5424a973165b36cc1817e",
    "ClientReference": "TestDATA2022052105",
    "Description": "success",
    "ExternalTransactionId": "7289775",
    "Amount": 1,
    "Charges": 0,
    "Meta": {
      "Commission": "0.0171"
    },
    "RecipientName": null
  }
}

Ghana Water Meter Query

This queries the Ghana Water service to get the details of a Ghana Water Company Ltd account.

GEThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/6c1e8a82d2e84feeb8bfd6be2790d71d?destination={MeterNumber}&mobile={phoneNumber}
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe meter number to be queried.
mobileStringMandatoryThe customer's phone number.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response code received from the response payload.
LabelStringThe response label from the service provider. Usually the same as the message.
DataArrayOfObjectsThis is an Array of objects that contains info on the account.
DisplayStringThe display key for the account detail. E.g.: name, amount, sessionID etc. Note: The sessionID is unique per request.
ValueStringThis shows the actual account detail of the “Display” parameter. E.g.: the Account name (Amakye Frempong) is shown under a display key of value “name”.
AmountFloatThe amount, this parameter is usually zero.

SAMPLE REQUEST
GET /commissionservices/11691/6c1e8a82d2e84feeb8bfd6be2790d71d?destination=091019010006&mobile=233242825109 HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

SAMPLE RESPONSE
{
  "ResponseCode": "0000",
  "Message": "Successful",
  "Label": "Successful",
  "Data": [
      {
          "Display": "name",
          "Value": "AMAKYE FREMPONG",
          "Amount": 0.0
      },
      {
          "Display": "amountDue",
          "Value": "371.89",
          "Amount": 371.89
      },
      {
          "Display": "sessionId",
          "Value": "3792660ccf0e687b64cdb3f776fd6e368ca4260d",
          "Amount": 0.0
      }
  ]
}

Ghana Water Meter Top-Up

This enables you to top-up your Ghana Water Company Ltd account.

POSThttps://cs.hubtel.com/commissionservices/{Disbursement_Account_Number}/6c1e8a82d2e84feeb8bfd6be2790d71d
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
DestinationStringMandatoryThe customer's phone number.
AmountFloatMandatoryThis is the top-up amount. NB: Only 2 decimal places is allowed E.g.: 0.50.
ExtraDataObjectMandatoryThis Object contains the customer’s phone number, customer’s e-mail, and the session ID.
BundleStringMandatoryThis is the meter account number
E-mailStringMandatoryThe customer’s email address.
SessionIDStringMandatoryGenerated from meter query. This is unique per transaction.
CallbackUrlStringMandatoryUsed to receive the callback for the transaction from Hubtel. See below for a sample callback.
ClientReferenceStringMandatoryThe unique reference number that is provided by the API user.

RESPONSE PARAMETERS
ParameterTypeDescription
ResponseCodeStringThe unique response code on the status of the transaction.
MessageStringThe description of the response received from the API call that is related to the ResponseCode.
DataObjectThis is an Object that contain details of top-up initiated.
ClientReferenceStringThe reference number that was initially provided by the API user in the request payload.
AmountFloatThe transaction amount, minus the charges/fees.
TransactionIdStringThe unique ID to identify a transaction.
MetaObjectThis object contains details of the commission charged.
CommissionStringThe commission gained for the transaction.

SAMPLE REQUEST
POST /commissionservices/11691/6c1e8a82d2e84feeb8bfd6be2790d71d HTTP/1.1
Host: cs.hubtel.com
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3==

{
    "Destination": "233548359582",
    "Amount": 1,
    "Extradata": {
        "bundle": "080706070056",
        "Email": "[email protected]",
        "SessionId": "e7a113dd2f8b08b85a149d3db40854de2f13410b"
    },
    "CallbackUrl": "https://webhook.site/b630fc60-8041-470c-b13e-ee69ef15b2c2",
    "ClientReference": "275438fce23f4983b9583abdf0ded9c7e"
}

SAMPLE RESPONSE
{
  "ResponseCode": "0001",
  "Message": "Transaction pending. Expect callback request for final state.",
  "Data": {
      "ClientReference": "509e21d2b1104036a64ca44b30613f1ftestt",
      "Amount": 1.0,
      "TransactionId": "7304f27f559a4680a912ce7ec19e6d2a",
      "Meta": {
          "Commission": "0.0070"
      }
  }
}
SAMPLE CALLBACK
{
  "ResponseCode": "0000",
  "Data": {
    "AmountDebited": 1,
    "TransactionId": "7b4ada5714754d8bb8150712fd837ed9",
    "ClientReference": "509e21d2b1104036a64ca44b30613f1ftesttt",
    "Description": "Success",
    "ExternalTransactionId": "050a9435954148e1b4e3bd112a7bc4802cee8886",
    "Amount": 1,
    "Charges": 0,
    "Meta": {
      "Commission": "0.0007"
    },
    "RecipientName": null
  }
}

Transaction Status Check

It is mandatory to implement the Transaction Status Check API as it allows merchants to check for the status of a receive money transaction in rare instances where a merchant does not receive the final status of the transaction after five (5) minutes from Hubtel.

To check a transaction status, send an HTTP GET request to the below URL with either one or more unique transaction identifiers as parameters.

It is also mandatory to parse your Collection Account Number for Status Check requests in the endpoint. Find your Collection Account Number here.


GEThttps://api-txnstatus.hubtel.com/transactions/{Collection_Account_Number}/status
Content type
application/json

REQUEST PARAMETERS
ParameterTypeRequirementDescription
clientReferenceStringMandatory (preferred)The clientReference of the transaction specified in the request payload.
hubtelTransactionIdStringOptionalTransactionId from Hubtel after successful receive money request.
networkTransactionIdStringOptionalThe transaction reference from the mobile money provider.

Note

Although either one of the unique transaction identifiers above could be passed as parameters, clientReference is recommended to be used often.


SAMPLE REQUEST
GET /transactions/11684/status?clientReference=TestAirt HTTP/1.1
Host: api-txnstatus.hubtel.com
Authorization: Basic endjeOBiZHhza250fT3==

RESPONSE PARAMETERS
ParameterTypeDescription
messageStringThe description of response received from the Commission Services API that is related to the ResponseCode.
responseCodeStringThe response code of the API after the request.
dataObjectAn object containing the required data response from the Commission Services API.
dateStringDate of the transaction
statusStringStatus of the transaction i.e.: Paid or Unpaid
transactionIdStringThe unique ID used to identify a Hubtel transaction (from Hubtel).
externalTransactionIdStringThe transaction reference from the mobile money provider (from Telco).
paymentMethodStringThe mode of payment
clientReferenceStringThe reference ID that is initially provided by the client/API user in the request payload. (from merchant)
currencycodeStringCurrency of the transaction; could be null
amountFloatThe transaction amount.
chargesFloatThe charge/fee for the transaction.
amountAfterChargesFloatThe transaction amount after charges/fees deduction.
isFulfilledBooleanWhether service was fulfilled; could be null

SAMPLE RESPONSE (Success)
{
  "message": "Successful",
  "responseCode": "0000",
  "data": {
      "date": "2024-01-15T21:28:17.3234841Z",
      "status": "Paid",
      "transactionId": "9a7304855d8a4041917509bb46be7050",
      "externalTransactionId": null,
      "paymentMethod": "cash",
      "clientReference": "TestAirt",
      "currencyCode": null,
      "amount": 1.0,
      "charges": 0.0,
      "amountAfterCharges": 1.0,
      "isFulfilled": true
  }
}
SAMPLE RESPONSE (Failed)
{
  {
    "message": "Successful",
    "responseCode": "0000",
    "data": {
        "date": "2024-01-15T21:58:21.1918103Z",
        "status": "Unpaid",
        "transactionId": "f35e5ec1ee984c4b85b310ad969db776",
        "externalTransactionId": null,
        "paymentMethod": "cash",
        "clientReference": "testECGr",
        "currencyCode": null,
        "amount": 1.0,
        "charges": 0.0,
        "amountAfterCharges": 1.0,
        "isFulfilled": false
    }
  }
}

Response Codes

The Hubtel Commission Services API uses standard HTTP error reporting. Successful requests return HTTP status codes in the 2xx. Failed requests return status codes in 4xx and 5xx.

Error responses are included in the JSON response body, which contains information about the error. You can also find Error Responses in the Final Callbacks.

Note

Response Codes which are not 0000 should be considered as FAILED.

Response CodeDescriptionRequired Action
0000The transaction has been processed successfully.None
0001Transaction pending. Expect callback request for final stateNone
0005There was an HTTP failure/exception.The transaction state is not known. Please contact your Retail Systems Engineer to confirm the status of this transaction.
2000General Failure Error
2001General Failure ErrorUsually, check the description of the response callback. It gives the actual error. Eg: The receiving user is not registered in the system. Or the Bundle is invalid
4000An error occured. Kindly try again later/ missing mobile value. An error occured during verificationKindly check to ensure you are parsing the correct parameters.
4010Validation ErrorsA required request parameter might have been left empty, invalid or omitted.
4101Authorization for request is denied/could not find prepaid accountEnsure that you're providing the correct Basic Auth key for the Authorization header. Also ensure you’re passing your Disbursement Account Number in the endpoint
4103Permission deniedYou are not allowed to perform this transaction. Kindly ensure your API keys are accurate.
4075Insufficient prepaid balance.You don't have enough funds in your Disbursement Account to render this service to your customers. You can top-up your Disbursement Account by transferring funds from your available balance or bank deposit.

On this page