Services
These endpoints return the service catalogue and available packages.
Get Services
Endpoint: GET /services
curl -X GET "https://app.wisesub.com.ng/api/partner/v1/services" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-API-Secret: YOUR_API_SECRET" \
-H "X-Environment: test" \
-H "Accept: application/json"Response
{
"success": true,
"message": "Services retrieved successfully",
"data": {
"data_bundles": [
{ "name": "MTN Data", "type": "data", "provider_code": "mtn" },
{ "name": "Glo Data", "type": "data", "provider_code": "glo" },
{ "name": "Airtel Data", "type": "data", "provider_code": "airtel" },
{ "name": "9mobile Data", "type": "data", "provider_code": "9mobile" }
],
"airtime": [
{ "name": "MTN Airtime", "type": "airtime", "provider_code": "mtn" },
{ "name": "Glo Airtime", "type": "airtime", "provider_code": "glo" },
{ "name": "Airtel Airtime", "type": "airtime", "provider_code": "airtel" },
{ "name": "9mobile Airtime", "type": "airtime", "provider_code": "9mobile" }
],
"electricity": [
{ "name": "Abuja Electric", "type": "electricity", "provider_code": "abuja" },
{ "name": "Ikeja Electric", "type": "electricity", "provider_code": "ikeja" },
{ "name": "Eko Electric", "type": "electricity", "provider_code": "eko" }
],
"cable_tv": [
{ "name": "DSTV", "type": "cabletv", "provider_code": "dstv" },
{ "name": "GOTV", "type": "cabletv", "provider_code": "gotv" },
{ "name": "Startimes", "type": "cabletv", "provider_code": "startimes" }
]
}
}Get Packages
Endpoint: GET /packages?service_type={type}&provider_code={code}
| Parameter | Required | Description |
|---|---|---|
service_type | Yes | One of: data, airtime, cabletv, electricity |
provider_code | Yes | From the /services response |
Example: MTN Data
curl -X GET "https://app.wisesub.com.ng/api/partner/v1/packages?service_type=data&provider_code=mtn" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-API-Secret: YOUR_API_SECRET" \
-H "X-Environment: test" \
-H "Accept: application/json"Response
{
"success": true,
"message": "Packages retrieved successfully",
"data": {
"service_type": "data",
"provider": "MTN Data",
"provider_code": "mtn",
"packages": [
{
"package_code": "mtn-10mb-100",
"package_name": "N100 100MB - 24 hrs",
"price": 98.50
},
{
"package_code": "mtn-50mb-200",
"package_name": "N200 200MB - 2 days",
"price": 197.00,
"you_save": 3.00
}
]
}
}💡
Note: The
price shown is already discounted. For data, the optional you_save field shows how much you saved compared to the original price.