DEXNG REST API • Developer Reference

DEXNG API Documentation — Nigerian VTU, Airtime, Data, TV & Utility Bills API

The DEXNG Developer API is a robust, production-grade RESTful API engineered for Nigerian fintech apps, VTU reselling businesses, automated top-up bots, and web platforms. It provides automated programmatic delivery of mobile data bundles (MTN, Airtel, Glo, 9mobile), instant airtime recharge, electricity distribution company tokens (IKEDC, EKEDC, AEDC, IBEDC, and more), cable television subscription activations (DStv, GOtv, Startimes), betting wallet top-ups, educational exam PINs (WAEC, JAMB), broadband plans, and bulk SMS delivery.

Get API Key / Sign In Customer Support

Authentication & Base URL

All API requests must be performed over HTTPS. Authenticate by providing your active secret API key in the HTTP Authorization request header using the Bearer format:

Authorization: Bearer dex_live_your_secret_api_key_here
Live Base URL: https://dexng.com.ng/api/v1
Request Payload Format: Content-Type: application/json

API keys, wallet balances, and credential generation are kept private and accessible strictly within authenticated DEXNG accounts. Visitors must log in at https://dexng.com.ng/login to manage their API keys.

Idempotency, Reference Tracking & Status Polling

To guarantee financial consistency and prevent duplicate debit or double dispatch:

  • Supply a unique client transaction string in the reference field (or X-Idempotency-Key header) for every purchase request.
  • Status 200 OK: Transaction succeeded immediately and delivery is confirmed by the upstream telecom/utility provider.
  • Status 202 Accepted: Upstream provider processing is currently in flight. Do not resubmit a new transaction! Instead, poll GET /api/v1/reseller/transaction/:ref at 3–5 second intervals until final status is resolved.
  • Status 429 Duplicate Reference: An in-flight purchase already holds a processing lock for that reference, protecting you from double debits.

Full Endpoints Catalog (32 Production Endpoints)

Complete specifications with parameters, cURL examples, 200 OK responses, and 202 Accepted processing schemas.

Account & API Authentication (2 Endpoints)

GET /api/v1/reseller/me
Live

Get Reseller Profile

Retrieve authenticated reseller profile, registered business name, linked account email, active key mode, and tier status.

Note: Authenticated via Bearer API Key. Confirms your active wholesale reseller privileges and credential permissions.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer <dex_live_... | dex_test_...>
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/reseller/me" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json"
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "reseller_id": "usr_8719284210",
    "business_name": "Apex Data Services Ltd",
    "email": "reseller@business.com",
    "mode": "live",
    "key_prefix": "dex_live_a1b2c3d4",
    "tier": "Wholesale Reseller"
  }
}
POST /api/v1/reseller/test/echo
Live

Non-Financial Echo & Auth Check

Safe non-financial diagnostic endpoint to test key authentication, request canonicalization, fencing epochs, and durable idempotency.

Note: Strictly non-financial: zero wallet debits and zero provider calls. Requires unique client reference via header or body.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer <dex_live_... | dex_test_...>
X-Client-Reference Header (string) Yes Unique idempotent transaction reference string
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/reseller/test/echo" \
  -H "Authorization: Bearer dex_test_xyz789..." \
  -H "X-Client-Reference: ECHO-TEST-001" \
  -H "Content-Type: application/json" \
  -d '{
    "test": true,
    "timestamp": "2026-10-15T00:00:00.000Z"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "DEXNG Developer API echo test completed successfully.",
  "data": {
    "client_reference": "ECHO-TEST-001",
    "reseller_id": "usr_8719284210",
    "business_name": "Apex Data Services Ltd",
    "mode": "test",
    "timestamp": "2026-10-15T00:00:00.000Z",
    "echo_payload": {
      "test": true
    },
    "server_epoch": 1,
    "non_financial": true
  }
}

Wallet (1 Endpoint)

GET /api/v1/reseller/balance
Live

Check Reseller Wallet Balance

Retrieve the authenticated reseller wallet balance (authoritative live balance in live mode; synthetic ₦1,000,000.00 in test mode).

Note: Denominated in Nigerian Naira (NGN). Test mode is fully isolated and does not read or write live financial records.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer <dex_live_... | dex_test_...>
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/reseller/balance" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json"
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "balance": 75450,
    "currency": "NGN",
    "mode": "live",
    "formatted_balance": "₦75,450.00"
  }
}

Transactions (1 Endpoint)

GET /api/v1/reseller/transaction/:ref
Live

Query Transaction Status

Query authoritative transaction execution status, delivery metadata, and refund status using client reference or DEXNG reference.

