← Developer Guides

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:

  1. List categories — e.g. electricity, cabletv, betting, education
  2. List billers in a category — e.g. ikeele (Ikeja Electric), dstv, msport
  3. List products for a biller — e.g. prepaid, postpaid, a cable package
  4. 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's currency_code and 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)ProductsPricing
Electricity (electricity)Ikeja Electric (ikeele), Eko (ekoele), Abuja Prepaid (abuja_electric_prepaid), Benin (benele)prepaid, postpaidVariable (you send amount)
Cable TV (cabletv)DSTV (dstv), GOtv (gotv), StarTimes (startimes)Named packagesFixed (price from product)
Betting (betting)MSport (msport), BetBonanza (betbonanza), Parimatch (parimatch), LiveScoreBet (livescorebet)top-upVariable (you send amount)
Education (education)JAMB (jamb), WAEC (waec), NECO (neco), NABTEB (nabteb)UTME/Mock, Result PIN, RegistrationFixed or provider-priced

List Bill Categories#

GET /api/v1/bills/categories

Returns the bill categories available to you.

cURL
curl -X GET https://{your-domain}/api/v1/bills/categories \
  -H "Authorization: Bearer sk_live_your_secret_key"
JavaScript
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#

JSON
{
  "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" }
  ]
}
FieldTypeDescription
idstringCategory ULID.
slugstringStable identifier — use it in the next call's path.
namestringDisplay name.
descriptionstringShort description.
statusstringactive 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
curl -X GET https://{your-domain}/api/v1/bills/categories/electricity/billers \
  -H "Authorization: Bearer sk_live_your_secret_key"
JavaScript
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#

JSON
{
  "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" }
  ]
}
FieldTypeDescription
idstringBiller ULID.
slugstringUse it in the product-lookup and purchase paths.
namestringDisplay name.
statusstringactive 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
curl -X GET https://{your-domain}/api/v1/bills/categories/electricity/billers/ikeele/products \
  -H "Authorization: Bearer sk_live_your_secret_key"
Python
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#

JSON
{
  "products": [
    { "id": "01h...", "slug": "prepaid", "name": "PREPAID", "amount": 0, "status": "active" },
    { "id": "01h...", "slug": "postpaid", "name": "POSTPAID", "amount": 0, "status": "active" }
  ]
}
FieldTypeDescription
idstringProduct ULID.
slugstringUse it in the validate/purchase paths.
namestringDisplay name.
amountintegerFixed price in the smallest currency unit, or 0 if variable (see below).
statusstringactive 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 with AMOUNT_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 send amount on 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
curl -X GET https://{your-domain}/api/v1/bills/categories/cabletv/billers/gotv/products \
  -H "Authorization: Bearer sk_live_your_secret_key"
JSON
{
  "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
curl -X GET https://{your-domain}/api/v1/bills/categories/cabletv/billers/dstv/products \
  -H "Authorization: Bearer sk_live_your_secret_key"
JSON
{
  "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
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"
  }'
JavaScript
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();
Python
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#

ParameterTypeRequiredDescription
customer_idstringYesCustomer identifier (meter number, smartcard number, betting account ID, JAMB profile code)
extra_fieldsobjectNoExtra provider inputs some billers require. JAMB requires profileType (UTME or DE).

Response#

JSON
{
  "success": true,
  "valid": true,
  "customer_id": "333333333",
  "customer_name": "PETER PAUL",
  "reference": null
}
FieldTypeDescription
successbooleantrue when the lookup completed.
validbooleanWhether the provider recognized the customer.
customer_idstringThe identifier you sent, echoed back.
customer_namestring | nullThe registered account holder's name, or null if the provider doesn't return one.
referencestring | nullProvider 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:

JSON
{
  "success": true,
  "valid": true,
  "validation_required": false
}

JAMB needs a profile type at validation:

cURL
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
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
  }'
JavaScript
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();
Python
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())
PHP
$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
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#

ParameterTypeRequiredDescription
customer_idstringYesCustomer identifier (meter number, smartcard, betting account, etc.)
amountintegerConditionalAmount 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_fieldsobjectNoProvider inputs some billers require (see below).
idempotency_keystringNoUnique 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:

BillerFieldNotes
JAMBprofileTypeUTME or DE. Fixed fee — no amount.
WAEC RegistrationnoOfCandidate, email, phoneNumberProvider-priced: noOfCandidate drives the total computed at validation. Do not send amount.
WAEC Result Checker PINemail, phoneNumberFixed fee. The purchased PIN is returned in the response.

Response#

200, whether this request made the payment or replayed it:

JSON
{
  "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
}
FieldTypeDescription
idstringThe purchase ULID. Use it with GET /purchases/{id} to poll status.
titlestring | nullA display label, when one is recorded. Often null; do not rely on it.
amountintegerThe bill amount charged, in the smallest currency unit.
feeintegerFee applied, in the smallest currency unit (0 if none).
amount_paidintegerTotal debited from your wallet (amount + fee), smallest unit.
currency_codestringISO 4217 currency of the amounts.
statusstringsuccess, processing, or failed (see below).
provider_referencestring | nullThe biller's reference for the transaction.
provider_dataobject | nullProvider 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.
monthsintegerOnly on a bill billed by the month (cable TV): the months it covers.
is_testbooleantrue for a payment made with your test key.
created_atintegerUnix timestamp (seconds).

Status: success means the biller was paid. processing means the payment was accepted but not yet confirmed by the biller — it settles asynchronously. Subscribe to the purchase.success / purchase.failed webhooks (or poll GET /purchases/{id}) for the final state. Bill payments are not auto-refunded once processing. If the biller still has not confirmed either way after repeated checks, GET /purchases/{id} shows review: the payment is held for a person to settle against the biller's records, your wallet stays debited, and it ends as success or failed (refunded). Webhooks announce it as purchase.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
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:

JSON
{
  "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 amount for 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.
  • validate is always safe to call — it never charges, in test or live — so use it to confirm a customer_id is well-formed before wiring up the purchase.
  • The test response is the live response. Same fields, same status codes; only is_test differs. 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
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#

CodeError CodeDescription
402INSUFFICIENT_BALANCEWallet balance too low
404NOT_FOUNDCategory, biller, or product slug not recognized
422AMOUNT_OUT_OF_RANGEamount outside the product's allowed range
422Validation errorMissing customer_id or a required extra_fields value
429DAILY_LIMIT_REACHEDDaily transaction limit exceeded
429LIMIT_EXCEEDEDThe 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
409LIMIT_CHECK_BUSYAnother 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
400PROVIDER_REJECTEDThe biller rejected the request

Error Response Format#

JSON
{
  "success": false,
  "message": "Amount is outside the allowed range for this product",
  "code": "AMOUNT_OUT_OF_RANGE"
}