Stay updated with latest news and updates on our WhatsApp channel Get news & updates on our WhatsApp channel

API Documentation

Merchant REST API for bill payments, wallet balance, and programmatic purchases.

Introduction

The Vorqan Merchant API lets verified businesses sell airtime, data, electricity, cable TV, education pins, and betting top-ups from their own apps or backends. All requests and responses use JSON over HTTPS.

To get started: create an account, request API access, generate a live key, fund your merchant wallet, then call the endpoints below from your server.

Authentication

Include your API key on every request:

Authorization: Bearer bp_live_xxxxxxxxxxxxxxxx
  • Keys are issued per merchant account after API access is approved.
  • If IP whitelist entries exist, only those server IPs can call the API. If none are configured yet, calls are allowed by default.
  • Never embed live keys in mobile apps or front-end JavaScript.

Base URL

All merchant endpoints are rooted at:

https://app.vorqan.ng/api/v1/merchant/

Send Content-Type: application/json on POST requests with a JSON body.

Wallet balance

GET /wallet/balance/

Returns your merchant wallet balance used to fund API purchases.

ParameterTypeDescription
No query parameters.
{
  "balance": "25000.00",
  "currency": "NGN"
}
{
  "status": "failed",
  "code": "UNAUTHORIZED",
  "message": "Invalid or missing API key."
}

List billers

GET /billers/

Returns all billers available to your merchant account (networks, DISCOs, cable providers, etc.).

NameTypeDescription
category string Optional filter: data, airtime, electricity, etc. Comma-separated for multiple. Optional

Live biller catalog

Sign in to browse billers and copy slugs for integration. Discount or cashback is shown when available.

Sign in to browse available billers and copy slugs or codes into API requests.

Sign in to view catalog
{
  "count": 1,
  "data": [
    {
      "id": 1,
      "name": "MTN Data",
      "slug": "mtn-data",
      "category": "data",
      "logo_url": "https://surplusplug.com/media/billers/mtn.png",
      "description": "MTN data bundles",
      "status": "active",
      "sort_order": 1,
      "is_featured": true,
      "plans": [
        {
          "id": 42,
          "name": "1GB — 30 Days",
          "code": "MTN-1GB",
          "amount": 300.0,
          "currency": "NGN",
          "validity_days": 30,
          "is_variable_amount": false,
          "effective_amount": 270.0,
          "effective_fee": 0.0,
          "effective_total": 270.0,
          "cashback": 15.0,
          "benefit_type": null,
          "benefit_label": ""
        }
      ]
    }
  ]
}
{
  "status": "failed",
  "code": "UNAUTHORIZED",
  "message": "Invalid or missing API key."
}

List products

GET /billers/{slug}/products/

List purchasable products (plans, denominations) for a biller identified by slug.

NameTypeDescription
slug string Biller slug from the billers list (path parameter). Required

Live product catalog

Product prices depend on your account pricing group. Sign in, pick a data biller (e.g. MTN Data), and copy the MSORG Plan ID or Adex Plan ID for legacy slot setup — or the product code for the Merchant API.

Sign in to browse products with your group-specific prices and copy slugs or codes into API requests.

Sign in to view catalog
{
  "biller_slug": "mtn-data",
  "biller_name": "MTN Data",
  "count": 1,
  "data": [
    {
      "id": 42,
      "name": "1GB — 30 Days",
      "code": "MTN-1GB",
      "description": "",
      "amount": 300.0,
      "currency": "NGN",
      "validity_days": 30,
      "is_variable_amount": false,
      "min_amount": null,
      "max_amount": null,
      "sort_order": 1,
      "is_special": false,
      "effective_amount": 270.0,
      "effective_fee": 0.0,
      "effective_total": 270.0,
      "cashback": 15.0,
      "benefit_type": null,
      "benefit_label": ""
    }
  ]
}
{
  "status": "failed",
  "code": "BILLER_NOT_FOUND",
  "message": "Biller 'invalid-slug' not found."
}

List recharge PIN networks

GET /recharge-pin/networks/

Retrieve active biller networks configured for Recharge PIN purchase.