Note: Safe for polling: uses durable indexing and does not initiate new provider purchases. Returns normalized status ("delivered", "pending", or "failed"), created_at ISO timestamp, and sanitized delivery fulfillment tokens.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer <dex_live_... | dex_test_...>
ref URL Parameter (string) Yes Client transaction reference (e.g. REQ-APEX-984210) or DEXNG reference (e.g. TRXDAT-...)
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/reseller/transaction/REQ-APEX-984210" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "reference": "REQ-APEX-984210",
    "dexng_reference": "TRXDAT-179198302194-4912",
    "status": "delivered",
    "service": "data",
    "amount": 260,
    "created_at": "2026-10-15T00:00:00.000Z",
    "network": "MTN",
    "plan": "1GB SME",
    "phone": "08031234567",
    "refunded": false
  }
}
Sample Response (202 Accepted — Async Delivery):
{
  "status": "success",
  "code": 202,
  "data": {
    "reference": "REQ-APEX-984210",
    "dexng_reference": "TRXDAT-179198302194-4912",
    "status": "pending",
    "service": "data",
    "amount": 260,
    "created_at": "2026-10-15T00:00:00.000Z",
    "network": "MTN",
    "plan": "1GB SME",
    "phone": "08031234567",
    "refunded": false
  }
}

Buy Data (2 Endpoints)

GET /api/v1/data/plans
Live

Fetch Wholesale Data Plans

List active telecom data packages (SME, Corporate Gifting, Direct Gifting) with wholesale reseller rates.

Note: Important: Query this endpoint dynamically to obtain valid "plan_id" values (e.g. mtn_gifting_302) and active wholesale pricing before dispatching purchases. Do not hardcode static plan IDs.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
network Query String (string) Optional Filter by operator: MTN, AIRTEL, GLO, or 9MOBILE
provider Query String (string) Optional Gateway provider route identifier
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/data/plans?network=MTN" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "count": 3,
  "data": [
    {
      "plan_id": "mtn_gifting_302",
      "network": "MTN",
      "category": "GIFTING",
      "volume": "1GB",
      "validity": "30 Days",
      "reseller_price": 260,
      "retail_price": 290,
      "plan_name": "MTN 1GB Gifting (30 Days)"
    },
    {
      "plan_id": "mtn_sme_2gb_01",
      "network": "MTN",
      "category": "SME",
      "volume": "2GB",
      "validity": "30 Days",
      "reseller_price": 520,
      "retail_price": 580,
      "plan_name": "MTN 2GB SME"
    },
    {
      "plan_id": "mtn_cg_5gb_02",
      "network": "MTN",
      "category": "CG",
      "volume": "5GB",
      "validity": "30 Days",
      "reseller_price": 1300,
      "retail_price": 1450,
      "plan_name": "MTN 5GB Corporate Gifting"
    }
  ]
}
POST /api/v1/data/purchase
Live

Purchase Data Bundle

Dispatch an instant mobile data top-up with wallet debit, idempotent client reference, and operator delivery tracking.

Note: Protected by a 3.5s bounded in-flight resolution window. Returns HTTP 200 if fulfilled immediately, or HTTP 202 with status "pending" if upstream confirmation takes longer. If pending, background polling resolves the order; clients should poll GET /api/v1/reseller/transaction/:ref. Failed requests trigger immediate automatic wallet refunds.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
network Body (string) Yes MTN | AIRTEL | GLO | 9MOBILE
plan_id Body (string) Yes Valid plan identifier from /api/v1/data/plans (e.g. mtn_gifting_302)
phone Body (string) Yes 11-digit Nigerian mobile phone number
reference Body (string) Yes Unique idempotent transaction identifier generated by client (or via X-Client-Reference header)
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/data/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "network": "MTN",
    "plan_id": "mtn_gifting_302",
    "phone": "08031234567",
    "reference": "REQ-APEX-984210"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Data bundle delivered successfully.",
  "data": {
    "reference": "REQ-APEX-984210",
    "dexng_reference": "TRXDAT-179198302194-4912",
    "network": "MTN",
    "plan": "1GB SME",
    "phone": "08031234567",
    "amount_debited": 260,
    "balance_after": 49740,
    "status": "delivered",
    "delivery_status": "delivered",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}
