Bills API#
Pay bills for any supported biller — electricity, cable TV, betting, and education. Payments are debited from your wallet balance.
Unlike airtime and data, the bills catalog is a three-level tree: category → biller → product. Every request path is built from slugs you discover by walking the tree, so you never hard-code IDs. The flow is always:
- List categories — e.g.
electricity,cabletv,betting,education - List billers in a category — e.g.
ikeele(Ikeja Electric),dstv,msport - List products for a biller — e.g.
prepaid,postpaid, a cable package - Validate the customer (optional, read-only) then pay
Note: All amounts are integers in the smallest unit of the transaction's currency (kobo for NGN, so
500000= ₦5,000.00). The platform is multi-currency — read each amount'scurrency_codeand use that currency's minor unit rather than assuming a factor of 100. See Amounts & Currency.
Catalog at a Glance#
The exact list is tenant- and provider-specific — always read it live from the endpoints below — but here's what the tree looks like:
Category (slug) | Example billers (slug) | Products | Pricing |
|---|---|---|---|
Electricity (electricity) | Ikeja Electric (ikeele), Eko (ekoele), Abuja Prepaid (abuja_electric_prepaid), Benin (benele) | prepaid, postpaid | Variable (you send amount) |
Cable TV (cabletv) | DSTV (dstv), GOtv (gotv), StarTimes (startimes) | Named packages | Fixed (price from product) |
Betting (betting) | MSport (msport), BetBonanza (betbonanza), Parimatch (parimatch), LiveScoreBet (livescorebet) | top-up | Variable (you send amount) |
Education (education) | JAMB (jamb), WAEC (waec), NECO (neco), NABTEB (nabteb) | UTME/Mock, Result PIN, Registration | Fixed or provider-priced |
List Bill Categories#
GET /api/v1/bills/categories
Returns the bill categories available to you.
curl -X GET https://{your-domain}/api/v1/bills/categories \
-H "Authorization: Bearer sk_live_your_secret_key"const response = await fetch(
"https://{your-domain}/api/v1/bills/categories",
{
headers: { Authorization: "Bearer sk_live_your_secret_key" },
}
);
const data = await response.json();Response#
{
"categories": [
{ "id": "01h...", "slug": "electricity", "name": "Electricity", "description": "Electricity bill payments.", "status": "active" },
{ "id": "01h...", "slug": "cabletv", "name": "Cable TV Bills", "description": "Cable TV bill payments.", "status": "active" },
{ "id": "01h...", "slug": "betting", "name": "Betting", "description": "Betting wallet funding.", "status": "active" },
{ "id": "01h...", "slug": "education", "name": "Education", "description": "Education payments.", "status": "active" }
]
}| Field | Type | Description |
|---|---|---|
id | string | Category ULID. |
slug | string | Stable identifier — use it in the next call's path. |
name | string | Display name. |
description | string | Short description. |
status | string | active or inactive. |
Use the slug of each category in the next call.
List Billers in a Category#
GET /api/v1/bills/categories/{category}/billers
curl -X GET https://{your-domain}/api/v1/bills/categories/electricity/billers \
-H "Authorization: Bearer sk_live_your_secret_key"const response = await fetch(
"https://{your-domain}/api/v1/bills/categories/electricity/billers",
{
headers: { Authorization: "Bearer sk_live_your_secret_key" },
}
);
const billers = await response.json();Response#
{
"billers": [
{ "id": "01h...", "slug": "ikeele", "name": "Ikeja Electric", "status": "active" },
{ "id": "01h...", "slug": "ekoele", "name": "Eko Electric", "status": "active" },
{ "id": "01h...", "slug": "benele", "name": "Benin Electric", "status": "active" },
{ "id": "01h...", "slug": "abuja_electric_prepaid", "name": "Abuja Electric Prepaid", "status": "active" }
]
}| Field | Type | Description |
|---|---|---|
id | string | Biller ULID. |
slug | string | Use it in the product-lookup and purchase paths. |
name | string | Display name. |
status | string | active or inactive. |
The same call for other categories returns, for example, dstv / gotv / startimes under cabletv, msport / betbonanza / parimatch under betting, and jamb / waec / neco under education.
List Products for a Biller#
GET /api/v1/bills/categories/{category}/billers/{biller}/products
curl -X GET https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products \
-H "Authorization: Bearer sk_live_your_secret_key"import requests
response = requests.get(
"https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products",
headers={"Authorization": "Bearer sk_live_your_secret_key"},
)
print(response.json())Response#
{
"products": [
{ "id": "01h...", "slug": "prepaid", "name": "PREPAID", "amount": 0, "status": "active" },
{ "id": "01h...", "slug": "postpaid", "name": "POSTPAID", "amount": 0, "status": "active" }
]
}| Field | Type | Description |
|---|---|---|
id | string | Product ULID. |
slug | string | Use it in the validate/purchase paths. |
name | string | Display name. |
amount | integer | Fixed price in the smallest currency unit, or 0 if variable (see below). |
status | string | active or inactive. |
The amount field (in the smallest currency unit, e.g. kobo for NGN) tells you how to pay:
amount: 0→ variable-amount. You choose the amount and send it on purchase (e.g. electricity, betting). The accepted range is enforced server-side — an out-of-range value is rejected withAMOUNT_OUT_OF_RANGE.amount > 0→ fixed-price. That value (smallest unit) is the price (e.g. a cable TV package, a JAMB fee). Do not sendamounton purchase; the product price is used.
Example: cable TV packages#
Cable billers expose each subscription tier as a fixed-price product. Listing the products for gotv returns its packages with their prices (smallest unit):
curl -X GET https://{your-domain}/api/v1/bills/categories/cabletv/billers/gotv/products \
-H "Authorization: Bearer sk_live_your_secret_key"{
"products": [
{ "id": "01h...", "slug": "gotv-lite-for-1575-1-month", "name": "GOTV LITE FOR 1575 (1 MONTH)", "amount": 157500, "status": "active" },
{ "id": "01h...", "slug": "gotv-jinja-for-1900-1-month", "name": "GOTV JINJA FOR 1,900 (1 MONTH)", "amount": 190000, "status": "active" },
{ "id": "01h...", "slug": "gotv-jolli-for-2800-1-month", "name": "GOTV JOLLI FOR 2,800 (1 MONTH)", "amount": 280000, "status": "active" },
{ "id": "01h...", "slug": "gotv-max-for-4850-1-month", "name": "GOTV MAX FOR 4,850 (1 MONTH)", "amount": 485000, "status": "active" },
{ "id": "01h...", "slug": "gotv-supa-for-6400-1-month", "name": "GOTV SUPA FOR 6,400 (1 MONTH)", "amount": 640000, "status": "active" }
]
}dstv works the same way — swap the biller slug:
curl -X GET https://{your-domain}/api/v1/bills/categories/cabletv/billers/dstv/products \
-H "Authorization: Bearer sk_live_your_secret_key"{
"products": [
{ "id": "01h...", "slug": "dstv-confam-showmax-for-6750-1-month", "name": "DSTV Confam + Showmax FOR 6,750 (1 MONTH)", "amount": 675000, "status": "active" },
{ "id": "01h...", "slug": "dstv-compact-showmax-for-11950-1-month", "name": "DSTV Compact + Showmax FOR 11,950 (1 MONTH)", "amount": 1195000, "status": "active" },
{ "id": "01h...", "slug": "dstv-compactplus-showmax-for-18050-1-month","name": "DSTV CompactPlus + Showmax FOR 18,050 (1 MONTH)","amount": 1805000, "status": "active" },
{ "id": "01h...", "slug": "dstv-premium-showmax-for-24500-1-month", "name": "DSTV Premium + Showmax FOR 24,500 (1 MONTH)", "amount": 2450000, "status": "active" }
]
}Each package's amount is its fixed price — pay it by posting to that product's slug with the customer's smartcard number and no amount (see Pay a Bill).
Validate a Customer#
POST /api/v1/bills/categories/{category}/billers/{biller}/products/{product}/validate
Confirms a customer identifier (meter number, smartcard, betting account, JAMB profile) with the provider and returns the registered name, so you can show it for confirmation before paying. It is read-only — it never debits the wallet or creates a purchase. Billers without a pre-purchase lookup return valid: true with validation_required: false.
curl -X POST https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/validate \
-H "Authorization: Bearer sk_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "333333333"
}'const response = await fetch(
"https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/validate",
{
method: "POST",
headers: {
Authorization: "Bearer sk_live_your_secret_key",
"Content-Type": "application/json",
},
body: JSON.stringify({ customer_id: "333333333" }),
}
);
const result = await response.json();import requests
response = requests.post(
"https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/validate",
headers={"Authorization": "Bearer sk_live_your_secret_key"},
json={"customer_id": "333333333"},
)
print(response.json())Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string | Yes | Customer identifier (meter number, smartcard number, betting account ID, JAMB profile code) |
extra_fields | object | No | Extra provider inputs some billers require. JAMB requires profileType (UTME or DE). |
Response#
{
"success": true,
"valid": true,
"customer_id": "333333333",
"customer_name": "PETER PAUL",
"reference": null
}| Field | Type | Description |
|---|---|---|
success | boolean | true when the lookup completed. |
valid | boolean | Whether the provider recognized the customer. |
customer_id | string | The identifier you sent, echoed back. |
customer_name | string | null | The registered account holder's name, or null if the provider doesn't return one. |
reference | string | null | Provider validation reference, if any. |
Billers with no pre-purchase lookup return a confirmation without a name — there's nothing to validate, so you can pay directly:
{
"success": true,
"valid": true,
"validation_required": false
}JAMB needs a profile type at validation:
curl -X POST https://{your-domain}/api/v1/bills/categories/education/billers/jamb/products/jamb-utme-mock/validate \
-H "Authorization: Bearer sk_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "1561333476",
"extra_fields": { "profileType": "UTME" }
}'Pay a Bill#
POST /api/v1/bills/categories/{category}/billers/{biller}/products/{product}/purchase
Debits your wallet and pays the biller for the customer.
Variable-amount example (electricity)#
curl -X POST https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/purchase \
-H "Authorization: Bearer sk_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "333333333",
"amount": 500000
}'const response = await fetch(
"https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/purchase",
{
method: "POST",
headers: {
Authorization: "Bearer sk_live_your_secret_key",
"Content-Type": "application/json",
},
body: JSON.stringify({ customer_id: "333333333", amount: 500000 }),
}
);
const result = await response.json();import requests
response = requests.post(
"https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/purchase",
headers={"Authorization": "Bearer sk_live_your_secret_key"},
json={"customer_id": "333333333", "amount": 500000},
)
print(response.json())$response = Http::withToken('sk_live_your_secret_key')
->post('https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/purchase', [
'customer_id' => '333333333',
'amount' => 500000,
]);Fixed-price example (cable TV — no amount)#
curl -X POST https://{your-domain}/api/v1/bills/categories/cabletv/billers/gotv/products/gotv-lite-for-1575-1-month/purchase \
-H "Authorization: Bearer sk_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "1212121212"
}'Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string | Yes | Customer identifier (meter number, smartcard, betting account, etc.) |
amount | integer | Conditional | Amount in the smallest currency unit (kobo for NGN). Required for variable-amount billers, within the product's range. Omit for fixed-price products (the product price is used). |
extra_fields | object | No | Provider inputs some billers require (see below). |
idempotency_key | string | No | Unique key (max 64 chars) — re-sending it returns the original purchase instead of charging again. You can send it as the Idempotency-Key header instead (the same key). |
extra_fields by biller:
| Biller | Field | Notes |
|---|---|---|
| JAMB | profileType | UTME or DE. Fixed fee — no amount. |
| WAEC Registration | noOfCandidate, email, phoneNumber | Provider-priced: noOfCandidate drives the total computed at validation. Do not send amount. |
| WAEC Result Checker PIN | email, phoneNumber | Fixed fee. The purchased PIN is returned in the response. |
Response#
200, whether this request made the payment or replayed it:
{
"id": "01kw463z1czwnst3yknbkzczn2",
"title": null,
"amount": 500000,
"fee": 0,
"amount_paid": 500000,
"currency_code": "NGN",
"status": "success",
"provider_reference": "MATT26430526062710210955085474",
"provider_data": null,
"is_test": false,
"created_at": 1751270400
}| Field | Type | Description |
|---|---|---|
id | string | The purchase ULID. Use it with GET /purchases/{id} to poll status. |
title | string | null | A display label, when one is recorded. Often null; do not rely on it. |
amount | integer | The bill amount charged, in the smallest currency unit. |
fee | integer | Fee applied, in the smallest currency unit (0 if none). |
amount_paid | integer | Total debited from your wallet (amount + fee), smallest unit. |
currency_code | string | ISO 4217 currency of the amounts. |
status | string | success, processing, or failed (see below). |
provider_reference | string | null | The biller's reference for the transaction. |
provider_data | object | null | Provider payload. For PIN-vending billers (e.g. WAEC Result Checker) this carries the purchased PIN — it is the product. null for billers that deliver out-of-band. |
months | integer | Only on a bill billed by the month (cable TV): the months it covers. |
is_test | boolean | true for a payment made with your test key. |
created_at | integer | Unix timestamp (seconds). |
Status:
successmeans the biller was paid.processingmeans the payment was accepted but not yet confirmed by the biller — it settles asynchronously. Subscribe to thepurchase.success/purchase.failedwebhooks (or pollGET /purchases/{id}) for the final state. Bill payments are not auto-refunded onceprocessing. If the biller still has not confirmed either way after repeated checks,GET /purchases/{id}showsreview: the payment is held for a person to settle against the biller's records, your wallet stays debited, and it ends assuccessorfailed(refunded). Webhooks announce it aspurchase.processing.
Testing#
Use your test key (sk_test_) while developing. In test mode the catalog is identical, but purchases are simulated — no money leaves your wallet and no real bill is paid.
curl -X POST https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/purchase \
-H "Authorization: Bearer sk_test_your_test_key" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "333333333",
"amount": 500000
}'A test purchase answers exactly what a live one does (see Pay a Bill), with "is_test": true:
{
"id": "01kw463z1czwnst3yknbkzczn2",
"title": null,
"amount": 500000,
"fee": 0,
"amount_paid": 500000,
"currency_code": "NGN",
"status": "success",
"provider_reference": null,
"provider_data": null,
"is_test": true,
"created_at": 1751270400
}Notes for testing:
- Still send
amountfor variable-amount billers — validation runs in test mode too, so an out-of-range or missing amount is rejected exactly as in live. - Walk the catalog first. Slugs differ per tenant; list categories → billers → products and copy the real slugs rather than guessing.
validateis always safe to call — it never charges, in test or live — so use it to confirm acustomer_idis well-formed before wiring up the purchase.- The test response is the live response. Same fields, same status codes; only
is_testdiffers. Code written against your test key needs no change for your live key.
Switch to sk_live_ keys only in production. See Authentication for managing keys.
Idempotency#
Bill payments move money, so guard retries with an idempotency key — the Idempotency-Key header or the idempotency_key body field (the same key; if you send both, they must match, or the request is refused with 422 and nothing is charged). Re-sending a request with the same key returns the original purchase instead of charging again:
curl -X POST https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products/postpaid/purchase \
-H "Authorization: Bearer sk_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "333333333",
"amount": 500000,
"idempotency_key": "order-7f3a9c-2024-01-15"
}'Use a key that is unique per logical payment (e.g. your own order ID) — not per HTTP attempt — so a network retry of the same order reuses it.
Error Codes#
| Code | Error Code | Description |
|---|---|---|
402 | INSUFFICIENT_BALANCE | Wallet balance too low |
404 | NOT_FOUND | Category, biller, or product slug not recognized |
422 | AMOUNT_OUT_OF_RANGE | amount outside the product's allowed range |
422 | Validation error | Missing customer_id or a required extra_fields value |
429 | DAILY_LIMIT_REACHED | Daily transaction limit exceeded |
429 | LIMIT_EXCEEDED | The amount is below a minimum, above a per-transaction limit, or above what is left of a daily or monthly limit. Nothing was charged. The limit object says which bound (source, bound, limit_minor, currency_code, and for daily/monthly the remaining_minor and resets_at); see the API reference. Earlier releases answered this with HTTP 500 |
409 | LIMIT_CHECK_BUSY | Another purchase on your account was being checked against its daily or monthly limit. Nothing was charged; retry the same request, with the same idempotency key |
400 | PROVIDER_REJECTED | The biller rejected the request |
Error Response Format#
{
"success": false,
"message": "Amount is outside the allowed range for this product",
"code": "AMOUNT_OUT_OF_RANGE"
}