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.
On this page
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
| Field | Type | Required | Description |
|---|---|---|---|
| Content-Type | header | required | Send JSON bodies as application/json. Form-encoded bodies are also accepted. |
| Authorization | header | required | Bearer API key: Bearer vtu_…. |
| Idempotency-Key | header | required | Required 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-Id | header | optional | Optional client correlation id. Echoed back on every response; generated when omitted. |
| Accept | header | optional | Always 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
| Method | Path | Purpose |
|---|---|---|
| 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 requiredEach 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
POSTBuy a mobile data bundle for a phone number on a supported network.
Endpoint: POST /data
| Field | Type | Required | Description |
|---|---|---|---|
| plan_code | string | required | The bundle plan slug (e.g. mtn-1gb-30d). Retrieve valid codes from GET /services. |
| network | string | required | Network slug: mtn, glo, airtel or 9mobile. |
| destination | string | required | Recipient phone number. Normalised to the 11-digit Nigerian format. |
| plan_type | string | optional | Optional 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
POSTTop up airtime of any amount on a supported network.
Endpoint: POST /airtime
| Field | Type | Required | Description |
|---|---|---|---|
| amount | decimal | required | Airtime value in Naira (e.g. 500). Validated server-side against your wallet. |
| network | string | required | Network slug: mtn, glo, airtel or 9mobile. |
| destination | string | required | Recipient 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
POSTPay 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
| Field | Type | Required | Description |
|---|---|---|---|
| disco | string | required | Distribution company slug (e.g. ikedc, ekedc, aedc, phed, kaedco). |
| meter_number | string | required | Meter number. Digits only, 11–14 characters. |
| meter_type | string | required | prepaid or postpaid. |
| amount | decimal | required | Bill 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
POSTRenew a cable TV subscription. Verify the smartcard first with POST /cable/verify.
Endpoint: POST /cable
| Field | Type | Required | Description |
|---|---|---|---|
| cable_provider | string | required | Provider slug: dstv, gotv, startimes or showmax. |
| smartcard_number | string | required | Smartcard / IUC number. Digits only, 10–14 characters. |
| product | string | required | Bouquet 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
POSTPurchase 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
| Field | Type | Required | Description |
|---|---|---|---|
| exam_type | string | required | Examination body (e.g. waec, neco, jamb). |
| product | string | required | The exam product / plan code (e.g. waec-pin). |
| quantity | integer | optional | Number of PINs to buy, 1–100. Defaults to 1. |
| phone | string | optional | Optional 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
POSTSend a bulk SMS campaign to one or many recipients.
Endpoint: POST /bulk-sms
| Field | Type | Required | Description |
|---|---|---|---|
| sender_id | string | required | Alphanumeric sender ID shown to recipients (max 20 chars). |
| message | string | required | Message body (max 1000 chars). Billed per 160-character segment per recipient. |
| recipients | string | required | Comma- 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
GETEndpoint: 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.
| Field | Type | Required | Description |
|---|---|---|---|
| status | query | optional | Filter GET /transactions by state: pending, processing, successful, failed, reversed, refunded, cancelled, unknown. |
| {id} | path | required | The 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.
| Field | Type | Required | Description |
|---|---|---|---|
| meter_number | string | optional | Required for electricity: the meter number, digits only. |
| smartcard_number | string | optional | Required for cable: the smartcard / IUC number, digits only. |
| disco | string | optional | Required for electricity: the distribution company slug. |
| meter_type | string | optional | Required for electricity: prepaid or postpaid. |
| cable_provider | string | optional | Required 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).
| Field | Type | Required | Description |
|---|---|---|---|
| X-VTU-Event | header | required | Event name, e.g. transaction.successful. |
| X-VTU-Delivery | header | required | Unique delivery id — use it for consumer-side idempotency. |
| X-VTU-Signature | header | required | HMAC-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/v1A separate bearer-token surface for customer apps. Tokens are bound to the resolved user row and are not interchangeable with Main API keys.
| Method | Path | Purpose |
|---|---|---|
| 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
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
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.