Sample Response (202 Accepted — Async Delivery):
{
  "status": "pending",
  "code": 202,
  "message": "Data delivery request submitted and is being processed.",
  "data": {
    "reference": "REQ-APEX-984210",
    "dexng_reference": "TRXDAT-179198302194-4912",
    "network": "MTN",
    "plan": "1GB SME",
    "phone": "08031234567",
    "amount_debited": 260,
    "status": "pending",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Airtime (1 Endpoint)

POST /api/v1/airtime/purchase
Live

Purchase Airtime VTU

Deliver instant automated VTU airtime recharge across all 4 major Nigerian telecom networks with wholesale discount applied automatically.

Note: Requires API key authentication, idempotent client reference, and server-side wholesale discount deduction in NGN. Failed purchases trigger automatic wallet refunds.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
network Body (string) Yes MTN | AIRTEL | GLO | 9MOBILE
amount Body (number) Yes Face value amount in NGN (min ₦50, max ₦50,000)
phone Body (string) Yes 11-digit Nigerian recipient mobile number
reference Body (string) Yes Unique idempotent client transaction reference
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/airtime/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "network": "AIRTEL",
    "amount": 1000,
    "phone": "08021234567",
    "reference": "AIR-APEX-771802"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Airtime recharge delivered successfully",
  "data": {
    "reference": "AIR-APEX-771802",
    "dexng_reference": "TRXAIR-882109412-1082",
    "network": "AIRTEL",
    "recipient": "08021234567",
    "face_amount": 1000,
    "amount_debited": 975,
    "discount_percent": 2.5,
    "status": "delivered",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}
Sample Response (202 Accepted — Async Delivery):
{
  "status": "pending",
  "code": 202,
  "message": "Airtime recharge request submitted and is processing with operator.",
  "data": {
    "reference": "AIR-APEX-771802",
    "dexng_reference": "TRXAIR-882109412-1082",
    "network": "AIRTEL",
    "recipient": "08021234567",
    "face_amount": 1000,
    "amount_debited": 975,
    "discount_percent": 2.5,
    "status": "pending",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Cable TV (3 Endpoints)

GET /api/v1/cable/plans
Live

Fetch Cable TV Bouquets

Retrieve live available television bouquets and packages for DStv, GOtv, and StarTimes.

Note: Allows querying all packages or filtering by target operator. Use package_id when subscribing via /api/v1/cable/purchase.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
operator Query String (string) Optional Filter by provider: DSTV | GOTV | STARTIMES
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/cable/plans?operator=GOTV" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "count": 4,
  "data": [
    {
      "package_id": "gotv-smallie",
      "name": "GOtv Smallie (Monthly)",
      "operator": "GOTV",
      "reseller_price": 1575,
      "retail_price": 1575
    },
    {
      "package_id": "gotv-jinja",
      "name": "GOtv Jinja",
      "operator": "GOTV",
      "reseller_price": 3300,
      "retail_price": 3300
    },
    {
      "package_id": "gotv-jolli",
      "name": "GOtv Jolli",
      "operator": "GOTV",
      "reseller_price": 4850,
      "retail_price": 4850
    },
    {
      "package_id": "gotv-max",
      "name": "GOtv Max",
      "operator": "GOTV",
      "reseller_price": 7200,
      "retail_price": 7200
    }
  ]
}
POST /api/v1/cable/verify
Live

Validate Smartcard / IUC Number

Instant lookup of subscriber account name, current package, and status prior to renewal.

Note: Prevents crediting the wrong decoder. Zero wallet charge for verification.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
operator Body (string) Yes DSTV | GOTV | STARTIMES
smartcard_number Body (string) Yes 10 or 11-digit IUC or Smartcard number
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/cable/verify" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "operator": "DSTV",
    "smartcard_number": "1029384756"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "customer_name": "CHUKWUDI EMMANUEL OKONKWO",
    "smartcard_number": "1029384756",
    "operator": "DSTV",
    "current_bouquet": "DStv Compact",
    "status": "active",
    "renewal_amount": 15700,
    "due_date": "2026-10-28"
  }
}
POST /api/v1/cable/purchase
Live

Subscribe / Renew Cable Bouquet

Activate or renew DStv, GOtv, or StarTimes bouquet subscriptions with instant wallet debit.

Note: Protected by a 3.5s in-flight resolution window: returns HTTP 200 delivered if confirmed immediately, or HTTP 202 pending if awaiting operator confirmation. Poll GET /api/v1/reseller/transaction/:ref to check completion. Failed orders trigger automatic wallet refunds.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
operator Body (string) Yes DSTV | GOTV | STARTIMES
smartcard_number Body (string) Yes IUC or Smartcard number
package_id Body (string) Yes Identifier of package from /api/v1/cable/plans (e.g. gotv-max)
phone Body (string) Optional Customer notification phone number
reference Body (string) Yes Unique idempotent client reference
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/cable/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "operator": "GOTV",
    "smartcard_number": "2019384756",
    "package_id": "gotv-max",
    "phone": "08031234567",
    "reference": "CAB-APEX-88192"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Cable TV subscription activated successfully.",
  "data": {
    "reference": "CAB-APEX-88192",
    "dexng_reference": "TRXCAB-901824-33",
    "operator": "GOTV",
    "smartcard": "2019384756",
    "package": "GOtv Max",
    "amount_debited": 7200,
    "currency": "NGN",
    "status": "delivered",
    "delivery_status": "delivered",
    "balance_after": 42800,
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}
Sample Response (202 Accepted — Async Delivery):
{
  "status": "pending",
  "code": 202,
  "message": "Cable TV subscription submitted and is being processed.",
  "data": {
    "reference": "CAB-APEX-88192",
    "dexng_reference": "TRXCAB-901824-33",
    "operator": "GOTV",
    "smartcard": "2019384756",
    "package": "GOtv Max",
    "amount_debited": 7200,
    "currency": "NGN",
    "status": "pending",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Electricity (3 Endpoints)

GET /api/v1/electricity/providers
Live

List Electricity DisCos

Retrieve list of all licensed Nigerian electricity distribution companies (IKEDC, EKEDC, IBEDC, AEDC, PHED, EEDC, KAEDCO, KEDCO, BEDC, YEDC, JED).

Note: Returns provider codes, minimum purchase amounts, and supported meter types.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/electricity/providers" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": [
    {
      "id": "ikedc",
      "name": "Ikeja Electric (IKEDC)",
      "min_amount": 1000
    },
    {
      "id": "ekedc",
      "name": "Eko Electricity (EKEDC)",
      "min_amount": 1000
    },
    {
      "id": "aedc",
      "name": "Abuja Electricity (AEDC)",
      "min_amount": 1000
    },
    {
      "id": "ibedc",
      "name": "Ibadan Electricity (IBEDC)",
      "min_amount": 1000
    }
  ]
}
POST /api/v1/electricity/verify
Live

Validate Electricity Meter

Query DisCo meter status, registered customer name, and meter type (prepaid or postpaid).

Note: Confirms customer ownership before funds are debited.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
disco Body (string) Yes IKEDC | EKEDC | IBEDC | AEDC | PHED | EEDC | KAEDCO | KEDCO | BEDC | YEDC | JED
meter_number Body (string) Yes 10 to 13-digit meter number
meter_type Body (string) Yes prepaid | postpaid
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/electricity/verify" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "disco": "IKEDC",
    "meter_number": "0101150029381",
    "meter_type": "prepaid"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "customer_name": "BABATUNDE ADENIRAN",
    "address": "14 ADEOLA ODEKU STREET, VICTORIA ISLAND, LAGOS",
    "meter_number": "0101150029381",
    "meter_type": "prepaid",
    "disco": "IKEDC",
    "min_amount": 1000,
    "max_amount": 500000,
    "status": "Active"
  }
}
POST /api/v1/electricity/purchase
Live

