Authorization Token: kindly login, click on 'Integrate Our API' at the bottom of the page to view your Authorization Token and Variation Codes

INTRODUCTION:

The need for collaboration in business is very essential and cannot be overemphasized. We have developed a simple API that is easy to understand and integrate into various projects, applications or websites. You can integrate our API into your websites/projects. It is super easy. Lets see how!


INTRODUCTION:

The need for collaboration in business is very essential and cannot be overemphasized. We have developed a simple API that is easy to understand and integrate into various projects, applications or websites. You can integrate our API into your websites/projects. It is super easy. Lets see how!


INTEGRATION/USAGE:

All you need to do to use our API is;


Note: For result checker pins (WAEC, NECO, NABTEB, NBAIS) we have developed an updated version (v2) for each of the products. You can integrate any version that best suits you (v1 or v2). Here are the newly added features to the updated version (v2):


Changes to note that differentiates version 2 from version 1 for all result checkers:
0.1 Check Wallet Balance API:

Check Wallet Balance Endpoint: https://easyaccess.com.ng/api/wallet_balance.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b

Example: Check Wallet Balance Sample Code in PHP
Kindly copy and paste the code below in your script to check your wallet balance. Only replace the AuthorizationToken to your unique authorization_token.

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/wallet_balance.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format



OUR PRODUCTS API(s):


1. Waec Result Checker API (v1):

Develop your own program of how your users can buy pins from your site.

Waec Result Endpoint (v1): https://easyaccess.com.ng/api/waec.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
NB: The Number of e-Pins to generate is automatically set to 1 (one) and product type set to waec. So you don't need any additional parameters for this product version.

Example: Buy Waec Pin Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/waec.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


1.1 Waec Result Checker API (Updated - Version 2):

Develop your own program of how your users can buy pins from your site.

Waec Result Endpoint (v2): https://easyaccess.com.ng/api/waec_v2.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. No. of Pins. Allowed Values are: 1,2,3,4,5,10.
NB: The Number of e-Pins to generate can only be 1,2,3,4,5,10. Values 6-9 are not allowed.

Example: Buy (5) Waec Pin(s) Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/waec_v2.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'no_of_pins' =>5,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


2. Neco Result Token API (v1):

Develop your own program of how your users can buy tokens from your site.

Neco Token Endpoint (v1): https://easyaccess.com.ng/api/neco.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
NB: The Number of Neco Tokens to generate is automatically set to 1 (one) and product type set to neco. So you don't need any additional parameters for this product version.

Example: Buy Neco Token Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/neco.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


2.1 Neco Result Token API (Updated - Version 2):

Develop your own program of how your users can buy tokens from your site.

Neco Token Endpoint (v2): https://easyaccess.com.ng/api/neco_v2.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. No. of Pins. Allowed Values are: 1,2,3,4,5,10.
NB: The Number of e-Pins to generate can only be 1,2,3,4,5,10. Values 6-9 are not allowed.

Example: Buy (5) Neco Token(s) Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/neco_v2.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'no_of_pins' =>5,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


3. Nabteb Result Checker API (v1):

Develop your own program of how your users can buy pins from your site.

Nabteb Result Endpoint (v1): https://easyaccess.com.ng/api/nabteb.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
NB: The Number of e-Pins to generate is automatically set to 1 (one) and product type set to Nabteb. So you don't need any additional parameters for this product version.

Example: Buy Nabteb Pin Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/nabteb.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


3.1 Nabteb Result Checker API (Updated - Version 2):

Develop your own program of how your users can buy pins from your site.

Nabteb Result Endpoint (v2): https://easyaccess.com.ng/api/nabteb_v2.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. No. of Pins. Allowed Values are: 1,2,3,4,5,10.
NB: The Number of e-Pins to generate can only be 1,2,3,4,5,10. Values 6-9 are not allowed.

Example: Buy (5) Nabteb Pin Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/nabteb_v2.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'no_of_pins' =>5,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


9. Nbais Result Checker API (v1):

Develop your own program of how your users can buy pins from your site.

nbais Result Endpoint (v1): https://easyaccess.com.ng/api/nbais.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
NB: The Number of e-Pins to generate is automatically set to 1 (one) and product type set to nbais. So you don't need any additional parameters for this product version.

Example: Buy Nbais Pin Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/nbais.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


9.1 Nbais Result Checker API (Updated - Version 2):

Develop your own program of how your users can buy pins from your site.

Nbais Result Endpoint (v2): https://easyaccess.com.ng/api/nbais_v2.php
Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. No. of Pins. Allowed Values are: 1,2,3,4,5,10.
NB: The Number of e-Pins to generate can only be 1,2,3,4,5,10. Values 6-9 are not allowed.

Example: Buy (5) Nbais Pin Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/nbais_v2.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'no_of_pins' =>5,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


4. Data Bundles API:

Develop your own program of how your users can buy data from your site.

Data Bundle Endpoint: https://easyaccess.com.ng/api/data.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. Network. E.g 01 for MTN, 02 for GLO, 03 for AIRTEL and 04 for 9MOBILE.
3. Mobile No. E.g 08164383771 (this must be 11 digits).
4. Dataplan. E.g 50 for MTN 500MB (SME) - N108 30days, 51 for MTN 1GB (SME) - N215 30days, etc.
5. Webhook Url. E.g https://yoursite.com/webhook.php Note that real time status of data transactions will be sent to the webhook for further action.

Example: Buy Data Bundle (MTN, 1GB to 08164383771) Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/data.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'network' =>01,
'mobileno' => '08164383771',
'dataplan' => 51,
'client_reference' => 'tranx6896598952', //update this on your script to receive webhook notifications
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


5. Airtime API:

Develop your own program of how your users can buy Airtime from your site.