ParameterTypeDescription
No query parameters.

Live recharge PIN networks

Sign in to browse recharge PIN networks, view stock counts, and copy biller slugs for purchase requests.

Sign in to browse recharge PIN networks and copy slugs or codes into API requests.

Sign in to view catalog
[
  {
    "id": 1,
    "name": "MTN Recharge PIN",
    "slug": "mtn-rechargepin",
    "logo_url": "https://app.dataway.ng/media/logos/mtn-rechargepin.png",
    "category": "rechargepin",
    "description": "MTN recharge voucher PIN stock",
    "status": "active"
  }
]
{
  "status": "failed",
  "code": "UNAUTHORIZED",
  "message": "Invalid or missing API key."
}

List recharge PIN denominations

GET /recharge-pin/denominations/

Fetch available denominations and stock count for a specific network.

NameTypeDescription
networkstringBiller network name (e.g. MTN, GLO, AIRTEL). Either this or biller parameter is required.Required*
billerstringBiller slug (e.g. mtn-rechargepin). Either this or network parameter is required.Required*

Live recharge PIN denominations

Sign in to browse available denominations and stock for each network. When stock is empty, common face values are shown for reference.

Sign in to browse recharge PIN denominations and copy slugs or codes into API requests.

Sign in to view catalog
{
  "network": "MTN",
  "denominations": [
    {
      "denomination": 100.0,
      "available_count": 142
    },
    {
      "denomination": 200.0,
      "available_count": 87
    }
  ]
}
{
  "status": "failed",
  "code": "UNAUTHORIZED",
  "message": "Invalid or missing API key."
}

Purchase data

POST /data/purchase/

Purchase a data bundle for a phone number.

NameTypeDescription
product_idintegerShort in-house product id from the catalog (e.g. 1001).Required
phonestringRecipient phone number.Required
referencestringYour unique client reference per purchase attempt (max 128 chars). Prevents duplicate charges.Required
narrationstringOptional description for your records.Optional
{
  "status": "successful",
  "reference": "TXN-DATA-ABC123",
  "network": "MTN",
  "plan": "1GB - 30 Days",
  "phone": "08031234567",
  "amount": "270.00",
  "fee": "0.00",
  "total_deducted": "270.00",
  "balance_before": "5000.00",
  "balance_after": "4730.00",
  "provider_reference": "PRV-XYZ987",
  "purchased_at": "2026-05-17T10:30:00Z"
}
{
  "status": "failed",
  "code": "PRODUCT_NOT_FOUND",
  "message": "Data plan not found."
}

Purchase airtime

POST /airtime/purchase/

Top up airtime for any amount supported by the network biller. A 429 may be returned when a daily limit is exceeded.

NameTypeDescription
networkstringAirtime biller slug (e.g. mtn-airtime).Required
phonestringRecipient phone number.Required
amountdecimalAmount in NGN.Required
referencestringYour unique client reference per purchase attempt.Required
{
  "status": "successful",
  "reference": "400000030726384729105821",
  "network": "MTN",
  "phone": "08031234567",
  "amount": "500.00",
  "fee": "0.00",
  "total_deducted": "500.00",
  "balance_before": "5000.00",
  "balance_after": "4500.00",
  "purchased_at": "2026-05-17T10:30:00Z"
}
{
  "status": "failed",
  "code": "DAILY_LIMIT_EXCEEDED",
  "message": "Daily airtime limit exceeded for this account."
}

Msorg Integration Guide

SETUP Website configuration

If you already use an MSORG VTU slot on your website, you do not need a developer. In your website admin, open MSORG WEBSITE API/AUTOMATION and update the fields below — your slot code stays the same.

MSORG website API automation settings showing Msorg web url and Msorg web api key fields
Example admin screen on an MSORG-developed VTU site. Fill in your Vorqan details as shown in the table below.
Configuration fieldWhat to fill
Msorg web url https://app.vorqan.ng Paste your Vorqan site URL in the Change field (no trailing slash). Required
Msorg web api key Your live API key from Settings → API Keys on Vorqan (starts with bp_live_). Paste the full key into the API key box on your website admin. Required
plan id Use the integer plan id for each data plan on your MSORG slot configuration. Open List products, choose a data network (e.g. MTN Data), click Load products, then copy the MSORG Plan ID from each plan card. Required

