Mobile Recharge API Docs

Mobile & DTH Recharge

POST Transaction

https://www.apilogin.in/partner/api/recharge/transaction


This API is used to recharge.

Checksum generation Logic:

Input: {user_id}|{timestamp}|{number}|{order_id}
Input Type: Text
Key: {secret_key}
Key Type: HEX
SHA variant: SHA512
Output type: BASE-64

Example Request

curl --location --request POST 'https://www.apilogin.in/partner/api/recharge/transaction' \
--data-raw '{
    "user_id": "FISPL604796",
    "token": "Nrp4IKotcC5brQLddiNoQr8KY99ym1sq",
    "number": "9836114520",
    "amount": "10",
    "operator_code": "RJP",
    "order_id": "R19909145177137",
    "timestamp": "1609145161385",
    "checksum": "upHKjMwihKlxg4+NHQImZ+88LqAH2ViLWLF4q+DCGt34sr/V+rPewt66zH7EPpLpG2mOLtwKznw1EEwY556Wwg=="
}'

BODY raw

{
    "user_id": "FISPL604796",
    "token": "Nrp4IKotcC5brQLddiNoQr8KY99ym1sq",
    "number": "9073***444",
    "amount": "10",
    "operator_code": "RJP",
    "order_id": "R19909145177137",
    "timestamp": "1609145161385",
    "checksum": "upHKjMwihKlxg4+NHQImZ+88LqAH2ViLWLF4q+DCGt34sr/V+rPewt66zH7EPpLpG2mOLtwKznw1EEwY556Wwg=="
}

Example Response

Body


{
  "status": "SUCCESS",
  "message": "Transaction Successful",
  "data": {
    "fpay_id": "RCH300874073984JLPGI",
    "operator_id": "BR0005MIKE46"
  }
}



Header

Date: Mon, 28 Dec 2020 09:21:48 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive

Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

POST Check Transaction Status

https://www.apilogin.in/partner/api/recharge/check_status

{
    "user_id": "FISPL604796",
    "token": "Nrp4IKotcC5brQLddiNoQr8KY99ym1sq",
    "order_id": "R19909145177137",
    "timestamp": "1609150901086",
    "checksum": "GqyOm+djRkYGvU+k0eWtC0LvvdTDL1iOpxOMQvkShTCj1Eux7TsDv68FZuOmLfHhz/jvtkQAMgrnRHuc4iRt4Q=="
}

Example Request

curl --location --request POST 'https://www.apilogin.in/partner/api/recharge/check_status' \
--data-raw '{
    "user_id": "FISPL604796",
    "token": "Nrp4IKotcC5brQLddiNoQr8KY99ym1sq",
    "order_id": "R19909145177137",
    "timestamp": "1609150901086",
    "checksum": "GqyOm+djRkYGvU+k0eWtC0LvvdTDL1iOpxOMQvkShTCj1Eux7TsDv68FZuOmLfHhz/jvtkQAMgrnRHuc4iRt4Q=="
}'

POST Fetch Operator

https://www.apilogin.in/partner/api/plans/fetch_operator

BODY raw

{"user_id":"FISPL604796","token":"Nrp4IKotcC5brQLddiNoQr8KY99ym1sq","mobile":"9073196444"}

Example Response

Body


{
  "status": "SUCCESS",
  "message": "Operator fetched successfully",
  "data": {
    "operator": "Vi",
    "circle": "Kolkata"
  }
}




Header



Date: Wed, 30 Dec 2020 11:59:24 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Pan Card API Docs

VLE ID CREATE API – GET/POST

<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://website.com/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' =>
'API3535353535','vle_name' => 'MAHABUL ALAM','vle_mob' => '7585811607','vle_email' =>
'APILOGIN@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://website.com/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' =>
'API3535353535'), ));
$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://website.com/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": "API3535353535",
 "vle_name": "MAHABUL ALAM",
 "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://website.com/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": "API3535353535",
 "vle_name": "MAHABUL ALAM",
 "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://website.com/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' =>
'API353535353'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>

// JSON OUTPUT

{
 "status": "PENDING",
 "order_id": "878484",
 "vle_id": "API353535353",
 "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:// website.com /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": "API5656565656",
 "vle_name": "MAHABUL ALAM",
 "message": "Done"
}

BALANCE CHECK API – GET/POST

<?php
$curl = curl_init();
curl_setopt_array($curl, array(
 CURLOPT_URL => "http://website.com/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"
}

Diwali Dhamaka Offer


Coupon code: DIWALI2024 Discount: 7000/-
Coupon expiry date: 2024-11-05

This will close in 20 seconds

X