Use these read-only endpoints to validate a customer before purchase and to fetch the IDs and plan codes the purchase endpoints expect.
Validate a customer
Verify smartcard
POST /api/cable/cable-validation
Verify meter
POST /api/bill/bill-validation
Catalogs
Fetch the IDs and plan codes used by the purchase endpoints.
| Catalog | Endpoint |
|---|
| Networks | GET /api/website/app/network |
| DISCOs (electricity) | GET /api/website/app/disco |
| Cable plans | GET /api/website/app/cableplan |
| Exam bodies | GET /api/website/app/exam |
curl "https://api.mysubwallet.ng/api/website/app/network" \
-H "Authorization: Token your_api_key"
{
"status": "success",
"data": [
{ "id": 1, "name": "MTN" },
{ "id": 2, "name": "Airtel" },
{ "id": 3, "name": "Glo" },
{ "id": 4, "name": "9mobile" }
]
}
Data and cable plan IDs/codes are also listed on the dashboard’s Pricing & Plan IDs page.