No code changes. Endpoints stay POST /api/data/ and POST /api/topup/. Request and response format are unchanged (Status, ident, api_response).

Network ids: 1 MTN · 2 GLO · 3 9MOBILE · 4 AIRTEL.

Adex Integration Guide

SETUP Website configuration

If your VTU website uses an Adex Data Plug or N3tdata slot (medium set to N3TDATA / Adex API), you do not need a developer. In your website admin, open the Adex / external API settings and update the fields below — your slot code stays the same.

Configuration fieldWhat to fill
Website URL / API URL https://app.vorqan.ng Paste your Vorqan site URL (no trailing slash). This replaces the old Adex / N3tdata host (e.g. n3tdata.com). Required
Access Token / API Token Your live API key from Settings → API Keys on Vorqan (starts with bp_live_). Paste the full key into the token field. Keep the Authorization: Token … header format — only swap in your Vorqan key. Required
data_plan id Use the integer plan id for each data plan on your Adex slot (same value as n3tdata_plan_id on your old Plan table). Open List products, choose a data network (e.g. GLO Data), click Load products, then copy the Adex Plan ID from each plan card. Required

No code changes. Endpoints stay POST /api/data and POST /api/topup (no trailing slash). Request fields are unchanged: network, phone, data_plan, bypass, request-id.

Responses use the Adex shape: status (success / fail), request-id, response, oldbal, newbal, plus plan metadata (dataplan, plan_type).

Network ids: 1 MTN · 2 AIRTEL · 3 GLO · 4 9MOBILE.

Verify electricity customer

POST /electricity/verify/

Validate a meter or customer reference before payment.

NameTypeDescription
billerstringDISCO slug (e.g. ekedc-prepaid).Required
customer_refstringMeter number.Required
product_codestringSome providers require a product code.Optional
{
  "customer_name": "JOHN DOE",
  "customer_address": "12 Lagos St, Ikeja",
  "meter_type": "prepaid"
}
{
  "status": "failed",
  "code": "BILLER_NOT_FOUND",
  "message": "Unknown biller."
}

Purchase electricity

POST /electricity/purchase/

Pay an electricity bill after verification. Include amount for variable-amount products. Successful responses may include a token field when returned by the provider.

NameTypeDescription
billerstringDISCO slug.Required
product_idintegerBillerProduct ID.Required
customer_refstringMeter number.Required
phonestringContact phone.Optional
amountdecimalRequired for variable-amount products.Optional
referencestringYour unique client reference per purchase attempt.Required
{
  "status": "successful",
  "reference": "TXN-ELEC-GHI789",
  "biller": "EKEDC Prepaid",
  "product": "Prepaid Token",
  "customer_ref": "04123456789",
  "amount": "5000.00",
  "fee": "100.00",
  "total_deducted": "5100.00",
  "balance_before": "10000.00",
  "balance_after": "4900.00",
  "provider_reference": "PRV-ELEC321",
  "token": "9823-1933-8821-1002-9921",
  "purchased_at": "2026-05-17T10:30:00Z"
}
{
  "status": "failed",
  "code": "AMOUNT_REQUIRED",
  "message": "Amount is required for variable-amount products."
}

Verify cable TV customer

POST /cable/verify/

Look up a smartcard / IUC number before subscribing.

NameTypeDescription
billerstringProvider slug (e.g. dstv).Required
customer_refstringSmartcard or IUC number.Required
{
  "customer_name": "JOHN DOE",
  "customer_address": "12 Lagos St, Ikeja",
  "meter_type": "prepaid"
}
{
  "status": "failed",
  "code": "BILLER_NOT_FOUND",
  "message": "Unknown biller."
}

Purchase cable TV

POST /cable/purchase/

Renew or change a cable TV subscription.

