Skip to main content
The purchase endpoints reference plans and providers by ID / code. Fetch the current values from these catalog endpoints, then pass them into the matching purchase call. All catalog endpoints are authenticated with your Token API key.

Data plan IDs

Use this to get the data_plan value for Buy Data. Every plan includes its plan_id, network, name, amount and network_type.
GET https://api.mysubwallet.ng/api/data-plan
cURL
curl "https://api.mysubwallet.ng/api/data-plan" \
  -H "Authorization: Token your_api_key"
Response
{
  "status": "success",
  "plan": [
    {
      "network": "GLO",
      "network_type": "GIFTING",
      "name": "750MB GIFTING = ₦194.00 1 Day Special",
      "plan_id": "19",
      "amount": "194"
    },
    {
      "network": "MTN",
      "network_type": "GIFTING",
      "name": "2.7GB GIFTING = ₦1,900.00 1 Month",
      "plan_id": "31",
      "amount": "1900"
    }
  ]
}
Try it live in the List Data Plans playground.

Network IDs

Most endpoints accept a numeric network ID:
IDNetwork
1MTN
2Airtel
3Glo
49mobile

Other catalogs

All are GET and authenticated with your Token API key — try each in the playground.
CatalogEndpointUsed by
NetworksGET /api/networksthe network field everywhere
DISCOs (electricity)GET /api/discosPay Electricity Bill — the disco field
Cable plansGET /api/cable-plansCable Subscription — the cableplan value
Exam bodiesGET /api/exam-bodiesBuy Exam Pins — the exam field
Plan IDs and codes are also listed on the dashboard’s Pricing & Plan IDs page.