PaymonetraDocs

Buying a bill

One POST per service, each with your own reference, each answering with the bill.

All are POST, all need reference, and all answer with the bill object (201 new, 200 repeat).

#A complete example

Paying an electricity meter. Every other service is the same call with its own fields.

curl
curl https://api.paymonetra.com/v1/bills/electricity \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "order-1042",
    "biller_id": 3,
    "meter_number": "45012345678",
    "meter_type": "prepaid",
    "amount": 5000
  }'
Answer, 201
{
  "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"
}

#Buy airtime

POSThttps://api.paymonetra.com/v1/bills/airtimeSecret key

Send phone (Nigerian mobile, any common format), amount (100 to 50,000), network optional (guessed from the number; send it for ported numbers)

#Buy data

POSThttps://api.paymonetra.com/v1/bills/dataSecret key

Send phone, plan_code, network optional, amount optional (needed only if one code is sold at two prices)

#Pay for cable TV

POSThttps://api.paymonetra.com/v1/bills/cableSecret key

Send biller, smartcard (10 to 12 digits), plan_code. The price is the plan's, never sent.

#Pay for electricity

POSThttps://api.paymonetra.com/v1/bills/electricitySecret key

Send biller_id, meter_number (10 to 20 digits), meter_type prepaid or postpaid, amount (500 to 500,000)

#Buy exam pins

POSThttps://api.paymonetra.com/v1/bills/examSecret key

Send biller, quantity (1 to 10). The price is the pin price times quantity.

#Buy international airtime

POSThttps://api.paymonetra.com/v1/bills/internationalSecret key

Send operator_id, country, phone (local number, no country code), amount_usd, amount_ngn (the quote; optional, but without it you pay today's price)

If the price moved more than 1.5% (minimum ₦50) since your quote, the answer is 409 price_changed with the new amount_ngn in the error. Quote again and resend.