Bill payments
Buy airtime, data, cable TV, electricity, exam pins and international airtime for your users, paid from your available balance.
curl https://api.paymonetra.com/v1/bills/services \
-H "Authorization: Bearer sk_test_..."#Who can use it
- Test keys: always. Nothing real is bought, and the test balance is spent.
- Live keys: Paymonetra switches it on for your business after a review. Test keys work straight away. Purchases and account checks are also accepted only from your listed server IPs (the same list as transfers, refunds and card issuing, on the dashboard under Developers, Server IPs).
#Reference and retries
A request refused before anything was bought (validation, limit, balance) does not use up its reference.
#Money
- Each purchase comes out of the available balance (
GET /balance→collected.ready). amountis the face value delivered.chargedis what came out of the balance.- By default
chargedequalsamount. A business can be given its own discount per service (seediscount_pctinGET /bills/services). - International airtime is priced in naira from a quote.
- One daily limit covers all live API bill payments, in naira charged. A purchase that would pass it answers
422 daily_limit. - A failed purchase never stays charged. Either nothing was taken, or it went back the moment it failed.
#The bill object
{
"id": "MB3F9A1C0D2E4B5A6C7D",
"reference": "order-1042",
"service": "electricity",
"status": "successful",
"biller": "Ikeja Electric",
"recipient": "45012345678",
"recipient_name": "ADA OBI",
"plan": "Prepaid",
"amount": 5000,
"charged": 5000,
"currency": "NGN",
"mode": "live",
"created_at": "2026-11-28T10:15:02+01:00",
"completed_at": "2026-11-28T10:15:05+01:00",
"token": "1234-5678-9012-3456-7890",
"units": "52.3kWh"
}status is one of:
successful: delivered;processing: we are confirming it with the network, and the result follows by webhook, usually within 30 minutes;failed: nothing delivered, and the balance is not charged. It carriesfailure_reason.
A bill shown successful can later turn failed if the provider reverses it. The money then returns to the balance, and bill.failed is sent.
Fields by service:
- electricity:
token(prepaid;nullon postpaid, or while a token is still being fetched) andunits. - exam:
quantity,pins(array) andserials(array). - international_airtime:
amount_usd,country,delivered(for example"500.00 GHS") andvoucher_pin(operators that deliver a voucher instead of airtime). It has norecipient_name. - data, cable:
plan.
#Where to next
Bill catalogueNetworks, plans, billers and countries to build a purchase from.Account checkThe name on a smartcard or meter, to show before your user pays.Buying a billOne POST per service, with your own reference.Bill resultsRead a purchase back, or take the webhook.Bill errorsEvery error type a bill payment can answer.