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

Recharge PIN denominations

Bearer ds_live_ / ds_test_
GET/api/v1/merchant/recharge-pin/denominations

Shows each card face value you can buy for a network, how many PINs are in stock, and what you pay per PIN at your account price. Unlike data plans, recharge cards are not selected with a plan_id — you buy by denomination (the card amount).

Language
curl -X GET "https://dataplanet.ng/api/v1/merchant/recharge-pin/denominations?network=MTN" \
  -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

Query parameters

NameTypeRequiredDescription
networkstringOne ofMTN, GLO, AIRTEL or 9MOBILE.
network_idintegerOne ofNumeric network code: 1 = MTN, 2 = GLO, 3 = 9MOBILE, 4 = AIRTEL. Prefer network or biller when you can.
billerstringOne ofRecharge PIN biller slug or id from Recharge PIN networks. Takes priority over the others.

Responses

200 OK — OK · 400 Bad Request — Missing network

{
  "network": "MTN",
  "biller": "mtn-recharge-pin",
  "denominations": [
    {
      "denomination": 100,
      "available_count": 250,
      "effective_amount": 98
    },
    {
      "denomination": 200,
      "available_count": 180,
      "effective_amount": 196
    },
    {
      "denomination": 500,
      "available_count": 90,
      "effective_amount": 495
    }
  ]
}

Errors

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

CodeHTTPWhen
REQUIRED400None of biller, network or network_id was sent.
BILLER_NOT_FOUND404Unknown or inactive biller / network.

Notes

  • denomination is the card face value the customer loads (₦100, ₦200, ₦500, …). There is no separate plan id per amount — send this same number as denomination on purchase.
  • effective_amount is what one PIN costs your wallet for your account type (e.g. ₦495 for a ₦500 card). Always read it here; do not invent a percentage.
  • Card values that are not on sale are left out. Buying one returns SERVICE_UNAVAILABLE and nothing is charged.
Previous · Recharge PINsNetworksNext · Recharge PINsBuy recharge PINs

Developed by Scaler Developers