API documentation

A versioned, idempotent HTTP/JSON API. Authenticate with your bearer credential and pass an Idempotency-Key on every financial request. All amounts are resolved server-side from the plan — never from the request body.

Authentication

Send your API key as a bearer token. Keys are created automatically for every account and can be rotated from the developer area. Requests without a valid, active key are rejected with 401.

Authorization: Bearer YOUR_API_KEY

Base URL: https://vaultrixauto.com.ng/api/v1

Request conventions

FieldTypeRequiredDescription
Content-TypeheaderrequiredSend JSON bodies as application/json. Form-encoded bodies are also accepted.
AuthorizationheaderrequiredBearer API key: Bearer vtu_….
Idempotency-KeyheaderrequiredRequired on every financial request. 16–190 characters (A–Z a–z 0–9 . _ ~ -). Reusing a key returns the original transaction; reusing it for a different account or service is rejected with 422.
X-Request-IdheaderoptionalOptional client correlation id. Echoed back on every response; generated when omitted.
AcceptheaderoptionalAlways returns JSON. application/json is assumed.

Financial request example:

curl -X POST https://vaultrixauto.com.ng/api/v1/data \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"plan_code":"mtn-1gb-30d","network":"mtn","destination":"08123456789"}'

Read endpoints

MethodPathPurpose
GET /services List the services enabled for your account
GET /wallet/balance Current wallet balance
GET /transactions List your transactions (optional status filter)
GET /transactions/{id} Retrieve a single transaction
GET /transactions/{id}/status Retrieve and refresh transaction status

GET /services returns the active catalogue. Each item is { code, name, category } — use these codes with the purchase endpoints below.

{
  "status": "success",
  "code": "200",
  "success": true,
  "message": "Services retrieved successfully",
  "request_id": "REQ-…",
  "data": [
    { "code": "data", "name": "Data", "category": "data" },
    { "code": "airtime", "name": "Airtime", "category": "airtime" }
  ]
}

Purchase services

Idempotency-Key required

Each service shares the same envelope and lifecycle. The body fields that differ per service are documented in full below. Every purchase returns 201 with the created transaction.

Data

POST

Buy a mobile data bundle for a phone number on a supported network.

Endpoint: POST /data

FieldTypeRequiredDescription
plan_codestringrequiredThe bundle plan slug (e.g. mtn-1gb-30d). Retrieve valid codes from GET /services.
networkstringrequiredNetwork slug: mtn, glo, airtel or 9mobile.
destinationstringrequiredRecipient phone number. Normalised to the 11-digit Nigerian format.
plan_typestringoptionalOptional data type discriminator (e.g. gifting, sme) when a network exposes multiple plan types.

Request body

{
    "plan_code": "mtn-1gb-30d",
    "network": "mtn",
    "destination": "08123456789"
}

cURL

curl -X POST https://vaultrixauto.com.ng/api/v1/data \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"plan_code":"mtn-1gb-30d","network":"mtn","destination":"08123456789"}'

Airtime

POST

Top up airtime of any amount on a supported network.

Endpoint: POST /airtime

FieldTypeRequiredDescription
amountdecimalrequiredAirtime value in Naira (e.g. 500). Validated server-side against your wallet.
networkstringrequiredNetwork slug: mtn, glo, airtel or 9mobile.
destinationstringrequiredRecipient phone number, normalised to the 11-digit Nigerian format.

Request body

{
    "amount": "500",
    "network": "mtn",
    "destination": "08123456789"
}

cURL

curl -X POST https://vaultrixauto.com.ng/api/v1/airtime \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"amount":"500","network":"mtn","destination":"08123456789"}'

Electricity

POST

Pay a prepaid or postpaid electricity bill. Verify the meter first with POST /electricity/verify. On success the transaction object carries the prepaid token and units.

Endpoint: POST /electricity

FieldTypeRequiredDescription
discostringrequiredDistribution company slug (e.g. ikedc, ekedc, aedc, phed, kaedco).
meter_numberstringrequiredMeter number. Digits only, 11–14 characters.
meter_typestringrequiredprepaid or postpaid.
amountdecimalrequiredBill amount in Naira.

