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

Bulk airtime

Bearer ds_live_ / ds_test_
POST/api/v1/merchant/airtime/bulk

Queues airtime for a list of numbers. Set one amount for everyone, or pass objects with their own amount.

Language
curl -X POST "https://dataplanet.ng/api/v1/merchant/airtime/bulk" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "reference": "BULK-AIRTIME-0008",
    "network": "MTN",
    "amount": 200,
    "recipients": [
      "08031234567",
      {
        "phone": "08123456789",
        "amount": 500
      }
    ]
  }'

Authentication

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

HeaderValueRequired
AuthorizationBearer ds_live_YOUR_KEYYes
Content-Typeapplication/jsonYes
Acceptapplication/jsonRecommended

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

Parameters

Body parameters

NameTypeRequiredDescription
referencestringYesUnique order reference (max 100 chars).
networkstringYesMTN, GLO, AIRTEL or 9MOBILE (or an airtime biller slug).
recipientsarrayYesPhone strings or { "phone": "…", "amount": 500 } objects. Max 100 per order by default.
amountnumberConditionalDefault amount for recipients without their own amount (min 1).
airtime_typestringNoAirtime type, e.g. VTU (default), Share and Sell, Awuf4U or Me2U. Types are set by us and can be added at any time, so read the airtime_type of each airtime biller in List billers instead of hard-coding them. Matching ignores case and spaces. A name we do not sell at all (e.g. normal) buys VTU. A real type that is switched off, or not sold on that network, returns SERVICE_UNAVAILABLE.

Responses

202 Accepted — Accepted

{
  "status": "pending",
  "message": "Bulk airtime order received. 2 number(s) are being processed.",
  "data": {
    "id": 58,
    "reference": "BULK-AIRTIME-0008",
    "category": "airtime",
    "status": "processing",
    "total_items": 2,
    "successful": 0,
    "pending": 2,
    "failed": 0,
    "total_charged": "0.00",
    "created_at": "2026-10-05T10:20:00+01:00",
    "completed_at": null
  }
}

Errors

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

CodeHTTPWhen
TOO_MANY_RECIPIENTS400More numbers than allowed in one order (100 by default).
INVALID_RECIPIENTS400One or more phone numbers are invalid (positions are listed in the message).
INSUFFICIENT_BALANCE402Your wallet does not cover the full order estimate.
DUPLICATE409This bulk reference was already used. The existing order is returned in data.
AMOUNT_REQUIRED400A recipient has no amount and no default amount was sent.
BILLER_NOT_FOUND404Unknown or inactive biller / network.

Notes

  • Each number is vended as its own transaction with reference <reference>-1, <reference>-2, … so retries never double-charge. Look them up with GET /transactions/{reference}.
  • Your wallet must cover the full estimated order up front, but each number is only debited when it is vended.
  • Track progress with GET /bulk/{id}.
Previous · Data & airtimeBulk dataNext · Data & airtimeBulk order status

Developed by Scaler Developers