Purchase Electricity Token / Pay Bill

Generate instant 20-digit prepaid recharge tokens or pay postpaid electricity utility balances.

Note: Token and units_kwh are delivered directly upon resolution. For prepaid meters, if the DisCo has not generated the token within the 3.5s window, HTTP 202 is returned and client polls /api/v1/reseller/transaction/:ref for the token. Rejections trigger automatic wallet refunds.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
disco Body (string) Yes IKEDC | EKEDC | IBEDC | AEDC | PHED | EEDC | KAEDCO | KEDCO | BEDC | YEDC | JED
meter_number Body (string) Yes Meter number
meter_type Body (string) Yes prepaid | postpaid
amount Body (number) Yes Purchase amount in NGN (min ₦1,000)
phone Body (string) Optional Customer notification phone number
reference Body (string) Yes Unique idempotent client reference
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/electricity/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "disco": "IKEDC",
    "meter_number": "0101150029381",
    "meter_type": "prepaid",
    "amount": 5000,
    "phone": "08031234567",
    "reference": "ELEC-APEX-55102"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Electricity payment confirmed and token generated successfully.",
  "data": {
    "reference": "ELEC-APEX-55102",
    "dexng_reference": "TRXELE-991024-81",
    "disco": "IKEDC",
    "meter_number": "0101150029381",
    "meter_type": "prepaid",
    "token": "4910-2918-4819-2091-7712",
    "units_kwh": "42.8",
    "amount_debited": 5000,
    "currency": "NGN",
    "status": "delivered",
    "delivery_status": "delivered",
    "balance_after": 37800,
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}
Sample Response (202 Accepted — Async Delivery):
{
  "status": "pending",
  "code": 202,
  "message": "Electricity recharge order submitted and is being processed.",
  "data": {
    "reference": "ELEC-APEX-55102",
    "dexng_reference": "TRXELE-991024-81",
    "disco": "IKEDC",
    "meter_number": "0101150029381",
    "meter_type": "prepaid",
    "amount_debited": 5000,
    "currency": "NGN",
    "status": "pending",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Bet Funding (3 Endpoints)

GET /api/v1/betting/providers
Live

List Betting Providers

Retrieve list of supported sports betting platforms and bookmakers in Nigeria.

Note: Returns supported provider keys, fees, and minimum funding amounts.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/betting/providers" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "count": 4,
  "data": [
    {
      "id": "sportybet",
      "name": "SportyBet",
      "slug": "sportybet"
    },
    {
      "id": "bet9ja",
      "name": "Bet9ja",
      "slug": "bet9ja"
    },
    {
      "id": "betking",
      "name": "BetKing",
      "slug": "betking"
    },
    {
      "id": "1xbet",
      "name": "1xBet",
      "slug": "1xbet"
    }
  ]
}
POST /api/v1/betting/verify
Live

Verify Betting Account ID

Validate betting customer User IDs and retrieve full registered account names before wallet crediting.

Note: Supports SportyBet, Bet9ja, 1xBet, BetKing, MSport, etc.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
provider Body (string) Yes SPORTYBET | BET9JA | 1XBET | BETKING | MSPORT
customer_id Body (string) Yes Betting account user ID
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/betting/verify" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "SPORTYBET",
    "customer_id": "8102938475"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "customer_name": "EMEKA VICTOR WILLIAMS",
    "customer_id": "8102938475",
    "provider": "SPORTYBET",
    "is_valid": true
  }
}
POST /api/v1/betting/purchase
Live

