Purchase Electricity
Vending
Purchase Electricity
Purchase electricity token for a meter
POST
Purchase Electricity
Overview
Purchase an electricity token for a validated meter. The token will be generated instantly and can be used to recharge the meter.Request Body
Response Fields
string
Reference to store for reconciliation, support, and requerying pending transactions.
string
Electricity token for successful prepaid purchases.
number
Units returned for successful electricity purchases, when available.
string
Receipt number returned for successful purchases, when available.
number
Commission earned on the purchase, in Naira.
Status Codes
Notes
- Validate the meter before purchase and let the customer confirm the returned details.
- Use the minimum and maximum amount returned by the electricity catalog.
- The
vendTypemust match the customer’s meter type. - If the API returns
gatewayStatus: "01"or an accepted pending response, wait at least 2 minutes before calling Requery Transaction. - Successful prepaid purchases include token details in the response data.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Amount of electricity to purchase (in Naira)
Example:
1500
The validated electricity meter number
Example:
"12345678910"
Customer phone number for the transaction
Example:
"08000000000"
Electricity provider productCode returned by the ElectricityList endpoint
Example:
"IKEJA_ELECTRIC"
Meter type
Available options:
PREPAID, POSTPAID Example:
"PREPAID"