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 data

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

Queues the same data plan for a list of numbers in a single order.

Language
curl -X POST "https://dataplanet.ng/api/v1/merchant/data/bulk" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "reference": "BULK-DATA-0007",
    "product_id": 212,
    "recipients": [
      "08031234567",
      "08123456789",
      "09031234567"
    ]
  }'

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).
product_idinteger | stringYesData plan id from List billers.
recipientsarrayYesPhone strings or { "phone": "…" } objects. Max 100 per order by default.

Responses

202 Accepted — Accepted · 409 Conflict — Duplicate reference

{
  "status": "pending",
  "message": "Bulk data order received. 3 number(s) are being processed.",
  "data": {
    "id": 57,
    "reference": "BULK-DATA-0007",
    "category": "data",
    "status": "processing",
    "total_items": 3,
    "successful": 0,
    "pending": 3,
    "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.
PRODUCT_NOT_FOUND404Plan id / code not found, inactive or not part of this biller.

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 & airtimeBuy airtimeNext · Data & airtimeBulk airtime

Developed by Scaler Developers