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 Developed Website slot

Drop-in endpoints for MSORG Developed Website slots (and clones). Point msorg_web_url at your Dataplanet domain and paste your ds_live_… (or ds_test_…) key. Requests use MSORG-compatible paths under /api — not /api/v1/merchant — and return the flat DataSerializer JSON with Status.

Buy data (MSORG)Buy airtime (MSORG)Balance (MSORG)Merchant API introduction

When to use this

Use this if you already run an MSORG (or MSORG-clone) panel and want Dataplanet as the upstream website slot. For a new integration from scratch, prefer the Merchant API under Getting started — it has clearer statuses, webhooks and catalog endpoints.

How to connect the slot

1. Create an API key

In Dashboard → Developer create a live key (ds_live_…) once API access is approved, or a sandbox key (ds_test_…) to try first. Copy it once — it is not shown again.

2. Set the website URL in MSORG

In your MSORG admin, set the Developed Website / msorg_web_url to your Dataplanet root: https://dataplanet.ng (no path). MSORG appends /api/data/ itself.

3. Paste the API key

Use Authorization scheme Token. MSORG will send Authorization: Token ds_live_YOUR_KEY. Bearer and X-API-Key also work.

4. Map plan ids

MSORG plan must be our product id (public plan id) from List billers / Biller products in the Merchant API, or from your Plans page. Network ids: 1 MTN, 2 GLO, 3 9MOBILE, 4 AIRTEL.

5. Branch on Status, not HTTP alone

Orders return HTTP 201 for both successful and failed fulfilment. Read Status: successful | processing | failed. MSORG often treats processing as success on their side.

At a glance

ItemValue
Base URLhttps://dataplanet.ng/api
AuthAuthorization: Token ds_live_YOUR_KEY
Buy dataPOST /api/data/
Buy airtimePOST /api/topup/
BalanceGET /api/user/
RequeryGET /api/data/{id} or /api/topup/{id} (numeric id or ident)
Order HTTP201 (always for created orders)
Status fieldStatus → successful · processing · failed

Network ids (MSORG)

IdNetwork
1MTN
2GLO
39MOBILE
4AIRTEL

Important notes

  • This does not change the Merchant API (/api/v1/merchant/*). Both can run on the same key.
  • Optional customer_ref / ident is your idempotency key — replaying it returns the original order.
  • Validation and auth errors use HTTP 400 / 401 with error + Status: failed.
  • Adex / N3tdata panels can hit the same /api/data with request-id, data_plan and phone — responses use their status / oldbal / newbal shape instead.
Always check Status on HTTP 201. A failed vend still returns 201 with Status: "failed" and a refunded wallet when applicable.
Previous · Getting startedError codesNext · MSORG website slotMSORG buy data

Developed by Scaler Developers