Fund Betting Account

Credit betting wallets instantly with automated wholesale commission deductions.

Note: Protected by a 3.5s bounded in-flight resolution window. Returns HTTP 200 if completed immediately, or HTTP 202 if pending bookmaker confirmation (poll GET /api/v1/reseller/transaction/:ref to track final delivery). Failed dispatches trigger automatic wallet refunds.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
provider Body (string) Yes SPORTYBET | BET9JA | 1XBET | BETKING | MSPORT
customer_id Body (string) Yes Target betting account user ID
amount Body (number) Yes Amount to fund in NGN (min ₦100)
reference Body (string) Yes Unique idempotent transaction ID
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/betting/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "SPORTYBET",
    "customer_id": "8102938475",
    "amount": 2500,
    "reference": "BET-APEX-49021"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Betting wallet funded successfully.",
  "data": {
    "reference": "BET-APEX-49021",
    "dexng_reference": "TRXBET-881920-11",
    "provider": "SPORTYBET",
    "customer_id": "8102938475",
    "amount": 2500,
    "amount_debited": 2500,
    "currency": "NGN",
    "status": "delivered",
    "delivery_status": "delivered",
    "balance_after": 35300,
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}
Sample Response (202 Accepted — Async Delivery):
{
  "status": "pending",
  "code": 202,
  "message": "Bet funding order submitted and is being processed.",
  "data": {
    "reference": "BET-APEX-49021",
    "dexng_reference": "TRXBET-881920-11",
    "provider": "SPORTYBET",
    "customer_id": "8102938475",
    "amount_debited": 2500,
    "currency": "NGN",
    "status": "pending",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Gift Cards (3 Endpoints)

POST /api/v1/gift-cards/verify
Live

Verify DEXNG Gift Card Voucher

Inspect and verify the status, Nigerian Naira denomination, and validity of a DEXNG wallet gift voucher without redeeming it.

Note: DEXNG Gift Cards are Nigerian Naira (NGN) wallet vouchers formatted as DEXN-XXXX-XXXX-XXXX. This non-destructive check reports if the card is active, already redeemed, or cancelled.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
code Body (string) Yes DEXNG gift voucher code in DEXN-XXXX-XXXX-XXXX format
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/gift-cards/verify" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "code": "DEXN-7K8P-9M2N-4R5T"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "code": "DEXN-7K8P-9M2N-4R5T",
    "valid": true,
    "status": "active",
    "value": 5000,
    "currency": "NGN",
    "recipient_name": "Oluwaseun Adeleke",
    "sender_name": "Apex Data Services",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}
POST /api/v1/gift-cards/redeem
Live

Redeem DEXNG Gift Card to Wallet

Atomically redeem a valid DEXNG Nigerian Naira voucher code to instantly credit the authenticated reseller wallet balance (1:1 in NGN).

Note: Guaranteed single-use via ACID database transaction. Prevents double credits and race conditions.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
code Body (string) Yes DEXNG gift voucher code (DEXN-XXXX-XXXX-XXXX)
reference Body (string) Optional Unique idempotent client reference
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/gift-cards/redeem" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "code": "DEXN-7K8P-9M2N-4R5T",
    "reference": "RED-APEX-90182"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "DEXNG Gift Card redeemed successfully",
  "data": {
    "reference": "RED-APEX-90182",
    "redemption_ref": "DEXN-GC-RED-17919830-4912",
    "code": "DEXN-7K8P-9M2N-4R5T",
    "amount_credited": 5000,
    "currency": "NGN",
    "new_wallet_balance": 80450,
    "status": "redeemed",
    "redeemed_at": "2026-10-15T00:00:00.000Z"
  }
}
POST /api/v1/gift-cards/purchase
Live

Generate / Purchase DEXNG Gift Card

Debit the reseller wallet balance to generate a new, unredeemed DEXNG Nigerian Naira gift card voucher.

