Pan Card API
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/add_vle.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('api_key' => 'e79d46-6537be-35686e-43b056-f76457','vle_id' =>
'PA3535353535','vle_name' => 'DEMO NAME','vle_mob' => '7585811607','vle_email' =>
'DEMO@GMAIL.COM','vle_shop' => 'RECHPAY INFOTECH','vle_loc' =>
'ARGORI,ANDUL','vle_state' => '32','vle_pin' => '711302','vle_uid' => '557484784784','vle_pan' =>
'IFZPS8743K'), ));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"status": "SUCCESS",
"message": "Vle Create Successfully",
"vle_id": "API3535353535",
"vle_status": "PENDING"
}
VLE ID STATUS API – GET/POST
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/vle_status.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('api_key' => 'e79d46-6537be-35686e-43b056-f76457', 'vle_id' =>
'PA3535353535'), ));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"status": "SUCCESS",
"message": "Vle is APPROVED",
"vle_id": "API3535353535",
"vle_status": "APPROVED"
}
COUPON REQUEST API – GET/POST
<?php
// type = 1 for P-Coupon / 2 for E-Coupon
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/coupon_req.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('api_key' => 'e79d46-6537be-35686e-43b056-f76457','vle_id' =>
'API3535353535','type' => '2','qty' => '2'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"order_id": "691149",
"date": "29-Apr-2020",
"status": "SUCCESS",
"message": "Coupon Request Submit Successfully",
"vle_id": "PA3535353535",
"vle_name": "DEMO NAME",
"type": "2",
"qty": "2",
"rate": "60",
"amount": "120",
"old_bal": "690",
"new_bal": "570"
}
COUPON STATUS API – GET/POST
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/coupon_status.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('api_key' => 'e79d46-6537be-35686e-43b056-f76457','order_id' =>
'777863'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"order_id": "777863",
"date": "29-Apr-2020",
"status": "PENDING",
"message": "",
"vle_id": "PA3535353535",
"vle_name": "DEMO NAME",
"type": 1,
"qty": "2",
"rate": "95",
"amount": "190",
"old_bal": "1000",
"new_bal": "810"
}
VLE PASSWORD RESET API – GET/POST
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/pass_reset.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('api_key' => 'e79d46-6537be-35686e-43b056-f76457','vle_id' =>
'PA353535353'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"status": "PENDING",
"order_id": "878484",
"vle_id": "PA353535353",
"message": "Vle Password Reset Submit Successfully"
}
VLE PASSWORD RESET STATUS API – GET/POST
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/pass_status.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('api_key' => 'e79d46-6537be-35686e-43b056-f76457','order_id' =>
'254785'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"status": "APPROVED",
"order_id": "254785",
"vle_id": "PA5656565656",
"vle_name": "DEMO NAME",
"message": "Done"
}
BALANCE CHECK API – GET/POST
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://psaadmin.e-kendra.co.in/api/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 => "POST",
CURLOPT_POSTFIELDS => array('api_key' => 'e79d46-6537be-35686e-43b056-f76457'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
// JSON OUTPUT
{
"status": "SUCCESS",
"balance": "450"
}