NameTypeDescription
billerstringProvider slug.Required
product_idintegerPackage product ID.Required
customer_refstringSmartcard / IUC.Required
referencestringYour unique client reference per purchase attempt.Required
{
  "status": "successful",
  "reference": "TXN-CABLE-JKL012",
  "biller": "DSTV",
  "product": "Compact",
  "customer_ref": "1234567890",
  "amount": "10500.00",
  "fee": "0.00",
  "total_deducted": "10500.00",
  "balance_before": "20000.00",
  "balance_after": "9500.00",
  "provider_reference": "PRV-CABLE654",
  "purchased_at": "2026-05-17T10:30:00Z"
}
{
  "status": "failed",
  "code": "PRODUCT_NOT_FOUND",
  "message": "Invalid product."
}

Purchase education pins

POST /education/purchase/

Purchase exam PINs or education tokens (WAEC, NECO, etc.). Depending on provider response, success payloads can include tokens, serial_numbers, pins, or cards.

NameTypeDescription
billerstringExam body slug (e.g. waec).Required
product_idintegerProduct ID.Required
quantityintegerNumber of PINs (default 1).Optional
referencestringYour unique client reference per purchase attempt.Required
{
  "status": "successful",
  "reference": "TXN-EDU-MNO345",
  "biller": "WAEC",
  "product": "WAEC Result Checker",
  "quantity": 1,
  "unit_amount": "3450.00",
  "amount": "3450.00",
  "fee": "0.00",
  "total_deducted": "3450.00",
  "balance_before": "10000.00",
  "balance_after": "6550.00",
  "provider_reference": "PRV-EDU987",
  "pins": ["1234-5678-9012"],
  "purchased_at": "2026-05-17T10:30:00Z"
}
{
  "status": "failed",
  "code": "INVALID_QUANTITY",
  "message": "Quantity must be between 1 and 10."
}

Fund betting wallet

POST /betting/fund/

Fund a customer's betting wallet. This endpoint returns funded_at as the timestamp field on success.

NameTypeDescription
billerstringPlatform slug (e.g. bet9ja).Required
customer_idstringBetting account ID.Required
amountdecimalAmount in NGN.Required
referencestringYour unique client reference per purchase attempt.Required
{
  "status": "successful",
  "reference": "TXN-BET-PQR678",
  "platform": "Bet9ja",
  "customer_id": "USR123456",
  "amount": "2000.00",
  "fee": "50.00",
  "total_deducted": "2050.00",
  "balance_before": "5000.00",
  "balance_after": "2950.00",
  "provider_reference": "PRV-BET456",
  "funded_at": "2026-05-17T10:30:00Z"
}
{
  "status": "failed",
  "code": "PLATFORM_NOT_FOUND",
  "message": "Betting platform not found."
}

Purchase recharge PIN

POST /recharge-pin/purchase/

Purchase one or multiple recharge voucher PINs from active inventory.

NameTypeDescription
billerstringBiller slug (e.g. mtn-rechargepin).Optional
network_idstringNetwork ID mapping fallback (e.g. 1 for MTN).Optional
denominationstringFace value to purchase (e.g. 100).Required
quantityintegerNumber of PINs to purchase (1-39).Required
name_on_cardstringOptional custom print name on the voucher card.Optional
referencestringYour unique client reference per purchase attempt.Required
{
  "status": "successful",
  "reference": "RPIN260629161245012345",
  "network": "MTN",
  "denomination": "100.00",
  "quantity": 2,
  "total_amount": "200.00",
  "name_on_card": "Otunba Lamba",
  "balance_before": "25000.00",
  "balance_after": "24800.00",
  "purchased_at": "2026-06-29T16:12:45Z",
  "pins": [
    {
      "pin": "1234567890123456",
      "serial": "SN987654321",
      "load_code": "*311*PIN#"
    },
    {
      "pin": "2345678901234567",
      "serial": "SN987654322",
      "load_code": "*311*PIN#"
    }
  ]
}
{
  "status": "failed",
  "code": "INSUFFICIENT_STOCK",
  "message": "Insufficient stock for the requested denomination."
}

List recharge PIN orders

GET /recharge-pin/orders/

