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

Get transaction (requery)

Bearer ds_live_ / ds_test_
GET/api/v1/merchant/transactions/{reference}

Looks up one transaction by your reference or by Dataplanet's transaction_id. Use it to requery pending purchases — poll every 30–60 seconds until the status is successful or failed, or rely on webhooks instead.

Language
curl -X GET "https://dataplanet.ng/api/v1/merchant/transactions/ORDER-10021" \
  -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

Path parameters

NameTypeRequiredDescription
referencestringYesYour purchase reference, or the Dataplanet transaction_id.

Responses

200 OK — OK · 404 Not Found — Not found

{
  "status": "successful",
  "reference": "ORDER-10021",
  "channel": "api",
  "transaction_id": "FDS261005101522K7Q2ZP4M",
  "category": "data",
  "message": "Transaction successful.",
  "network": "MTN",
  "biller": "MTN Data",
  "biller_slug": "mtn-data",
  "product_id": 212,
  "product": "MTN SME 1GB - 30 Days",
  "plan": "MTN SME 1GB - 30 Days",
  "plan_type": "SME",
  "size": "1GB",
  "validity": "30 days",
  "phone": "08031234567",
  "customer_ref": "08031234567",
  "quantity": 1,
  "unit_amount": "480.00",
  "amount": "480.00",
  "face_amount": "500.00",
  "fee": "0.00",
  "discount": "20.00",
  "total_deducted": "480.00",
  "balance_before": "25000.00",
  "balance_after": "24520.00",
  "provider_reference": "PRV-88213409",
  "api_response": "Dear Customer, you have successfully gifted 1GB data to 2348031234567.",
  "purchased_at": "2026-10-05T10:15:22+01:00"
}

Errors

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

CodeHTTPWhen
TRANSACTION_NOT_FOUND404No transaction with this reference or transaction id.

Notes

  • If you get TRANSACTION_NOT_FOUND after a timeout, the purchase never reached us and it is safe to retry with the same reference.
  • Bulk order items can be looked up with <bulk reference>-<position>.
  • Pending VendPower (betting, data, cable, electricity) and VTPass orders can also be forced with POST /api/v1/orders/requery/ { "reference": "…" } (JWT). A cron job python manage.py requery_pending_orders runs the same logic server-side.
Previous · TransactionsList transactionsNext · WebhooksOverview & signature

Developed by Scaler Developers