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

Buy exam / result checker PIN

Bearer ds_live_ / ds_test_
POST/api/v1/merchant/education/purchase

Buys one or more exam / result-checker PINs (WAEC, NECO, NABTEB, JAMB and more). List billers with category=education (or exam), then Biller products for that slug — use the plan id as product_id. Display names are biller + pin name (e.g. product Epin under WAEC → WAEC Epin). PINs and serial numbers are returned once the purchase is successful.

Language
curl -X POST "https://dataplanet.ng/api/v1/merchant/education/purchase" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "reference": "ORDER-10025",
    "biller": "waec",
    "product_id": 901,
    "quantity": 2,
    "phone": "08031234567"
  }'

Authentication

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

HeaderValueRequired
AuthorizationBearer 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
referencestringYesYour unique order reference and idempotency key (max 128 chars). Re-sending it returns the original transaction and never charges twice.
billerstringYesExam body slug, e.g. waec, neco, nabteb, jamb (List billers with category=education or exam).
product_idinteger | stringYesPIN product id from Biller products (or its code). Copy from /billers/{slug}/products or the live pricing page.
quantityintegerNoNumber of PINs, 1–10 (default 1). Ignored for JAMB-style profile purchases (always 1).
phonestringNoNigerian number, e.g. 08031234567, 2348031234567 or +2348031234567 (must match /^(\+?234|0)?[789][01]\d{8}$/). Stored as 0XXXXXXXXXX. Required for JAMB alongside profile_id.
profile_idstringNoCandidate profile code (JAMB and similar). Sent as the purchase recipient when present (max 40).
narrationstringNoNote stored on the transaction (max 255 chars).
save_beneficiarybooleanNoSave the customer to your beneficiaries after a successful purchase (default true).
beneficiary_labelstringNoLabel for the saved beneficiary (max 60 chars).

Responses

201 Created — Successful · 202 Accepted — Pending · 422 Unprocessable Entity — Failed (refunded)

{
  "status": "successful",
  "reference": "ORDER-10025",
  "channel": "api",
  "transaction_id": "FDS261005103210X1Y2Z3A4",
  "category": "education",
  "message": "Transaction successful.",
  "biller": "WAEC",
  "biller_slug": "waec",
  "product_id": 901,
  "product": "Epin",
  "plan": "Epin",
  "phone": "08031234567",
  "customer_ref": "08031234567",
  "quantity": 2,
  "unit_amount": "3900.00",
  "amount": "7800.00",
  "face_amount": "7800.00",
  "fee": "0.00",
  "discount": "0.00",
  "total_deducted": "7800.00",
  "balance_before": "11135.00",
  "balance_after": "3335.00",
  "provider_reference": "PRV-88214610",
  "purchased_at": "2026-10-05T10:32:10+01:00",
  "pin_order_id": 311,
  "pins": [
    "123456789012",
    "210987654321"
  ],
  "serial_numbers": [
    "WRN0001234",
    "WRN0001235"
  ],
  "cards": [
    {
      "pin": "123456789012",
      "serial": "WRN0001234"
    },
    {
      "pin": "210987654321",
      "serial": "WRN0001235"
    }
  ]
}

Errors

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

CodeHTTPWhen
INVALID_QUANTITY400Quantity must be between 1 and 10.
INSUFFICIENT_STOCK400Not enough PINs in stock. Nothing is charged.
INVALID_PHONE400phone is not a valid Nigerian number.
BILLER_NOT_FOUND404Unknown or inactive biller / network.
PRODUCT_NOT_FOUND404Plan id / code not found, inactive or not part of this biller.
SERVICE_UNAVAILABLE503The service or biller is disabled or temporarily unavailable.
INVALID_AMOUNT400Amount is zero or outside the biller's minimum / maximum.
DAILY_LIMIT_EXCEEDED429Your daily spend limit for this service is reached.
TIER_MAX_BALANCE / TIER_DAILY_LIMIT / TIER_MONTHLY_LIMIT429An account tier limit is reached. Upgrade KYC to raise it.
INSUFFICIENT_BALANCE402Wallet balance is too low for this purchase.
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 was refunded.
DUPLICATE200 / 202 / 409The reference was already used. The original transaction is returned.

Notes

  • Resolve IDs from catalog: GET /billers?category=education → biller slug + plan id (product_id). effective_total is what you are charged per PIN before quantity.
  • WAEC / NECO / NABTEB: send biller, product_id, and quantity (optional phone).
  • JAMB: send biller: "jamb", product_id, profile_id, and phone — example { "reference": "ORDER-JAMB-1", "biller": "jamb", "product_id": 904, "profile_id": "202612345678A", "phone": "08031234567" }.
  • product / plan on the transaction response is the catalog product name; combine with biller for customer-facing labels.
Previous · Electricity & cable TVBuy cableNext · Exam PINs, gift cards & eSIMBuy gift card

Developed by Scaler Developers