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 recharge PINs

Bearer ds_live_ / ds_test_
POST/api/v1/merchant/recharge-pin/purchase

Buys printable recharge card PINs. Pass the network (or biller) plus the denomination face value from Recharge PIN denominations — not a data-style plan_id. You are charged effective_amount × quantity. PINs, serials and load codes are returned immediately on success.

Language
curl -X POST "https://dataplanet.ng/api/v1/merchant/recharge-pin/purchase" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "reference": "PIN-20261005-01",
    "network": "MTN",
    "denomination": 100,
    "quantity": 2,
    "name_on_card": "Ada Stores"
  }'

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.
networkstringOne ofMTN, GLO, AIRTEL or 9MOBILE.
network_idintegerOne ofNumeric network code: 1 = MTN, 2 = GLO, 3 = 9MOBILE, 4 = AIRTEL. Prefer network or biller when you can.
billerstringOne ofRecharge PIN biller slug or id from Recharge PIN networks. Takes priority over the others.
denominationnumberYesCard face value from Recharge PIN denominations (e.g. 100, 200, 500). This identifies the amount — there is no separate plan_id.
quantityintegerYesNumber of PINs, 1–39.
name_on_cardstringNoBusiness name printed on the cards (max 60 chars).
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": "PIN-20261005-01",
  "channel": "api",
  "transaction_id": "FDS261005104500T1U2V3W4",
  "category": "rechargepin",
  "message": "Transaction successful.",
  "network": "MTN",
  "biller": "MTN Recharge PIN",
  "biller_slug": "mtn-recharge-pin",
  "quantity": 2,
  "unit_amount": "98.00",
  "amount": "196.00",
  "face_amount": "200.00",
  "fee": "0.00",
  "discount": "4.00",
  "total_deducted": "196.00",
  "balance_before": "3531.00",
  "balance_after": "3335.00",
  "purchased_at": "2026-10-05T10:45:00+01:00",
  "pin_order_id": 512,
  "name_on_card": "Ada Stores",
  "denomination": "100.00",
  "total_amount": "196.00",
  "pins": [
    {
      "pin": "1234567890123456",
      "serial": "SN00012345",
      "load_code": "*555*PIN#"
    },
    {
      "pin": "6543210987654321",
      "serial": "SN00012346",
      "load_code": "*555*PIN#"
    }
  ]
}

Errors

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

CodeHTTPWhen
REQUIRED400None of biller, network or network_id was sent.
INVALID_QUANTITY400Quantity must be between 1 and 39.
INSUFFICIENT_STOCK400Not enough PINs for this denomination. Nothing is charged.
BILLER_NOT_FOUND404Unknown or inactive biller / network.
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

  • Example: for two ₦100 MTN cards, send { "network": "MTN", "denomination": 100, "quantity": 2 }. Do not send a data plan_id.
  • Use pin_order_id from the response to fetch the order again (for reprinting) via Get recharge PIN order.
Previous · Recharge PINsDenominationsNext · Recharge PINsList PIN orders

Developed by Scaler Developers