Request body

{
    "disco": "ikedc",
    "meter_number": "04123456789",
    "meter_type": "prepaid",
    "amount": "5000"
}

cURL

curl -X POST https://vaultrixauto.com.ng/api/v1/electricity \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"disco":"ikedc","meter_number":"04123456789","meter_type":"prepaid","amount":"5000"}'

Cable TV

POST

Renew a cable TV subscription. Verify the smartcard first with POST /cable/verify.

Endpoint: POST /cable

FieldTypeRequiredDescription
cable_providerstringrequiredProvider slug: dstv, gotv, startimes or showmax.
smartcard_numberstringrequiredSmartcard / IUC number. Digits only, 10–14 characters.
productstringrequiredBouquet subscription code from GET /services.

Request body

{
    "cable_provider": "dstv",
    "smartcard_number": "1234567890",
    "product": "dstv-compact"
}

cURL

curl -X POST https://vaultrixauto.com.ng/api/v1/cable \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"cable_provider":"dstv","smartcard_number":"1234567890","product":"dstv-compact"}'

Exam PINs

POST

Purchase examination scratch-card PINs (e.g. WAEC, JAMB, NECO). On success the transaction object carries the purchased pins (each with pin and serial).

Endpoint: POST /exam

FieldTypeRequiredDescription
exam_typestringrequiredExamination body (e.g. waec, neco, jamb).
productstringrequiredThe exam product / plan code (e.g. waec-pin).
quantityintegeroptionalNumber of PINs to buy, 1–100. Defaults to 1.
phonestringoptionalOptional phone or reference the PIN is associated with (max 40 chars).

Request body

{
    "exam_type": "waec",
    "product": "waec-pin",
    "quantity": 2
}

cURL

curl -X POST https://vaultrixauto.com.ng/api/v1/exam \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"exam_type":"waec","product":"waec-pin","quantity":2}'

Bulk SMS

POST

Send a bulk SMS campaign to one or many recipients.

Endpoint: POST /bulk-sms

FieldTypeRequiredDescription
sender_idstringrequiredAlphanumeric sender ID shown to recipients (max 20 chars).
messagestringrequiredMessage body (max 1000 chars). Billed per 160-character segment per recipient.
recipientsstringrequiredComma- or newline-separated list of recipient phone numbers.

Request body

{
    "sender_id": "MYBRAND",
    "message": "Your OTP is 123456. Do not share it.",
    "recipients": "08123456789,08098765432"
}

cURL

curl -X POST https://vaultrixauto.com.ng/api/v1/bulk-sms \\
  -H "Authorization: Bearer $API_KEY" \\
  -H "Idempotency-Key: 8f2c1a9e-7b44-4d10-9c33-5e6f7a8b9c0d" \\
  -H "Content-Type: application/json" \\
  -d '{"sender_id":"MYBRAND","message":"Your OTP is 123456. Do not share it.","recipients":"08123456789,08098765432"}'

Wallet balance

GET

Endpoint: GET /wallet/balance

Returns your account wallet balance in Naira. Your wallet is charged on each successful purchase.

{
  "status": "success",
  "code": "200",
  "success": true,
  "message": "Balance retrieved successfully",
  "request_id": "REQ-…",
  "data": { "balance": "12500.00", "currency": "NGN" }
}

Transactions

List and inspect the transactions on your account. Every purchase response and every list item uses the same transaction object.

FieldTypeRequiredDescription
statusqueryoptionalFilter GET /transactions by state: pending, processing, successful, failed, reversed, refunded, cancelled, unknown.
{id}pathrequiredThe transaction UUID returned when a purchase was created.

Transaction object

{
  "transaction_id": "a1b2c3d4-…",
  "reference": "TXN-…",
  "request_id": "REQ-…",
  "amount": "1000.00",
  "status": "pending",
  "service": "data",
  "provider": "example-provider",
  "provider_reference": null,
  "failure_reason": null,
  "created_at": "2026-01-01 12:00:00",
  "completed_at": null
}

