Home Introduction Airtime Api Data Api Internet Api Cable Api Electricity Api Balance Check
Electricity - EasyPoint9ja Api Documentation

Electricity Api

The easypoint9ja Electricity API is a RESTful interface that enables you to seamlessly integrate a range of services from the easypoint9ja platform into your web or mobile application.

Hero Image

POST /api/electricity

You can make a purchase for either a prepaid or postpaid meter.

Parameters

Parameter Type Required Description
api_key string R Your API key.
request_id string R Request Id (for custom tracking).
serviceID string R Service ID as specified by Easypoint9ja. In this case, it is ikeja-electric.
billersCode string R The meter number you wish to make the bills payment on.
Variation Code string R This is the meter type. In this case prepaid.
amount Number R The amount (Naira) of electricity you want to purchase.
phone Number R The phone number of the customer or recipient of this service.

Endpoint Url

Live: https://easypoint9ja.com/api/electricity/

Sandbox: https://sandbox.easypoint9ja.com/api/electricity/

Sample Request


$url = "https://easypoint9ja.com/api/electricity/";

$data = [
    "api_key" => "YOUR_API_KEY",
    "request_id" => 63634570027309,
    "serviceID" => "ikeja-electric",
    "billersCode" => "1111111111111",
    "variation_code" => "prepaid",
    "amount" => "1000",
    "phone" => 09011111111
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json"
]);

$response = curl_exec($ch);
curl_close($ch);
      

VERIFY METER NUMBER

Using a POST method, you can verify a meter number with the following endpoint:

Parameters

Parameter Type Required Description
api_key string R Your API key.
billersCode Number R The meter number you wish to make the bills payment on.
serviceID string R Service ID as specified by Easypoint9ja. In this case, it is ikeja-electric.
Type string R This is basically the type of meter you are trying to validate. It can be either prepaid or postpaid.

Endpoint Url

Live: https://easypoint9ja.com/api/electricity-merchant-verify/

Sandbox: https://sandbox.easypoint9ja.com/api/electricity-merchant-verify/

Sample Request


$url = "https://easypoint9ja.com/api/electricity-merchant-verify/";

$data = [
    "api_key" => "YOUR_API_KEY",
    "billersCode" => "1111111111111",
    "serviceID" => "ikeja-electric",
    "type" => "prepaid"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json"
]);

$response = curl_exec($ch);
curl_close($ch);