Airtime Endpoint: https://easyaccess.com.ng/api/airtime.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. Network. E.g 01 for MTN, 02 for GLO, 03 for AIRTEL and 04 for 9MOBILE.
3. Mobile No. E.g 08164383771 (this must be 11 digits).
4. Amount. E.g 100.
5. Airtime Type: 001 for VTU, 002 for SNS. Note that 002 (SNS) only applies to MTN network. Other Networks use only 001 (VTU).
6. Webhook Url. E.g https://yoursite.com/webhook.php Note that real time status of airtime transactions will be sent to the webhook for further action.

Example: Buy Airtime (MTN, N100 to 08164383771) Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/airtime.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'network' =>01,
'amount' => '100',
'mobileno' => '08164383771',
'airtime_type' => '001', //001 for VTU, 002 for Share and Sell. Share and Sell is only applicable to MTN network. For other networks, use 001 (VTU).
'client_reference' => 'tranx6896598952', //update this on your script to receive webhook notifications
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format

Expected webhook response for Data and Airtime transactions in json format:
Note: Ensure you enter your webhook url at the top to this page. Note that the status below shows the real time status of the transactions after processing has taken place. You can use it to automatically refund your users if it returns "failed". Status can either be "failed" or "success".

//successful transaction

"status":"success",
"message":"Dear Customer, You have successfully shared 1000MB Data to 234803671xxxx. Your SME data balance is 901.35GB expires 23/08/2022. Thankyou",
"reference":"ID55426523153",
"client_reference":"tranx6896598952",
"transaction_date":"06-04-2022 05:26 am"



//failed transaction

"status":"failed",
"message":"You are not sending to valid MTN number.",
"reference":"ID55426523153",
"client_reference":"tranx6896598952",
"transaction_date":"06-04-2022 05:26 am"

Query Transaction API:

You can use our query transaction API to retrieve the status of any transaction along side other details of the transaction. This helps you confirm the status of transactions for further action.

Query Transaction Endpoint: https://easyaccess.com.ng/api/query_transaction.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. Reference. Note that this is the transaction reference/id of that purchase on EasyAccess and Not on your website. E.g. ID276542333922.

Example: Query Transaction Sample Code in PHP

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/query_transaction.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'reference' =>'ID276542333922',
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


6. Verify TV IUC/Smart Card No. API:

Develop your own program of how your users can verify iuc/smart card numbers.

Verify TV Endpoint: https://easyaccess.com.ng/api/verifytv.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. Company Code. E.g 01 for DSTV, 02 for GOTV and 03 for STARTIMES.
3. IUC/Smart Card No. E.g 7032054653

Example: Verify IUC No. (GOTV, 7032054653) Sample Code in PHP

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/verifytv.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'company' =>02,
'iucno' => '7032054653',
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


6.1 TV Subscription API:

(0.5% Discount)
Develop your own program of how your users can process TV Subscription.

TV Subscription Endpoint: https://easyaccess.com.ng/api/paytv.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b

2. Company Code: E.g 01 for DSTV, 02 for GOTV and 03 for STARTIMES.
3. IUC/Smart Card No. E.g 7032054653
4. Package: E.g 90 for DSTV Padi - N2150, 96 for GOTV Jolli - N2800.

Example: Pay TV Subscription (Company:GOTV, Pakage:GOTV Jolli - N2800 for 7032054653) Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/paytv.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'company' =>02,
'iucno' => '7032054653',
'package' =>96,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


7. Verify Electricity Meter No. API:

Develop your own program of how your users can verify meter numbers.

Verify Electricity Meter No. Endpoint: https://easyaccess.com.ng/api/verifyelectricity.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. Company Code: 01 for Eko Electricity - EKEDC(PHCN), 03 for PortHarcourt Electricity - PHEDC, etc.
3. Metertype: 01 for PREPAID, 02 FOR POSTPAID
4. Meter No. E.g 841256924301
5. Amount. E.g 1000 (Note that minimum amount allowed is N1000)

Example: Verify Meter No. (Company: PHEDC, Metertype: POSTPAID, Meterno: 841256924301, Amount: N1000) Sample Code in PHP

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/verifyelectricity.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'company' =>03,
'metertype' =>02,
'meterno' =>'841256924301',
'amount' =>1000,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format


7.1 Pay Electricity Bill API:

(0.3% Discount)
Develop your own program of how your users can pay Electricity Bill on your site.

Pay Electricity Bill Endpoint: https://easyaccess.com.ng/api/payelectricity.php

Required Parameters:
1. Authorization Token. E.g 904cc8b30fb06707862323030783481b
2. Company Code: 01 for Eko Electricity - EKEDC(PHCN), 03 for PortHarcourt Electricity - PHEDC, etc.
3. Metertype: 01 for PREPAID, 02 FOR POSTPAID
4. Meter No. E.g 95300270972
5. Amount. E.g 1000 (Note that minimum amount allowed is N1000)

Example: Pay Electricity Bill (Company: PHEDC, Metertype: PREPAID, Meterno: 95300270972, Amount: N1000) Sample Code in PHP
After you have developed a way for your users to pay you, charge the customer and call our API to deliver the product

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://easyaccess.com.ng/api/payelectricity.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
'company' =>03,
'metertype' =>01,
'meterno' =>'95300270972',
'amount' =>1000,
),
CURLOPT_HTTPHEADER => array(
"AuthorizationToken: 904cc8b30fb06707862323030783481b", //replace this with your authorization_token
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;


Expected Response in JSON format

...Together we can


Back to Dashboard

WAEC, NECO, NABTEB, NBAIS Result Checker and e-Registration Instant Pins, Data Bundles, Airtime, Tv Subscription, Bill Payments...