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

Authentication & security

How to send your API key, lock it to your server IPs and stay within the rate limit.

Sending your key

Use the Bearer header. The other two forms are also accepted on every route.

HeaderExampleNotes
AuthorizationBearer ds_live_YOUR_KEYRecommended
AuthorizationToken ds_live_YOUR_KEYAlternative scheme
X-API-Keyds_live_YOUR_KEYAlternative header

Managing keys

Where keys live

Create, name and revoke keys in Dashboard → Developer. Sandbox keys are available right away; live keys need approved API access (Dashboard → API access).

Live and sandbox keys

Live keys start with ds_live_ and spend from your real wallet. Sandbox keys start with ds_test_ and use a test wallet. Both are shown only once, when created. If a key leaks, revoke it and create a new one.

Up to 5 active keys per environment

Use separate keys per server or environment so you can rotate one without downtime.

IP whitelist

  • Manage IP whitelists in Dashboard → Developer.
  • Each key can have its own list of exact IP addresses (max 20). When a key has a list, only that list applies.
  • Otherwise the account-level whitelist applies to the key. It accepts IPs and CIDR ranges (max 50).
  • When both are empty, requests from any IP are accepted (not recommended in production).
  • Requests from other IPs are rejected with 403 IP_NOT_ALLOWED.

Rate limits

  • Each API key can make 120 requests per minute.
  • Going over returns 429 RATE_LIMITED — back off and retry later.
  • More than 20 requests with invalid keys from one IP within 5 minutes blocks that IP for 5 minutes (429 RATE_LIMITED).
  • Webhook tests are limited to 10 per minute and delivery resends to 20 per minute.

Authentication errors

Checks run in this order. Each returns {"status": "failed", "code": "…", "message": "…"}.

CodeHTTPMeaning
RATE_LIMITED429Too many invalid API key attempts from your IP (more than 20 in 5 minutes).
UNAUTHORIZED401API key is missing, invalid, revoked or expired.
IP_NOT_ALLOWED403Request IP is not on the key's (or account's) whitelist.
ACCOUNT_SUSPENDED403Your account is suspended — contact support.
SANDBOX_DISABLED403A ds_test_ key was used while sandbox testing is turned off.
API_ACCESS_NOT_APPROVED403Live key used before API access was approved (sandbox keys are not affected).
Previous · Getting startedIntroductionNext · Getting startedResponses & statuses

Developed by Scaler Developers