DataplanetDataplanetDevelopers
HomeSign inGet API keyAPI key

Dataplanet Developers

API Documentation

Merchant REST API for data, airtime, electricity, cable TV, exam PINs, betting and more. Build in the sandbox with test money, then go live with one key change.

JSON over HTTPS Free sandbox Signed webhooks

Base URL

https://dataplanet.ng

https://dataplanet.ng

Getting started

IntroductionAuthenticationResponses & statusesError codes

MSORG website slot

MSORG slotMSORG buy dataPOSTMSORG buy airtimePOSTMSORG balanceGETMSORG requeryGET

Sandbox & testing

Sandbox & testingReset sandbox walletPOST

Wallet & catalog

Wallet balanceGETList billersGETBiller productsGET

Data & airtime

Buy dataPOSTBuy airtimePOSTBulk dataPOSTBulk airtimePOSTBulk order statusGET

Electricity & cable TV

Verify meterPOSTBuy electricityPOSTVerify smartcardPOSTBuy cablePOST

Exam PINs, gift cards & eSIM

Exam PINsPOSTBuy gift cardPOSTBuy eSIMPOST

Betting, internet, voice & SMS

Verify betting IDPOSTFund bettingPOSTVerify internet accountPOSTBuy internetPOSTBuy voicePOSTSend bulk SMSPOST

Recharge PINs

NetworksGETDenominationsGETBuy recharge PINsPOSTList PIN ordersGETGet PIN orderGET

Beneficiaries

List beneficiariesGETSave beneficiaryPOSTUpdate beneficiaryPUTDelete beneficiaryDEL

Transactions

List transactionsGETGet transactionGET

Webhooks

Overview & signatureGet webhook settingsGETSet webhook URLPUTDisable webhookDELSend test webhookPOSTList deliveriesGETResend deliveryPOST
Get an API key

Biller products

Bearer ds_live_ / ds_test_
GET/api/v1/merchant/billers/{slug}/products

Returns the active products (plans, bouquets, PIN types) of a single biller with your effective price for each.

Live product catalog

Prices depend on your account pricing group. Sign in to browse the billers and plans, and copy the slugs and plan ids you need for API requests.

Sign in to view catalog
Language
curl -X GET "https://dataplanet.ng/api/v1/merchant/billers/dstv/products" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Accept: application/json"

Authentication

Send your secret API key in the header. Authorization: Token … and X-API-Key: … are also accepted.

HeaderValueRequired
AuthorizationBearer ds_live_YOUR_KEYYes
Acceptapplication/jsonRecommended

Authentication failures (401 UNAUTHORIZED, 403 IP_NOT_ALLOWED / ACCOUNT_SUSPENDED / API_ACCESS_NOT_APPROVED, 429 RATE_LIMITED) are listed in Authentication.

Parameters

Path parameters

NameTypeRequiredDescription
slugstringYesBiller slug, code or id from List billers, e.g. mtn-data, dstv, waec.

Responses

200 OK — OK · 200 OK — OK (education) · 404 Not Found — Unknown biller

{
  "biller_slug": "dstv",
  "biller_name": "DStv",
  "count": 1,
  "data": [
    {
      "id": 640,
      "name": "DStv Compact",
      "code": "dstv-compact",
      "description": "",
      "size": null,
      "plan_type": null,
      "plan_type_slug": null,
      "amount": 15700,
      "currency": "NGN",
      "validity_days": 30,
      "is_variable_amount": false,
      "min_amount": null,
      "max_amount": null,
      "sort_order": 2,
      "is_special": false,
      "effective_amount": 15700,
      "effective_fee": 0,
      "effective_total": 15700,
      "cashback": 0,
      "benefit_type": null,
      "benefit_label": ""
    }
  ]
}

Errors

Errors specific to this endpoint, in addition to the authentication and validation errors common to every request.

CodeHTTPWhen
BILLER_NOT_FOUND404No active biller with this slug, code or id.

Notes

  • Education example: product name is the pin label (Epin); pair with biller_name for display (WAEC Epin). Send id as product_id on POST /education/purchase.
Previous · Wallet & catalogList billersNext · Data & airtimeBuy data

Developed by Scaler Developers