Note: Card value is denominated in Nigerian Naira (NGN). Supported denominations: ₦1,000, ₦2,000, ₦5,000, ₦10,000 (minimum ₦100). Voucher codes follow the DEXN-XXXX-XXXX-XXXX format.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
value Body (number) Yes Card value in NGN (e.g. 1000, 5000, 10000; min ₦100)
recipient_name Body (string) Optional Recipient name to display on card
recipient_email Body (string) Optional Optional email to notify recipient
note Body (string) Optional Optional personal greeting or memo
reference Body (string) Yes Unique idempotent transaction ID
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/gift-cards/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "value": 5000,
    "recipient_name": "Oluwaseun Adeleke",
    "recipient_email": "oluwaseun@client.com",
    "note": "Thank you for your business!",
    "reference": "GC-APEX-00912"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "DEXNG Gift Card generated successfully",
  "data": {
    "reference": "GC-APEX-00912",
    "code": "DEXN-7K8P-9M2N-4R5T",
    "value": 5000,
    "currency": "NGN",
    "amount_debited": 5000,
    "balance_after": 75450,
    "status": "active",
    "recipient_name": "Oluwaseun Adeleke",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Education (3 Endpoints)

GET /api/v1/education/services
Live

Fetch Education Exam Services

Retrieve catalog of supported examination boards (WAEC, NECO, NABTEB, JAMB) and current PIN wholesale pricing.

Note: Returns service codes, examination boards, and live pricing in NGN.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/education/services" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "count": 4,
  "data": [
    {
      "service_id": 203,
      "service_name": "WAEC Result Checker PIN",
      "short_code": "WAEC",
      "price": 5150
    },
    {
      "service_id": 154,
      "service_name": "NECO Result Token PIN",
      "short_code": "NECO",
      "price": 1250
    },
    {
      "service_id": 205,
      "service_name": "NABTEB Result Checker PIN",
      "short_code": "NABTEB",
      "price": 865
    },
    {
      "service_id": 153,
      "service_name": "JAMB UTME PIN",
      "short_code": "JAMB",
      "price": 7700
    }
  ]
}
POST /api/v1/education/price
Live

Check Examination PIN Pricing

Retrieve current unit pricing and available inventory for WAEC, NECO, JAMB, and NABTEB result checker PIN tokens.

Note: Prices are returned in NGN per PIN unit.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
exam_type Body (string) Yes WAEC | NECO | JAMB | NABTEB
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/education/price" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "exam_type": "WAEC"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "exam_type": "WAEC",
    "unit_price": 5150,
    "currency": "NGN",
    "available": true
  }
}
POST /api/v1/education/purchase
Live

Purchase Examination Result PINs

Purchase WAEC, NECO, JAMB, or NABTEB candidate result checker PINs and serial tokens instantly.

Note: Delivers candidate serial number, PIN, and redemption instructions directly in response.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
exam_type Body (string) Yes WAEC | NECO | JAMB | NABTEB
quantity Body (number) Yes Number of PIN tokens to purchase (1-10)
phone Body (string) Optional Notification mobile phone
reference Body (string) Yes Unique idempotent transaction reference
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/education/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "exam_type": "WAEC",
    "quantity": 1,
    "phone": "08031234567",
    "reference": "EDU-APEX-33102"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Education tokens issued successfully",
  "data": {
    "reference": "EDU-APEX-33102",
    "exam_type": "WAEC",
    "quantity": 1,
    "unit_price": 5150,
    "amount_debited": 5150,
    "currency": "NGN",
    "tokens": [
      {
        "pin": "9841-2918-3821",
        "serial_number": "WEC-88192039"
      }
    ],
    "instructions": "Visit https://www.waecdirect.org and enter PIN and Serial Number.",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

International (4 Endpoints)

GET /api/v1/international/countries
Live

List Supported Countries

Retrieve list of 120+ supported countries for cross-border airtime and data recharging.

Note: Provides country ISO codes, names, dialing codes, and supported currency symbols.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/international/countries" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": [
    {
      "code": "GH",
      "name": "Ghana",
      "currency": "GHS",
      "prefix": "+233"
    },
    {
      "code": "KE",
      "name": "Kenya",
      "currency": "KES",
      "prefix": "+254"
    },
    {
      "code": "GB",
      "name": "United Kingdom",
      "currency": "GBP",
      "prefix": "+44"
    },
    {
      "code": "US",
      "name": "United States",
      "currency": "USD",
      "prefix": "+1"
    }
  ]
}
POST /api/v1/international/operators
Live

List International Operators

Retrieve telecom operators and mobile network brands for a specific country.

Note: Supports airtime and data top-up types.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
country_code Body (string) Yes 2-letter ISO country code (e.g. GH, KE)
service_type Body (string) Optional airtime | data
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/international/operators" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "country_code": "GH",
    "service_type": "airtime"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": [
    {
      "operator_id": "mtn-ghana",
      "name": "MTN Ghana",
      "min_amount": 5,
      "max_amount": 500
    },
    {
      "operator_id": "vodafone-ghana",
      "name": "Telecel / Vodafone Ghana",
      "min_amount": 5,
      "max_amount": 500
    }
  ]
}
POST /api/v1/international/fx-rate
Live

Preview FX Rate & NGN Cost

Calculate real-time Nigerian Naira (NGN) debit cost for a given destination amount and currency.

Note: Allows resellers to quote exact prices to clients before placing orders.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
operator_id Body (string) Yes Operator identifier
amount Body (number) Yes Amount in recipient local currency (e.g. 50 GHS)
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/international/fx-rate" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "operator_id": "mtn-ghana",
    "amount": 50
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": {
    "destination_amount": 50,
    "destination_currency": "GHS",
    "exchange_rate": 104.5,
    "ngn_cost": 5225
  }
}
POST /api/v1/international/purchase
Live

