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

Send test webhook

Bearer ds_live_ / ds_test_
POST/api/v1/merchant/webhook/test

Sends a signed sample event to your registered URL so you can test your handler end to end. Test deliveries are not retried and do not appear in the delivery log.

Language
curl -X POST "https://dataplanet.ng/api/v1/merchant/webhook/test" \
  -H "Authorization: Bearer ds_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "event": "transaction.successful"
  }'

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
eventstringNotransaction.successful (default), transaction.pending or transaction.failed.

Responses

200 OK — Delivered · 400 Bad Request — Delivery failed

{
  "status": "successful",
  "event": "transaction.successful",
  "http_status": 200,
  "message": "Sample webhook delivered."
}

Errors

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

CodeHTTPWhen
INVALID_EVENT400event is not one of the three transaction events.
RATE_LIMITED429More than 10 tests in a minute.
WEBHOOK_NOT_CONFIGURED400No active webhook URL is registered.

Sample data sent to your URL

Only the successful sample is marked with test: true.

{
  "status": "successful",
  "reference": "TEST-20261005-AB12CD",
  "amount": "1000.00",
  "fee": "0.00",
  "total_deducted": "1000.00",
  "balance_before": "25000.00",
  "balance_after": "24000.00",
  "provider_reference": "PRV-TEST-20261005-AB12CD",
  "purchased_at": "2026-10-05T10:15:24+01:00",
  "test": true
}

Notes

  • A delivery counts as successful when your endpoint answers with any 2xx status within 15 seconds.
Previous · WebhooksDisable webhookNext · WebhooksList deliveries

Developed by Scaler Developers