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

MSORG — buy data

Token ds_live_ / ds_test_
POST/api/data/

MSORG-compatible POST /api/data/. Flat DataSerializer response. HTTP 201 for created orders — branch on Status.

Language
curl -X POST "https://dataplanet.ng/api/data/" \
  -H "Authorization: Token ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "network": 1,
    "mobile_number": "08031234567",
    "plan": 1001,
    "Ported_number": true,
    "customer_ref": "ORDER-2001"
  }'

Authentication

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

HeaderValueRequired
AuthorizationToken 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
networkinteger | stringNoMSORG network id (1 MTN, 2 GLO, 3 9MOBILE, 4 AIRTEL). Echoed in the response; fulfilment uses the plan’s network.
mobile_numberstringYesBeneficiary MSISDN (Nigerian format).
planintegerYesOur product public id (from List billers / Plans).
Ported_numberbooleanNoDefault true.
customer_refstringNoOptional idempotency key (also accepts ident / Customer_ref).

Responses

201 Created — Successful order · 201 Created — Failed order (Status=failed) · 400 Bad Request — Validation error

{
  "id": 12,
  "ident": "FDS261105120001ABCDEF",
  "plan_type": "SME",
  "data_type": "SME",
  "duration": "30 days",
  "customer_ref": "ORDER-2001",
  "network": 1,
  "balance_before": "5000.00",
  "balance_after": "4700.00",
  "mobile_number": "08031234567",
  "plan": 1001,
  "Status": "successful",
  "plan_network": "MTN",
  "plan_name": "1GB 30 Days",
  "plan_amount": "300.00",
  "create_date": "2026-11-12T10:00:00+01:00",
  "Ported_number": true,
  "api_response": "You have successfully purchased 1GB 30 Days for 08031234567.",
  "provider_source": ""
}

Notes

  • Response always includes id, ident, plan_*, Status, api_response, Ported_number, provider_source, balances and create_date.
  • Requery later with GET /api/data/{id} using the numeric id or the ident / customer_ref.
Previous · MSORG website slotMSORG slotNext · MSORG website slotMSORG buy airtime

Developed by Scaler Developers