Purchase International Top-up

Dispatch international cross-border airtime or data recharge, debiting reseller NGN wallet balance.

Note: Recipient phone number must be in E.164 format with country code.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
country_code Body (string) Yes 2-letter ISO country code (e.g. GH, KE)
operator_id Body (string) Yes Operator identifier (e.g. mtn-ghana)
recipient_phone Body (string) Yes E.164 formatted international phone number (e.g. +233241234567)
amount Body (number) Yes Amount in recipient local currency
reference Body (string) Yes Unique idempotent transaction ID
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/international/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "country_code": "GH",
    "operator_id": "mtn-ghana",
    "recipient_phone": "+233241234567",
    "amount": 50,
    "reference": "INTL-APEX-77102"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "International top-up dispatched successfully",
  "data": {
    "reference": "INTL-APEX-77102",
    "dexng_reference": "TRXINTL-891024-55",
    "country": "Ghana (GH)",
    "operator": "MTN Ghana",
    "recipient_phone": "+233241234567",
    "local_amount": "50.00 GHS",
    "amount_debited": 5225,
    "currency": "NGN",
    "status": "delivered",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Broadband (2 Endpoints)

GET /api/v1/broadband/plans
Live

Fetch Broadband Plans

List available fixed broadband packages and data bundles for MTN 4G/5G broadband routers, MiFi, and HyNetFlex devices.

Note: Allows querying bundles by service_id or provider identifier.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
service_id Query String (number) Optional Broadband service ID (default 152 for MTN Broadband)
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/broadband/plans?service_id=152" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "count": 4,
  "data": [
    {
      "code": "587",
      "name": "MTN BROADBAND 30GB (30 Days)",
      "price": 8729,
      "service_id": 152,
      "size_mb": 30000,
      "validity_days": 30
    },
    {
      "code": "588",
      "name": "MTN BROADBAND 60GB (30 Days)",
      "price": 14065,
      "service_id": 152,
      "size_mb": 60000,
      "validity_days": 30
    },
    {
      "code": "589",
      "name": "MTN BROADBAND 120GB (30 Days)",
      "price": 23276,
      "service_id": 152,
      "size_mb": 120000,
      "validity_days": 30
    },
    {
      "code": "591",
      "name": "MTN BROADBAND 150GB (30 Days)",
      "price": 29095,
      "service_id": 152,
      "size_mb": 150000,
      "validity_days": 30
    }
  ]
}
POST /api/v1/broadband/purchase
Live

Purchase Broadband Bundle

Purchase and renew MTN Broadband 4G/5G fixed wireless internet packages for routers, MiFi, and HyNetFlex devices.

Note: Instant broadband data top-up with wallet debit in NGN.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
provider Body (string) Yes MTN | MTN_BROADBAND
account_number Body (string) Yes Broadband SIM / router phone number (e.g. 08031234567)
bundle_id Body (string) Yes Broadband plan code (e.g. 587 for 30GB, 588 for 60GB)
reference Body (string) Yes Unique idempotent reference
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/broadband/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "MTN",
    "account_number": "08031234567",
    "bundle_id": "587",
    "reference": "BB-APEX-90182"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Broadband data bundle delivered successfully",
  "data": {
    "reference": "BB-APEX-90182",
    "dexng_reference": "TRXBB-99210-44",
    "provider": "MTN",
    "account_number": "08031234567",
    "bundle": "MTN BROADBAND 30GB (30 Days)",
    "amount_debited": 8729,
    "currency": "NGN",
    "status": "delivered",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Bulk SMS (2 Endpoints)

GET /api/v1/sms/sender-ids
Live

List Approved Sender IDs

Retrieve list of approved alphanumeric sender IDs registered under your reseller account.

Note: Sender IDs must be approved by NCC/telco operators before broadcasting.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/sms/sender-ids" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": [
    {
      "sender_id": "APEXTECH",
      "status": "approved",
      "registered_at": "2026-09-01T10:00:00.000Z"
    },
    {
      "sender_id": "APEXNOTIF",
      "status": "approved",
      "registered_at": "2026-09-15T12:00:00.000Z"
    }
  ]
}
POST /api/v1/sms/send
Live

Send Bulk SMS Broadcast

Dispatch high-priority SMS notifications and marketing blasts with approved custom Sender IDs.