Status endpoint — GET /transactions/{id}/status

Actively re-checks a pending/processing/unknown transaction against the provider before replying.

{
  "status": "success",
  "code": "200",
  "message": "Status retrieved successfully",
  "request_id": "REQ-…",
  "data": {
    "transaction_id": "a1b2c3d4-…",
    "reference": "TXN-…",
    "status": "successful",
    "provider": "example-provider",
    "provider_reference": "PRV-998877"
  }
}

Meter & smartcard verification

Confirm a customer's name and details before charging them. Verification is performed server-side through the same provider routing chain as a purchase — unsupported lookups are reported honestly, never faked.

FieldTypeRequiredDescription
meter_numberstringoptionalRequired for electricity: the meter number, digits only.
smartcard_numberstringoptionalRequired for cable: the smartcard / IUC number, digits only.
discostringoptionalRequired for electricity: the distribution company slug.
meter_typestringoptionalRequired for electricity: prepaid or postpaid.
cable_providerstringoptionalRequired for cable: dstv, gotv, startimes or showmax.

Endpoints: POST /electricity/verify · POST /cable/verify

{
  "status": "success",
  "code": "200",
  "message": "Verification completed",
  "request_id": "REQ-…",
  "data": {
    "status": "found",
    "provider": "example-provider",
    "customer": { "name": "JOHN DOE", "address": "12 Example Street", "meter_type": "prepaid" }
  }
}

Webhooks

When a transaction reaches a terminal state (successful, failed, refunded or reversed) a signed payload is queued to your configured endpoint. Deliveries are idempotent and retried with backoff (30s → 2m → 10m → 30m → 2h, max 5 attempts).

FieldTypeRequiredDescription
X-VTU-EventheaderrequiredEvent name, e.g. transaction.successful.
X-VTU-DeliveryheaderrequiredUnique delivery id — use it for consumer-side idempotency.
X-VTU-SignatureheaderrequiredHMAC-SHA256 of the raw JSON body using your signing secret. Verify before acting.

Inbound gateway funding webhooks are configured at /api/v1/webhooks/{provider}/{token} and verified with a per-gateway HMAC signature header. The token is a random per-gateway value; repeat events are acknowledged as already processed.

Mobile API

/api/mobile/v1

A separate bearer-token surface for customer apps. Tokens are bound to the resolved user row and are not interchangeable with Main API keys.

MethodPathPurpose
POST /login Create a short-lived mobile user token
POST /register Create a user account and mobile token
GET /profile Read the authenticated profile
GET /wallet Read the authenticated wallet
GET /services List effective services
GET /transactions List the authenticated user’s transactions
GET /transactions/{uuid} Read one authenticated user transaction
POST /{service} Submit an idempotent service request
POST /logout Revoke the current mobile token

Success response

{
  "status": "success",
  "code": "201",
  "success": true,
  "message": "Transaction accepted",
  "request_id": "REQ-…",
  "transaction_id": "a1b2c3d4-…",
  "data": { "reference": "TXN-…", "status": "pending", "amount": "1000.00" }
}

Error response

{
  "status": "error",
  "code": "422",
  "success": false,
  "message": "Enter a valid amount.",
  "request_id": "REQ-…",
  "error_code": "validation_failed",
  "errors": { "amount": "Invalid amount." }
}

Known error_code values: missing_api_key, validation_failed, missing_idempotency_key, not_found, rate_limited, invalid_signature, service_unavailable, account_not_found.

Status codes

200 / 201Success
401Missing, invalid, revoked or expired key
403Account suspended or service disabled
404Route or resource not found
422Validation error
429Rate limit exceeded
503Service temporarily unavailable

Rate limits

Requests are limited per API credential (default 120/minute; 10/minute for purchases). Exceeding the limit returns 429 with error_code: rate_limited and a Retry-After header.

Transaction states

pendingprocessingsuccessfulfailedreversedrefundedcancelledunknown

A pending or unknown response is never a failure — and never a safe retry condition. Poll /transactions/{id}/status or wait for a signed webhook first.