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

Save beneficiary

Bearer ds_live_ / ds_test_
POST/api/v1/merchant/beneficiaries

Saves a customer. If one already exists with the same category, biller and customer_ref, it is updated instead (upsert).

Language
curl -X POST "https://dataplanet.ng/api/v1/merchant/beneficiaries" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "category": "cable",
    "biller": "dstv",
    "customer_ref": "7034567890",
    "customer_name": "JOHN DOE",
    "label": "Mum'\''s decoder"
  }'

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
categorystringYesService category: data, airtime, electricity, cable, education, betting, internet, voice, bulk_sms, rechargepin, giftcard, esim.
customer_refstringYesPhone, meter, smartcard or customer id (max 60).
billerstringNoBiller slug in that category, e.g. dstv. Unknown slugs are saved without a biller.
customer_namestringNoVerified account name (max 120).
labelstringNoYour own nickname for this beneficiary (max 60).

Responses

201 Created — Saved

{
  "success": true,
  "message": "Beneficiary saved.",
  "data": {
    "id": 52,
    "user_id": 1042,
    "category": "cable",
    "biller_id": 12,
    "label": "Mum's decoder",
    "customer_ref": "7034567890",
    "customer_name": "JOHN DOE",
    "last_product_id": null,
    "last_amount": null,
    "metadata": null,
    "last_used_at": null,
    "created_at": "2026-10-05T10:50:00.000000Z",
    "updated_at": "2026-10-05T10:50:00.000000Z",
    "biller": {
      "id": 12,
      "name": "DStv",
      "slug": "dstv",
      "category": "cable",
      "network": null,
      "logo_url": "https://cdn.example.com/billers/dstv.png"
    }
  }
}

Errors

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

CodeHTTPWhen
REQUIRED400category or customer_ref is missing.
INVALID_CATEGORY400category is not a known service category.

Notes

  • Beneficiary endpoints use the {success, message, data} envelope (not the transaction format). Validation errors still use the standard {status: "failed", code, message} body with HTTP 400.
Previous · BeneficiariesList beneficiariesNext · BeneficiariesUpdate beneficiary

Developed by Scaler Developers