Note: Cost per SMS page (160 characters) is automatically debited from reseller NGN balance.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
sender_id Body (string) Yes Approved alphanumeric sender ID (max 11 chars)
recipients Body (string[]) Yes Array of 11-digit Nigerian recipient mobile numbers
message Body (string) Yes Text message content (160 chars per SMS unit)
reference Body (string) Yes Unique idempotent transaction ID
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/sms/send" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "sender_id": "APEXTECH",
    "recipients": ["08031234567", "08029876543"],
    "message": "Dear customer, your order #8921 has been processed successfully.",
    "reference": "SMS-APEX-10293"
  }'
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "message": "Bulk SMS queued for delivery",
  "data": {
    "reference": "SMS-APEX-10293",
    "batch_id": "SMSBATCH-99102-12",
    "recipients_count": 2,
    "units_per_sms": 1,
    "total_units": 2,
    "unit_cost": 3.5,
    "total_debited": 7,
    "currency": "NGN",
    "status": "dispatched",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

Bulk Airtime (2 Endpoints)

GET /api/v1/bulk-airtime/networks
Live

List Bulk Airtime Networks & Discounts

Retrieve current wholesale discount rates and operational status for all mobile networks in bulk airtime mode.

Note: Lists active telco networks and applicable percentage discounts.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
Sample Request (cURL):
curl -X GET "https://dexng.com.ng/api/v1/bulk-airtime/networks" \
  -H "Authorization: Bearer dex_live_abc123..."
Sample Response (200 OK):
{
  "status": "success",
  "code": 200,
  "data": [
    {
      "network": "MTN",
      "discount_percent": 2.5,
      "min_amount": 50,
      "max_amount": 50000
    },
    {
      "network": "AIRTEL",
      "discount_percent": 2.5,
      "min_amount": 50,
      "max_amount": 50000
    },
    {
      "network": "GLO",
      "discount_percent": 3,
      "min_amount": 50,
      "max_amount": 50000
    },
    {
      "network": "9MOBILE",
      "discount_percent": 3.5,
      "min_amount": 50,
      "max_amount": 50000
    }
  ]
}
POST /api/v1/bulk-airtime/purchase
Live

Disburse Bulk Airtime Batch

Disburse airtime recharge incentives to multiple recipients in a single atomic batch request.

Note: Processes items concurrently with per-recipient transaction reporting and single wallet deduction.
Authentication: Bearer API Key (dex_live_... or dex_test_...)
Request Parameters:
Parameter Type Required Description
Authorization Header (string) Yes Bearer API Key
batch_reference Body (string) Yes Unique batch transaction reference
items Body (object[]) Yes Array of items: [{ phone, amount, network, item_reference }]
Sample Request (cURL):
curl -X POST "https://dexng.com.ng/api/v1/bulk-airtime/purchase" \
  -H "Authorization: Bearer dex_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{
    "batch_reference": "BATCH-AIR-2026-01",
    "items": [
      { "phone": "08031234567", "amount": 500, "network": "MTN", "item_reference": "ITEM-1" },
      { "phone": "08029876543", "amount": 1000, "network": "AIRTEL", "item_reference": "ITEM-2" }
    ]
  }'
Sample Response (202 Accepted):
{
  "status": "success",
  "code": 202,
  "message": "Bulk batch received and processing",
  "data": {
    "batch_reference": "BATCH-AIR-2026-01",
    "total_items": 2,
    "total_amount": 1500,
    "amount_debited": 1462.5,
    "currency": "NGN",
    "status": "processing",
    "created_at": "2026-10-15T00:00:00.000Z"
  }
}

DEXNG Standard Error Codes

Every failure returns a predictable JSON body with an uppercase error code, status: "error", and an explanatory message.

Error Code HTTP Status Description Refund Policy Action
AUTH_FAILED 401 API key is missing, revoked, invalid, or improperly formatted in the Authorization header. No funds debited. Check Authorization header format (Authorization: Bearer dex_live_...). Generate a new key in Reseller Portal if revoked.
INSUFFICIENT_FUNDS 400 Reseller wallet balance is lower than the required wholesale purchase amount. No funds debited. Fund your reseller wallet to continue. Fund your DEXNG reseller wallet via dedicated virtual account or online top-up.
INVALID_INPUT 400 Required payload fields are missing, malformed, or invalid (e.g. invalid phone number or unselected plan ID). No funds debited. Verify parameter names and formats against the parameters schema table.
DUPLICATE_REFERENCE 429 An existing purchase with the same client reference is currently leasing processing locks. No double debit occurred. The original in-flight request is being processed. Wait 3-5 seconds and check status via GET /api/v1/reseller/transaction/:ref instead of repeating purchase.
CONFLICT_PAYLOAD_MISMATCH 409 The client reference was previously submitted with a different request payload or hash mismatch. No double debits allowed. Never reuse references across different purchases. Generate a fresh, unique client reference string for every new purchase order.
SERVICE_MAINTENANCE 503 Upstream telecom gateway or service route is temporarily undergoing routine maintenance. No funds debited. Retry request after a short interval or switch to an alternate telecom provider network.
UPSTREAM_FAILED 400 The operator rejected the transaction during execution. Upstream vendor details are sanitized into DEXNG standard messages. Atomic auto-refund applied immediately to reseller wallet. Field "refunded": true is returned. Check recipient eligibility or retry with correct recipient details. Wallet balance has been restored.