Purchase

post
Electricity Purchase

https://sagecloud.ng/api/v2/electricity/purchase
This endpoint allows you to purchase electricity.
Request
Response
Request
Headers
Authorization
required
string
Check the Headers page.
Body Parameters
reference
required
string
A unique key generated by you
type
required
string
The biller type. e.g ibadan_electric_prepaid
account_number
required
string
The meter no.
amount
required
string
Amount to be purchased
phone
required
string
Phone number of the customer
Response
200: OK
Purchase Successful.
{
"success": true,
"message": "ELECTRICITY purchase successful",
"data": {
"token": "61679094489051385767",
"unit": "100 kWh",
"amount": "100",
"transId": 816243
}
}
401: Unauthorized
{
"message": "Unauthenticated."
}

‚Äč