HubtelDevelopers
API referenceCommission Services

List MTN data bundles

GET
/commissionservices/{accountNumber}/b230733cd56b4a0fad820e39f66bc27c

Returns the available MTN data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment.

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.

Query Parameters

destination*string

The 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 Body

application/json

application/json

application/json

curl -X GET "https://example.com/commissionservices/string/b230733cd56b4a0fad820e39f66bc27c?destination=233246912184"
{  "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    },    {      "Display": "349.24MB",      "Value": "data_bundle_3",      "Amount": 3    },    {      "Display": "718.91MB",      "Value": "data_bundle_4",      "Amount": 10    },    {      "Display": "1.19GB",      "Value": "flexi_data_bundle",      "Amount": 20    },    {      "Display": "2.38GB",      "Value": "flexi_data_bundle",      "Amount": 40    },    {      "Display": "3.58GB",      "Value": "flexi_data_bundle",      "Amount": 60    },    {      "Display": "4.77GB",      "Value": "flexi_data_bundle",      "Amount": 80    },    {      "Display": "7.87GB",      "Value": "flexi_data_bundle",      "Amount": 100    },    {      "Display": "9.44GB",      "Value": "flexi_data_bundle",      "Amount": 120    },    {      "Display": "11.80GB",      "Value": "flexi_data_bundle",      "Amount": 150    },    {      "Display": "26.50GB",      "Value": "flexi_data_bundle",      "Amount": 200    },    {      "Display": "33.13GB",      "Value": "flexi_data_bundle",      "Amount": 250    },    {      "Display": "39.62GB",      "Value": "flexi_data_bundle",      "Amount": 299    },    {      "Display": "92.88GB",      "Value": "flexi_data_bundle",      "Amount": 350    },    {      "Display": "Video 135.69MB",      "Value": "video_bundle_1",      "Amount": 1    },    {      "Display": "Video 678.43MB",      "Value": "video_bundle_2",      "Amount": 5    },    {      "Display": "Video 1.33GB",      "Value": "video_bundle_3",      "Amount": 10    },    {      "Display": "Social Media 70.87MB",      "Value": "social_media_bundle_1",      "Amount": 1    },    {      "Display": "Social Media 354.36MB",      "Value": "social_media_bundle_2",      "Amount": 5    },    {      "Display": "Social Media 708.72MB",      "Value": "social_media_bundle_3",      "Amount": 10    }  ]}