Retrieve history of past recharge PIN orders purchased on your merchant account.

ParameterTypeDescription
No query parameters.
{
  "success": true,
  "orders": [
    {
      "id": "7ac19d9b-d8ba-4674-884c-47353b3b4f6e",
      "reference": "RPIN260629161245012345",
      "network": "MTN",
      "denomination": 100.0,
      "selling_price": 100.0,
      "quantity": 2,
      "total_amount": 200.0,
      "name_on_card": "Otunba Lamba",
      "status": "successful",
      "purchased_at": "2026-06-29T16:12:45Z"
    }
  ]
}
{
  "status": "failed",
  "code": "UNAUTHORIZED",
  "message": "Invalid or missing API key."
}

Recharge PIN order details

GET /recharge-pin/orders/{order_id}/

Retrieve details of a specific recharge PIN order including card PINs and serial numbers.

NameTypeDescription
order_idstringUUID order identifier (path parameter).Required
{
  "success": true,
  "id": "7ac19d9b-d8ba-4674-884c-47353b3b4f6e",
  "reference": "RPIN260629161245012345",
  "network": "MTN",
  "denomination": 100.0,
  "selling_price": 100.0,
  "quantity": 2,
  "total_amount": 200.0,
  "name_on_card": "Otunba Lamba",
  "status": "successful",
  "balance_before": 25000.0,
  "balance_after": 24800.0,
  "purchased_at": "2026-06-29T16:12:45Z",
  "pins": [
    {
      "pin": "1234567890123456",
      "serial": "SN987654321",
      "load_code": "*311*PIN#"
    },
    {
      "pin": "2345678901234567",
      "serial": "SN987654322",
      "load_code": "*311*PIN#"
    }
  ]
}
{
  "status": "failed",
  "code": "NOT_FOUND",
  "message": "Order not found."
}

Webhooks

Register a single HTTPS endpoint to receive asynchronous transaction updates. Configure your webhook URL in the dashboard under API Integration → Webhook. The simulator below sends production-shaped sample events for integration testing.

  • Vorqan sends POST requests with a JSON body when a transaction status changes.
  • Your endpoint should return HTTP 200 as quickly as possible (target: within 15 seconds).
  • Use the webhook secret (shown when you save your URL) to verify signatures — see Webhook Events.
  • Webhook simulator support is available now. If you expect production transaction webhooks and are not receiving events, confirm account setup with support.
  • The simulator reports delivery success/failure and does not perform automatic retries.
Setup check: when saving your webhook URL in API Integration, the platform validates reachability and expects a HTTP 200 response from your endpoint URL.

Sample webhook request

POST https://your-server.com/webhooks/vorqan HTTP/1.1
Content-Type: application/json
X-Vorqan-Signature: sha256=a1b2c3d4e5f6...
{
  "event": "transaction.successful",
  "data": {
    "status": "successful",
    "reference": "TXN-20260517-A1B2C3",
    "amount": "1000.00",
    "fee": "0.00",
    "total_deducted": "1000.00",
    "balance_before": "25000.00",
    "balance_after": "24000.00",
    "provider_reference": "PRV-REF-20260517",
    "purchased_at": "2026-05-17T14:30:00Z"
  }
}
{
  "event": "transaction.pending",
  "data": {
    "status": "pending",
    "reference": "TXN-20260517-A1B2C3",
    "message": "Transaction is being processed. Do NOT retry."
  }
}
{
  "event": "transaction.failed",
  "data": {
    "status": "failed",
    "reference": "TXN-20260517-A1B2C3",
    "message": "Provider rejected the transaction. Wallet refunded."
  }
}

Webhook Events

Each notification includes an event field and a data object with the transaction payload.

EventDescription
transaction.successfulPurchase completed and wallet debited.
transaction.pendingStill processing — do not retry the purchase.
transaction.failedPurchase failed; wallet refunded when applicable.

Verify the X-Vorqan-Signature header by computing HMAC-SHA256 of the raw request body with your webhook secret.

See Webhooks for full sample payloads for each event type.

Webhook Simulator

