Purchase Electricity

post
Make Electricity Payment

https://payments.baxipay.com.ng/api/baxipay/services/electricity/request
This endpoint allows you to get free cakes.
Request
Response
Request
Headers
Baxi-date
required
string
Date in RFC Format
Authorization
required
string
See the authentication page
Body Parameters
phone
required
string
This is the 11-digit phone number of the payer.
amount
required
number
This is the amount you are willing to purchase or pay for.
account_number
required
string
This is the meter number / account number.
service_type
required
string
This is the service type of the bill you are trying to pay.
agentReference
required
string
Unique Id generated by the integrator to identify this particular transaction.
agentId
required
number
Unique Identification number for the integrator.
Response
200: OK
The transaction response for a postpaid is similar to other responses described in this documentation. For prepaid, Three (3) extra fields are added to describe the: tokenCode: This is the token which will be used to recharge the meter. (Mandatory) amountOfPower: This is the equivalent amount of power purchased in kwh. (Optional) tokenAmount: This is the amount paid. (Optional)
// PREPAID
{
"status": "success",
"message": "Successful",
"code": 200,
"data": {
"transactionStatus": "success",
"transactionReference": 6,
"statusCode": "0",
"transactionMessage": "Payment Successful",
"tokenCode": "03600873271267716521",
"tokenAmount": 2000,
"amountOfPower": "2000 kWh"
}
}
// POSTPAID
{
"status": "success",
"message": "Successful",
"code": 200,
"data": {
"transactionStatus": "success",
"transactionReference": 7,
"statusCode": "0",
"transactionMessage": "Payment Successful"
}
}