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

Response format & statuses

Responses are plain JSON objects with no wrapper. Every purchase returns the same transaction object, and its status is always successful, pending or failed.

Purchase statuses

StatusHTTPWhat it meansWhat to do
successful201Delivered. token, pins, delivery or units are included when relevant.Mark your order complete.
pending202The provider is still processing. Your wallet has been debited.Do NOT retry. Wait for the webhook or poll GET /transactions/{reference}.
failed422Not delivered. Your wallet was refunded. The body includes code: TRANSACTION_FAILED.Show the message; retry with a NEW reference if you want.

Idempotency and duplicate references

  • Re-sending a reference you already used returns the original transaction with code: DUPLICATE and duplicate: true — you are never charged twice.
  • HTTP 200 if the original succeeded, 202 if it is still pending, 409 if it failed.
  • If a request timed out and GET /transactions/{reference} returns 404, the purchase never reached us and it is safe to retry with the same reference.

Transaction object

Empty or null fields are omitted. Money values are strings with two decimals (e.g. "480.00").

FieldTypeDescription
statusstringsuccessful · pending · failed
referencestringYour reference, exactly as you sent it
channelstringWhere the purchase was made: api, web or app
transaction_idstringDataplanet's own transaction reference
categorystringdata, airtime, electricity, cable, education, betting, internet, voice, bulk_sms, rechargepin, giftcard, esim
messagestringHuman-readable result
networkstringNetwork (airtime, data and recharge PINs only)
biller / biller_slugstringBiller name and slug
product_id / productinteger / stringPlan id and name
planstringPlan, bouquet or package bought, e.g. MTN SME 1GB - 30 Days or DStv Compact (data, TV, internet, exam, voice)
plan_typestringType of the plan bought, e.g. SME, CG, Gifting (plans with a type only)
sizestringData size of the plan, e.g. 1GB or 500MB (when known)
validitystringHow long the plan lasts, e.g. 30 days (when known)
airtime_typestringAirtime type bought, e.g. VTU or Share and Sell (airtime only)
meter_typestringPrepaid or Postpaid (electricity only)
phonestringRecipient phone number
customer_ref / customer_namestringPhone, meter, smartcard or account number, and the verified name
quantity / unit_amountinteger / stringUnits bought (PINs, cards, SMS pages × recipients) and price per unit
amountstringWhat you paid before fees
face_amountstringFace value of the service
fee / discount / cashbackstringFee charged, discount applied, cashback credited
total_deductedstringTotal debited from your wallet
balance_before / balance_afterstringWallet balance around this transaction
provider_referencestringProvider reference (successful only)
api_responsestringThe network's own confirmation text for data, e.g. "You have successfully gifted 1GB…" (successful data only; omitted when the network sends none)
token / unitsstringElectricity token and units
purchased_at / funded_atstringISO-8601 timestamp (funded_at for betting)
deliveryarrayGift card codes / eSIM activation details (successful only)
pin_order_id / name_on_cardinteger / stringPIN order created for PIN purchases (successful only)
pins / serial_numbers / cardsarrayExam PINs: list of PINs, serials and {pin, serial} cards
denomination / total_amount / pinsstring / string / arrayRecharge PINs: face value, order total and {pin, serial, load_code} items

Examples

{
  "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"
}
Previous · Getting startedAuthenticationNext · Getting startedError codes

Developed by Scaler Developers