Skip to main content
POST
Buy Electricity

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
reference
string
required

Your unique reference for this purchase, used for idempotency and tracking.

Maximum string length: 255
Example:

"bill_abc125"

service_code
string
required

An electricity service code from List Billers (category=electricity).

Example:

"ikeja-electric-prepaid"

meter_number
string
required

The customer's meter number.

Maximum string length: 50
Example:

"04123456789"

customer_name
string
required

The customer name returned by Meter Enquiry.

Maximum string length: 255
Example:

"John Doe"

amount
number
required

Amount in naira, at least 100, with at most 2 decimal places.

Required range: x >= 100
Example:

5000

address
string

The meter's address.

Maximum string length: 255
Example:

"12 Allen Avenue, Ikeja"

phone_number
string

The customer's phone number.

Maximum string length: 20
Example:

"08031234567"

email
string<email>

The customer's email address.

access_token
string

Required only when Meter Enquiry returned an access_token.

Response

The purchase was accepted. Check data.status: successful, failed (refunded), or pending (settles later by webhook). The message is Bill payment successful, Bill payment failed or Bill payment is processing to match.

status
string
Example:

"success"

message
string
Example:

"Bill payment successful"

data
object