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

Error codes

Errors return {"status": "failed", "code": "…", "message": "…"} with a matching HTTP status. Branch on code and show message to people. Rejected requests are never charged.

Error body

{
  "status": "failed",
  "code": "INSUFFICIENT_BALANCE",
  "message": "Insufficient wallet balance."
}

Authentication and request

CodeHTTPMeaning
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
API_ACCESS_NOT_APPROVED403API access has not been approved for this account yet
SANDBOX_DISABLED403Sandbox testing is turned off, so ds_test_ keys are rejected
SANDBOX_ONLY403Endpoint needs a ds_test_ sandbox key (POST /sandbox/reset)
FORBIDDEN403You are not allowed to perform this action
NOT_FOUND404Route or resource (bulk order, PIN order, delivery) not found
METHOD_NOT_ALLOWED405Wrong HTTP method for this endpoint
RATE_LIMITED429Over 120 requests / minute for this key, too many invalid key attempts from your IP, or too many webhook tests / resends
ERRORotherAny other HTTP error

Validation

Validation errors are always HTTP 400 and name the first failing field.

CodeHTTPMeaning
REQUIRED400A required field is missing, e.g. "phone is required"
INVALID_<FIELD>400A field failed validation, e.g. INVALID_PHONE, INVALID_REFERENCE, INVALID_METER_TYPE

Purchases

CodeHTTPMeaning
SERVICE_UNAVAILABLE503The service or biller is disabled or temporarily unavailable
SERVICE_NOT_FOUND404Unknown service category
BILLER_NOT_FOUND404Unknown or inactive biller slug / network
PLATFORM_NOT_FOUND404Unknown betting platform
PRODUCT_NOT_FOUND404Plan id / code not found or not part of this biller
PRODUCT_REQUIRED400This service needs a product_id
INVALID_AMOUNT400Amount is zero or outside the biller's minimum / maximum
AMOUNT_REQUIRED400Amount missing for a variable-amount electricity / internet product or a bulk airtime number
INVALID_QUANTITY400Quantity out of range: exam PINs 1–10, recharge PINs 1–39, gift cards 1–10, eSIMs 1–5
INVALID_RECIPIENTS400Invalid phone numbers in a bulk SMS or bulk order, or too many SMS recipients
TOO_MANY_RECIPIENTS400Bulk airtime / data order has more numbers than allowed (100 by default)
INSUFFICIENT_STOCK400Not enough PINs in stock
VERIFICATION_FAILED400Meter, smartcard or account number could not be verified
DAILY_LIMIT_EXCEEDED429Daily spend limit for this service reached
TIER_MAX_BALANCE / TIER_DAILY_LIMIT / TIER_MONTHLY_LIMIT429Account tier limit reached — upgrade KYC to raise it
INSUFFICIENT_BALANCE402Wallet balance is too low for this purchase or bulk order
WALLET_INACTIVE403Your wallet is frozen or not active
WALLET_BUSY409Another request is updating your wallet — retry with the same reference
TRANSACTION_FAILED422The provider could not deliver; your wallet has been refunded
DUPLICATE200 / 202 / 409Reference already used — the original transaction (or bulk order, 409) is returned
TRANSACTION_NOT_FOUND404No transaction with this reference

Webhooks

CodeHTTPMeaning
INVALID_URL400Webhook URL must be a public HTTPS endpoint
WEBHOOK_UNREACHABLE400Your endpoint did not answer the verify probe with a 2xx status
WEBHOOK_NOT_CONFIGURED400Register a webhook URL before sending a test or resend
Network errors and timeouts are not errors from us: if you did not get a response, requery the transaction with your reference before retrying.
Previous · Getting startedResponses & statusesNext · MSORG website slotMSORG slot

Developed by Scaler Developers