Sign in and enter the HTTPS endpoint already registered under API Integration. We will send it a sample webhook POST with the same JSON shape as production events.

Your registered endpoint must be reachable from the internet and return HTTP 200 within 15 seconds. Verify X-Vorqan-Signature using the secret shown when the endpoint was registered. The simulator does not expose your secret or the endpoint response body. Limit: 10 requests per minute per account and IP.

Reference

Headers

HeaderRequiredDescription
AuthorizationYesBearer bp_live_… API key
Content-TypePOSTapplication/json
X-Device-IdNoOptional device fingerprint for audit logs

Biller categories

Use ?category= on GET /billers/: data, airtime, electricity, cable, betting, education, exam, internet, rechargepin, airtime_cash.

Client reference

Every purchase requires a unique reference. Replaying the same key does not create a second charge and returns one of: 200 (already successful), 202 (still pending), or 409 (already failed).

Duplicate replay examples

{
  "status": "successful",
  "code": "DUPLICATE",
  "message": "This reference was already used and the transaction completed successfully.",
  "duplicate": true,
  "reference": "TXN-DATA-ABC123",
  "balance_after": "4730.00"
}
{
  "status": "pending",
  "code": "DUPLICATE",
  "message": "Your previous request is still being processed.",
  "duplicate": true,
  "reference": "TXN-DATA-ABC123"
}
{
  "status": "failed",
  "code": "DUPLICATE",
  "message": "This transaction already failed and your wallet was refunded.",
  "duplicate": true,
  "reference": "TXN-DATA-ABC123"
}

Error Handling

Error bodies use status (failed), code, and message — mirroring success payloads that use "status": "successful". Use the HTTP status code together with the body for handling.

HTTPMeaning
200 / 201Success — transaction completed (or balance returned).
202Pending — processing; do not retry with the same reference.
400Validation or domain failure (status/code/message).
401Missing or invalid API key.
402Insufficient wallet balance.
403IP not whitelisted, API access not approved, or wallet frozen.
404Biller, product, or resource not found.
422Provider rejected the purchase — funds refunded where applicable.
409Duplicate reference for a failed transaction.
429Rate/limit protection (for example, daily airtime limit exceeded).

Endpoint status matrix

EndpointCommon statuses
POST /data/purchase/201, 202, 400, 402, 403, 404, 422 + duplicate replay 200/202/409
POST /airtime/purchase/201, 202, 400, 402, 403, 422, 429 + duplicate replay 200/202/409
POST /electricity/verify/200, 400, 404
POST /electricity/purchase/201, 400, 402, 404, 422 + duplicate replay 200/202/409
POST /cable/verify/200, 400, 404
POST /cable/purchase/201, 400, 402, 404, 422 + duplicate replay 200/202/409
POST /education/purchase/201, 202, 400, 402, 403, 404, 422 + duplicate replay 200/202/409
POST /betting/fund/201, 202, 400, 402, 403, 404, 422 + duplicate replay 200/202/409
GET /wallet/balance/200, 401, 403
Always send a unique reference per purchase attempt. Reusing the same key returns the original result instead of charging twice.

Error response format

All merchant API error responses use this shape (including validation failures):

{
  "status": "failed",
  "code": "INSUFFICIENT_BALANCE",
  "message": "Insufficient wallet balance."
}

Validation failures are normalized the same way, for example a missing phone:

{
  "status": "failed",
  "code": "REQUIRED",
  "message": "phone is required"
}

Purchase success sample

POST purchase endpoints return payloads like the sample below on success. Some endpoints include extra fields (for example token for electricity, or funded_at for betting). Catalog GET endpoints use different shapes. Pending purchases return HTTP 202 with "status": "pending".

{
  "status": "successful",
  "reference": "TXN-20260517-A1B2C3",
  "amount": "1000.00",
  "fee": "0.00",
  "total_deducted": "1000.00",
  "balance_before": "25000.00",
  "balance_after": "24000.00",
  "provider_reference": "PRV-REF-20260517",
  "purchased_at": "2026-05-17T14:30:00Z"
}

Need API access?

Sign up, complete verification, and request merchant API access from your dashboard.