The Electricity Bills API allows you to validate a customerâs meter number and complete an electricity purchase across supported service providers.Before initiating a purchase, you must first validate the customerâs meter number using the validate meter number endpoint. Once validated, you can proceed to purchase electricity using the generated details.
Ensure your integration uses the correct serviceId for the electricity provider you intend to process payments for.
Use this endpoint to verify a customerâs meter details before initiating a purchase.
Youâll need to pass the service provider ID (serviceId) and the customerâs meter number as (customerAccountId).
If the validation is successful, the API returns the customerâs name, address, and other meter details.
Youâll use these details in the Purchase Electricity request.
After successfully validating the meter number, send a POST request to this endpoint api/v1/BillsPayment/initiateelectricitypurchase to complete the electricity bill payment.Provide the customerâs meter information, amount, and meterType which can be âprepaidâ or âpostpaidâ. If you donât include a reference.
Novac uses a reference to track transactions, so itâs important to include it; if you donât, we will generate one.
{ "code": 200, "status": "success", "message": "Your transaction is in progress.", "data": { "token": "string", "units": "10", "meterType": "prepaid|postpaid", "amount": 2000, "customerAccountId": "1234567890", "status": "pending", "message": "Your transaction is in progress.", "reference": "reference", "domain": "live", "fee": 100.00 }}
If the purchase is successful, youâll receive details like the token, units, and transaction status.
You can display the token and units to your customer or send them via SMS or email.