Overview

  • To use our api you must have a service with static ip address.
  • You must need to configure our callback url in your system.
  • You will be provided token after login , You will need to pass that token in each api.
  • Do not implement directly production api in your system , First test with sanbox system then go with production api.
  • In api document we use # for variable , for example if there is any variable like #BASEURL it means this variable need to be replace according to your need.
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
Accept string Header Required application/json
Content-Type string Header Required application/json
RAW_BODY json RAW_BODY Required Data which is required for make tranaction will be passed in POST method in JSON format.


Mobile/ DTH API

Prepaid Mobile and DTH Recharges of all service and Bill Payments for all Postpaid providers in India.
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId string RAW_BODY Required You will get list of operator from Utility Api section .
mobile string RAW_BODY Required You need to pass mobile number or dth number depends on transaction type.
amount string RAW_BODY Required Pass recharge amount in this field like 10,20 etc.


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your #urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This value come from #mobile value you have passed in api .
amount string This is the transaction amount.
transId string This is operator side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is operator name .
bal string Your final balance after transaction . Please save this value if its greater than 0 only.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS.
tdsAmount string Amount of tds deducted from your commission. This will be paid to your PAN number

              {
                "data": {
                  "orderId": "1210708",
                  "status": "PENDING",
                  "mobile": "9000000000",
                  "amount": "100",
                  "transId": "",
                  "error_code": "201",
                  "service": "Airtel",
                  "bal": "98462.0000",
                  "creditUsed": "98.0000",
                  "resText": "",
                  "tdsAmount": "0.11",
                  "gstMode": ""
                  }
                }

              

                curl 'https://sandbox.rechapi.com/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","operatorId":"1","amount":"100.00","mobile":"9000000000","urid":"5546523"}' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/transaction.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxx","operatorId":"1","amount":"100.00","mobile":"9000000000","urid":"60c60b5d0b687"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/transaction.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"1\",\"amount\":\"100.00\",\"mobile\":\"9000000000\",\"urid\":\"5546523\"}";

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/transaction.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"1\",\"amount\":\"100.00\",\"mobile\":\"9000000000\",\"urid\":\"5546523\"}";

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Send Otp For Pan Agent Registration

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
outletMobile string RAW_BODY Required Pass 10 digit outlet mobile number


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED . If value is SUCCESS it means otp successfully sent to customer mobile number

{
  "data": {
    "status": "SUCCESS",
    "outletMobile": "9006xxxxxx",
    "resText": ""
  }
}

              

                curl 'https://sandbox.rechapi.com/psa/sendOtp.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/psa/sendOtp.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/psa/sendOtp.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/psa/sendOtp.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Pan Agent Registration With Otp

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
outletMobile string RAW_BODY Required Pass 10 digit outlet mobile number
otp string RAW_BODY Required You will need to send otp from Send Otp api
ownerName string RAW_BODY Required Outlet ownner name , Only Apha and Space are allowed
shopName string RAW_BODY Required Outlet name , Only Apha and Space are allowed
shopAddress string RAW_BODY Required Address of shop
areaPincode string RAW_BODY Required 6 digit area pincode of shop
email string RAW_BODY Required Email id of shop owner
pan string RAW_BODY Required Pan Number of shop owner
dob string RAW_BODY Required Date of Birth of shop owner (YYYY-MM-DD). For example 2021-12-31
aadhaar string RAW_BODY Required 12 digit aadhaar number of shop owner


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is FAILED/PENDING . If value is PENDING it means psa agent registration successfully submitted . If it gets FAILED you will need to check resText value for error.

{
  "data": {
    "orderId": "176193xxxx",
    "status": "PENDING",
    "mobile": "9006xxxxx",
    "amount": "1",
    "transId": "",
    "error_code": "201",
    "service": "Pan Agent",
    "bal": "1174.5200",
    "creditUsed": "1.0000",
    "resText": "",
    "gstMode": "P2P",
    "tdsAmount": "0"
  }
}

              

                curl 'https://sandbox.rechapi.com/psa/registerPsa.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxx","outletMobile":"9006xxxxxxx","otp":"61238","ownerName":"Abcd Kumar","shopName":"abcd recharge","shopAddress":"hhd shhfgs sjwjw","areaPincode":"82xxxx","email":"abcd@gmail.com","pan":"BWTPKxxxxM","dob":"1991-01-01","aadhaar":"123412341234"}' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/psa/registerPsa.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxx","outletMobile":"9006xxxxxxx","otp":"61238","ownerName":"Abcd Kumar","shopName":"abcd recharge","shopAddress":"hhd shhfgs sjwjw","areaPincode":"82xxxx","email":"abcd@gmail.com","pan":"BWTPKxxxxM","dob":"1991-01-01","aadhaar":"123412341234"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/psa/registerPsa.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxx\",\"outletMobile\":\"9006xxxxxxx\",\"otp\":\"61238\",\"ownerName\":\"Abcd Kumar\",\"shopName\":\"abcd recharge\",\"shopAddress\":\"hhd shhfgs sjwjw\",\"areaPincode\":\"82xxxx\",\"email\":\"abcd@gmail.com\",\"pan\":\"BWTPKxxxxM\",\"dob\":\"1991-01-01\",\"aadhaar\":\"123412341234\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/psa/registerPsa.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxx\",\"outletMobile\":\"9006xxxxxxx\",\"otp\":\"61238\",\"ownerName\":\"Abcd Kumar\",\"shopName\":\"abcd recharge\",\"shopAddress\":\"hhd shhfgs sjwjw\",\"areaPincode\":\"82xxxx\",\"email\":\"abcd@gmail.com\",\"pan\":\"BWTPKxxxxM\",\"dob\":\"1991-01-01\",\"aadhaar\":\"123412341234\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Chekc Status Of Pan Agent Registration

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
outletMobile string RAW_BODY Required Pass 10 digit outlet mobile number


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is APPROVED/PENDING/FAILED .

{
  "data": {
    "status": "SUCCESSS",
    "outletMobile": "9006xxxxxx",
    "psaId": "RHCGxxxxx",
    "resText": ""
  }
}

              

                curl 'https://sandbox.rechapi.com/psa/psaStatus.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/psa/psaStatus.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/psa/psaStatus.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/psa/psaStatus.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Buy Pan Coupon

Minimum 2 coupon allowed to purchase
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId 170 RAW_BODY Required
psaId string RAW_BODY Required You need to pass uti psa agent id here .
quantity string RAW_BODY Required You need to pass number of coupon which you want to purchase here .


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your #urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This value come from #mobile value you have passed in api .
amount string This is the transaction amount.
transId string This is operator side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is operator name .
bal string Your final balance after transaction . Please save this value if its greater than 0 only.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS.
tdsAmount string Amount of tds deducted from your commission. This will be paid to your PAN number

{
  "data": {
    "orderId": "17617xxxxx",
    "status": "PENDING",
    "mobile": "SUDIP8xxxx",
    "amount": "214",
    "transId": "",
    "error_code": "201",
    "service": "Pan Coupon",
    "bal": "1398.6100",
    "creditUsed": "194.9500",
    "resText": "",
    "gstMode": "P2P",
    "tdsAmount": "0.95"
  }
}

              

                curl 'https://sandbox.rechapi.com/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","operatorId":"170","psaId":"SUDIP8xxxxx","urid":"6143478","quantity":"2"} ' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/transaction.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxx","operatorId":"170","psaId":"SUDIP8xxxxx","urid":"6143478","quantity":"2"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/transaction.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"170\",\"psaId\":\"SUDIP8xxxxx\",\"urid\":\"6143478\",\"quantity\":\"2\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/transaction.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"170\",\"psaId\":\"SUDIP8xxxxx\",\"urid\":\"6143478\",\"quantity\":\"2\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Reset Password Of Pan Agent

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
psaId string RAW_BODY Required Pass psaId here


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is PENDING/FAILED .

{
  "data": {
    "status": "PENDING",
    "psaId": "RHCGxxxxx",
    "resText": "Password Reset Accepted . It will be reset same as your username within next 4 working hr ."
  }
}

              

                curl 'https://sandbox.rechapi.com/psa/resetPassword.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","psaId":"RHCGxxxxx"} ' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/psa/resetPassword.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxx","psaId":"RHCGxxxxx"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/psa/resetPassword.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/psa/resetPassword.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"psaId\":\"RHCGxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

AEPS Bank List

This API returns the list of all banks in India along with other values like IFSC, IIN, available modes, services and uptime.
Account Parameter is optional. If you pass account number, system will generate random IFSC codes for few banks based on intelligent algorithm and in some case if bank doesn’t have central IFSC generation criteria or algorithm then customer need to enter valid IFSC for the transaction which is sent at time of transaction to bank
We recommend you use List of Banks and its data to avoid unforeseen circumstances.
In case any transaction happens with invalid or wrong IFSC, transaction may go to wrong beneficiary since we do not filter and pass as-it-is to bank.
BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
bankList array Here you will get list of bank for AEPS transaction , You will need to pass this id in other aeps api .

              {
                "status": "SUCCESS",
                "resText": "",
                "bankList": [
                {
                  "bankName": "STATE BANK OF INDIA",
                  "bankId": "607094",
                  "sortName": "SBI"
                },
                {
                  "bankName": "PUNJAB NATIONAL BANK",
                  "bankId": "607027",
                  "sortName": "PNB"
                },
                {
                  "bankName": "BANK OF BARODA",
                  "bankId": "606985",
                  "sortName": "BOB"
                },
                {
                  "bankName": "BANK OF INDIA",
                  "bankId": "508505",
                  "sortName": "BOI"
                }, ...................

              

                curl 'https://sandbox.rechapi.com/aeps/bankList.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
              

                curl 'https://sandbox.rechapi.com/aeps/bankList.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
              

                URL url = new URL("https://sandbox.rechapi.com/aeps/bankList.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();

              

                var url = "https://sandbox.rechapi.com/aeps/bankList.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";


                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);

              

AEPS Mini-Statement

This API is used to fetch Bank C/A statement
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId string RAW_BODY Required You will get list of operator from Utility Api section .
bankId string RAW_BODY Required You will get list of bank id from Aeps Bank List section .
customerMobile string RAW_BODY Required 10 digit customer mobile . Its not mandatory to give aadhaar linked mobile number
outletMobile string RAW_BODY Required 10 digit outlet or agent mobile number with mini kyc approved . Please use Outlet Kyc api to register agent.
aadhaarNumber string RAW_BODY Required 12 digit valid aadhaar number of customer
deviceResponse string RAW_BODY Required It is the response of device when you will get after customer scan finger on device . This data must be encoded in base64 format.


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This is the value of aadhaar number which you have passed .
amount string You will always get this 0 as amount value was not required in this field
transId string This is bank side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is service name .
bal string This will always come empty so please do not save this data.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS. Update this in your system when its value is not empty
miniStatement string This is list of ministatement returned from bank side.
bankBal string This is customer bank balance returned from bank side.

              {
                "data": {
                  "orderId": "1219579",
                  "status": "SUCCESS",
                  "mobile": "336547xxxxxx",
                  "amount": "0",
                  "transId": "123456789",
                  "error_code": "201",
                  "service": "AEPS Ministatement",
                  "bal": "",
                  "creditUsed": "0.0000",
                  "resText": "Transaction Successful",
                  "gstMode": "",
                  "miniStatement": [
                  {
                    "description": "CBSD0325657302",
                    "amount": "1000.00",
                    "balance": "",
                    "date": "12/06",
                    "txnType": "CR"
                  },
                  {
                    "description": "CBSW0634941000",
                    "amount": "3330.00",
                    "balance": "",
                    "date": "07/06",
                    "txnType": "DR"
                  },
                  {
                    "description": "CBSD0300594260",
                    "amount": "3000.00",
                    "balance": "",
                    "date": "07/06",
                    "txnType": "CR"
                  },
                  {
                    "description": "CBSD0184199484",
                    "amount": "400.00",
                    "balance": "",
                    "date": "02/06",
                    "txnType": "CR"
                  },
                  {
                    "description": "CBSW0320842000",
                    "amount": "2425.00",
                    "balance": "",
                    "date": "01/06",
                    "txnType": "DR"
                  },
                  {
                    "description": "CBSW0919561333",
                    "amount": "9.00",
                    "balance": "",
                    "date": "31/05",
                    "txnType": "DR"
                  },
                  {
                    "description": "CBSW0919561333",
                    "amount": "50.00",
                    "balance": "",
                    "date": "31/05",
                    "txnType": "DR"
                  },
                  {
                    "description": "INTD0919561333",
                    "amount": "2.00",
                    "balance": "",
                    "date": "31/05",
                    "txnType": "CR"
                  },
                  {
                    "description": "CBSD0271660824",
                    "amount": "2500.00",
                    "balance": "",
                    "date": "31/05",
                    "txnType": "CR"
                  }
                  ],
                  "bankBal": "10000.56"
                }
              }

            

              curl 'https://sandbox.rechapi.com/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx","operatorId":"235","amount":"","mobile":"","urid":"5546523abc","bankId":"1","customerMobile":"900121xxxx","outletMobile":"954516xxxx","aadhaarNumber":"336547xxxxxx","deviceResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID.........."}' \
            

              <?php

              $url = "https://sandbox.rechapi.com/transaction.php";

              $curl = curl_init($url);
              curl_setopt($curl, CURLOPT_URL, $url);
              curl_setopt($curl, CURLOPT_POST, true);
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

              $headers = array(
              "accept: application/json",
              "content-type: application/json",
              );
              curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

              $data = '{"token":"xxxxxxx","operatorId":"235","amount":"","mobile":"","urid":"5546523abc","bankId":"1","customerMobile":"900121xxxx","outletMobile":"954516xxxx","aadhaarNumber":"336547xxxxxx","deviceResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID.........."}';

              curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

              //for debug only!
              curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
              curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

              $resp = curl_exec($curl);
              curl_close($curl);


              ?>
            

              URL url = new URL("https://sandbox.rechapi.com/transaction.php");
              HttpURLConnection http = (HttpURLConnection)url.openConnection();
              http.setRequestMethod("POST");
              http.setDoOutput(true);
              http.setRequestProperty("accept", "application/json");
              http.setRequestProperty("content-type", "application/json");

              String data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"235\",\"amount\":\"\",\"mobile\":\"\",\"urid\":\"5546523abc\",\"bankId\":\"1\",\"customerMobile\":\"900121xxxx\",\"outletMobile\":\"954516xxxx\",\"aadhaarNumber\":\"336547xxxxxx\",\"deviceResponse\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID..........\"}";

              byte[] out = data.getBytes(StandardCharsets.UTF_8);

            

              var url = "https://sandbox.rechapi.com/transaction.php";

              var httpRequest = (HttpWebRequest)WebRequest.Create(url);
              httpRequest.Method = "POST";

              httpRequest.Headers["accept"] = "application/json";
              httpRequest.Headers["content-type"] = "application/json";

              var data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"235\",\"amount\":\"\",\"mobile\":\"\",\"urid\":\"5546523abc\",\"bankId\":\"1\",\"customerMobile\":\"900121xxxx\",\"outletMobile\":\"954516xxxx\",\"aadhaarNumber\":\"336547xxxxxx\",\"deviceResponse\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID..........\"}";

              using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
              {
                streamWriter.Write(data);
              }

              var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
              using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
              {
                var result = streamReader.ReadToEnd();
              }

              Console.WriteLine(httpResponse.StatusCode);
            

AEPS Withdrawal

This API returns AEPS Withdrawals
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId string RAW_BODY Required You will get list of operator from Utility Api section .
bankId string RAW_BODY Required You will get list of bank id from Aeps Bank List section .
customerMobile string RAW_BODY Required 10 digit customer mobile . Its not mandatory to give aadhaar linked mobile number
outletMobile string RAW_BODY Required 10 digit outlet or agent mobile number with mini kyc approved . Please use Outlet Kyc api to register agent.
aadhaarNumber string RAW_BODY Required 12 digit valid aadhaar number of customer
deviceResponse string RAW_BODY Required It is the response of device when you will get after customer scan finger on device . This data must be encoded in base64 format.


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This is the value of aadhaar number which you have passed .
amount string You will always get this 0 as amount value was not required in this field
transId string This is bank side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is service name .
bal string This will always come empty so please do not save this data.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS. Update this in your system when its value is not empty
miniStatement string This is list of ministatement returned from bank side.
bankBal string This is customer bank balance returned from bank side.

              {
                "data": {
                  "orderId": "1219579",
                  "status": "PENDING",
                  "mobile": "336547xxxxxx",
                  "amount": "0",
                  "transId": "123456789",
                  "error_code": "201",
                  "service": "AEPS Withdrawal",
                  "bal": "",
                  "creditUsed": "0.0000",
                  "resText": "Transaction Successful",
                  "gstMode": "",
                  "bankBal": "10000.56"
                }
              }

            

              curl 'https://sandbox.rechapi.com/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx","operatorId":"234","amount":"100","urid":"5546523abc","bankId":"1","customerMobile":"900121xxxx","outletMobile":"954516xxxx","aadhaarNumber":"336547xxxxxx","deviceResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID.........."}' \
            

              <?php

              $url = "https://sandbox.rechapi.com/transaction.php";

              $curl = curl_init($url);
              curl_setopt($curl, CURLOPT_URL, $url);
              curl_setopt($curl, CURLOPT_POST, true);
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

              $headers = array(
              "accept: application/json",
              "content-type: application/json",
              );
              curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

              $data = '{"token":"xxxxxxx","operatorId":"234","amount":"100","urid":"5546523abc","bankId":"1","customerMobile":"900121xxxx","outletMobile":"954516xxxx","aadhaarNumber":"336547xxxxxx","deviceResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID.........."}';

              curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

              //for debug only!
              curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
              curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

              $resp = curl_exec($curl);
              curl_close($curl);


              ?>
            

              URL url = new URL("https://sandbox.rechapi.com/transaction.php");
              HttpURLConnection http = (HttpURLConnection)url.openConnection();
              http.setRequestMethod("POST");
              http.setDoOutput(true);
              http.setRequestProperty("accept", "application/json");
              http.setRequestProperty("content-type", "application/json");

              String data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"234\",\"amount\":\"100\",\"mobile\":\"\",\"urid\":\"5546523abc\",\"bankId\":\"1\",\"customerMobile\":\"900121xxxx\",\"outletMobile\":\"954516xxxx\",\"aadhaarNumber\":\"336547xxxxxx\",\"deviceResponse\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID..........\"}";

              byte[] out = data.getBytes(StandardCharsets.UTF_8);
            

              var url = "https://sandbox.rechapi.com/transaction.php";

              var httpRequest = (HttpWebRequest)WebRequest.Create(url);
              httpRequest.Method = "POST";

              httpRequest.Headers["accept"] = "application/json";
              httpRequest.Headers["content-type"] = "application/json";

              var data = "{\"token\":\"xxxxxxx\",\"operatorId\":\"234\",\"amount\":\"100\",\"mobile\":\"\",\"urid\":\"5546523abc\",\"bankId\":\"1\",\"customerMobile\":\"900121xxxx\",\"outletMobile\":\"954516xxxx\",\"aadhaarNumber\":\"336547xxxxxx\",\"deviceResponse\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxQaWREYXRhPiAgID..........\"}";

              using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
              {
                streamWriter.Write(data);
              }

              var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
              using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
              {
                var result = streamReader.ReadToEnd();
              }

              Console.WriteLine(httpResponse.StatusCode);
            





Coming Soon







Transaction Status

This API returns Transaction Status
  • Please use this api only if required , Do not send 1 request per second or this api can be disabled for your account. Instead of this please use callback method.
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your website tracking id which you had passed at the time of transaction.
orderId string RAW_BODY Required This is our website order id which you will get at the time of transaction response.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED . Do not make your transaction success or failed from this value .
data array Here you will get details of your transaction .
resText string If you get value No such order found or transaction archived within 1 hr of your transaction time then you can update your transaction as failed.

              {
                "data": [
                {
                  "orderId": "172300",
                  "urid": "60b5f24378fc3",
                  "operatorId": "1",
                  "creditused": "10.0000",
                  "status": "SUCCESS",
                  "mobile": "5962823782",
                  "amount": "10.00",
                  "TransId": "",
                  "transTime": "2021-06-01 14:09:31",
                  "gstMode": "",
                  "remark": ""
                }
                ],
                "resText": "",
                "status": "SUCCESS"
              }
            

              curl 'https://sandbox.rechapi.com/utility/transactionStatus.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx","orderId":"172300"}' \
            

              <?php

              $url = "https://sandbox.rechapi.com/utility/transactionStatus.php";

              $curl = curl_init($url);
              curl_setopt($curl, CURLOPT_URL, $url);
              curl_setopt($curl, CURLOPT_POST, true);
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

              $headers = array(
              "accept: application/json",
              "content-type: application/json",
              );
              curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

              $data = '{"token":"xxxxxxxxxxxxx","orderId":"172300"}';

              curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

              //for debug only!
              curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
              curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

              $resp = curl_exec($curl);
              curl_close($curl);
              var_dump($resp);

              ?>
            

              URL url = new URL("https://sandbox.rechapi.com/utility/transactionStatus.php");
              HttpURLConnection http = (HttpURLConnection)url.openConnection();
              http.setRequestMethod("POST");
              http.setDoOutput(true);
              http.setRequestProperty("accept", "application/json");
              http.setRequestProperty("content-type", "application/json");

              String data = "{\"token\":\"xxxxxxxxxxxxx\",\"orderId\":\"172300\"}";

              byte[] out = data.getBytes(StandardCharsets.UTF_8);

              OutputStream stream = http.getOutputStream();
              stream.write(out);

              System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
              http.disconnect();

            

              var url = "https://sandbox.rechapi.com/utility/transactionStatus.php";

              var httpRequest = (HttpWebRequest)WebRequest.Create(url);
              httpRequest.Method = "POST";

              httpRequest.Headers["accept"] = "application/json";
              httpRequest.Headers["content-type"] = "application/json";

              var data = "{\"token\":\"xxxxxxxxxxxxx\",\"orderId\":\"172300\"}";

              using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
              {
                streamWriter.Write(data);
              }

              var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
              using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
              {
                var result = streamReader.ReadToEnd();
              }

              Console.WriteLine(httpResponse.StatusCode);
            

Balance API

This API returns Balance Status
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
balance string You will get balance here.

              {
                "status": "SUCCESS",
                "balance": "1378793.38",
                "resText": ""
              }
            

              curl 'https://prod.rechapi.com/utility/balance.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/utility/balance.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/utility/balance.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/utility/balance.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Last 50 Transaction

This API returns Last 50 Transaction Status
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
history array You will get list of history here.

              {
                "status": "SUCCESS",
                "history": [
                {
                  "orderId": "175832xxxx",
                  "urid": "5842341",
                  "operatorId": "1",
                  "creditused": "244.0200",
                  "status": "SUCCESS",
                  "mobile": "767697xxxx",
                  "amount": "249.00",
                  "TransId": "1408119518",
                  "transTime": "2021-06-28 16:37:45",
                  "gstMode": "P2P",
                  "remark": ""
                },
                {
                  "orderId": "175832xxxx",
                  "urid": "5842343",
                  "operatorId": "93",
                  "creditused": "193.0300",
                  "status": "SUCCESS",
                  "mobile": "829975xxxx",
                  "amount": "199.00",
                  "TransId": "BR0006AZXUMW",
                  "transTime": "2021-06-28 16:37:59",
                  "gstMode": "P2P",
                  "remark": ""
                },
                ...........
                ],
                "resText": ""
              }
            

              curl 'https://prod.rechapi.com/utility/last50transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/utility/last50transaction.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/utility/last50transaction.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/utility/last50transaction.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Operator List

This API returns Operator List
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
operatorList array You will get list of operator here.

              curl 'https://prod.rechapi.com/utility/operatorList.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/utility/operatorList.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/utility/operatorList.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/utility/operatorList.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Dispute Api

This API will be used for dispute , If transaction is successfull and customer not received credit then use this api .
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
orderId string RAW_BODY Required This is our website order id which you will get at the time of transaction response.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED . If value is SUCCESS it means transaction successfully disputed .

              {
                
                
                  "orderId": "172300",
                  "status": "SUCCESS",
                
                "resText": ""
                
              }
            

              curl 'https://sandbox.rechapi.com/utility/dispute.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx","orderId":"172300"}' \
            

              <?php

              $url = "https://sandbox.rechapi.com/utility/dispute.php";

              $curl = curl_init($url);
              curl_setopt($curl, CURLOPT_URL, $url);
              curl_setopt($curl, CURLOPT_POST, true);
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

              $headers = array(
              "accept: application/json",
              "content-type: application/json",
              );
              curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

              $data = '{"token":"xxxxxxxxxxxxx","orderId":"172300"}';

              curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

              //for debug only!
              curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
              curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

              $resp = curl_exec($curl);
              curl_close($curl);
              var_dump($resp);

              ?>
            

              URL url = new URL("https://sandbox.rechapi.com/utility/dispute.php");
              HttpURLConnection http = (HttpURLConnection)url.openConnection();
              http.setRequestMethod("POST");
              http.setDoOutput(true);
              http.setRequestProperty("accept", "application/json");
              http.setRequestProperty("content-type", "application/json");

              String data = "{\"token\":\"xxxxxxxxxxxxx\",\"orderId\":\"172300\"}";

              byte[] out = data.getBytes(StandardCharsets.UTF_8);

              OutputStream stream = http.getOutputStream();
              stream.write(out);

              System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
              http.disconnect();

            

              var url = "https://sandbox.rechapi.com/utility/dispute.php";

              var httpRequest = (HttpWebRequest)WebRequest.Create(url);
              httpRequest.Method = "POST";

              httpRequest.Headers["accept"] = "application/json";
              httpRequest.Headers["content-type"] = "application/json";

              var data = "{\"token\":\"xxxxxxxxxxxxx\",\"orderId\":\"172300\"}";

              using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
              {
                streamWriter.Write(data);
              }

              var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
              using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
              {
                var result = streamReader.ReadToEnd();
              }

              Console.WriteLine(httpResponse.StatusCode);
            

Operator List

This API returns State List
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
stateList array You will get list of state here.

              curl 'https://prod.rechapi.com/utility/stateList.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/utility/stateList.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/utility/stateList.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/utility/stateList.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Mobile Plan Finder

This API returns Prepaid Operator Plan List
  • Please use this api once in a day only and save result in your local database.
  • This result is not live with operator.
  • We update plan data in every 3 days interval.
  • This api does not show user special plan Hence you must need allow user to edit amount in your system.
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
operatorId string RAW_BODY Required This value you will get from Utility Api -> Operator List.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
plan array You will get list of plan here.

              curl 'https://prod.rechapi.com/utility/mobilePlan.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx","operatorId":"1"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/utility/mobilePlan.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx","operatorId":"1"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/utility/mobilePlan.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\",\"operatorId\":\"1\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/utility/mobilePlan.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxx\",\"operatorId\":\"1\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Mobile Details Finder

This API returns Details Of Mobile
  • Please use this api once in a day only and save result in your local database.
  • This result is not live with operator.
  • We update plan data in every 3 days interval.
  • This api does not show accurate operator hence it should be used as suggestion only.
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
dataList array You will get list of mobile sort code here . You can check mobile details by first 4 digit of mobile number

              curl 'https://prod.rechapi.com/utility/mobileDetails.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/utility/mobileDetails.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/utility/mobileDetails.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/utility/mobileDetails.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Send Otp For Mini-Kyc For Shop (Outlet)

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
outletMobile string RAW_BODY Required Pass 10 digit outlet mobile number


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED . If value is SUCCESS it means otp successfully sent to customer mobile number

{
  "data": {
    "status": "SUCCESS",
    "outletMobile": "9006xxxxxx",
    "resText": ""
  }
}

              

                curl 'https://sandbox.rechapi.com/outlet/sendOtp.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/outlet/sendOtp.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/outlet/sendOtp.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/outlet/sendOtp.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Registration Of Mini-Kyc For Shop (Outlet)

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
outletMobile string RAW_BODY Required Pass 10 digit outlet mobile number
otp string RAW_BODY Required You will need to send otp from Send Otp api
ownerName string RAW_BODY Required Outlet ownner name , Only Apha and Space are allowed
shopName string RAW_BODY Required Outlet name , Only Apha and Space are allowed
shopAddress string RAW_BODY Required Address of shop
areaPincode string RAW_BODY Required 6 digit area pincode of shop
email string RAW_BODY Required Email id of shop owner
pan string RAW_BODY Required Pan Number of shop owner
dob string RAW_BODY Required Date of Birth of shop owner (YYYY-MM-DD). For example 2021-12-31
aadhaar string RAW_BODY Required 12 digit aadhaar number of shop owner


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED/PENDING . If value is SUCCESS it means mini kyc is successfully done for outlet . If it gets PENDING you will need to send required document.

{
  "data": {
    "status": "SUCCESS",
    "outletMobile": "9006xxxxxx",
    "resText": "Kyc Approved . Keep Document of agent with yourself"
  }
}

              

                curl 'https://sandbox.rechapi.com/outlet/registerOutlet.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxx","outletMobile":"9006xxxxxxx","otp":"61238","ownerName":"Abcd Kumar","shopName":"abcd recharge","shopAddress":"hhd shhfgs sjwjw","areaPincode":"82xxxx","email":"abcd@gmail.com","pan":"BWTPKxxxxM","dob":"1991-01-01","aadhaar":"123412341234"}' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/outlet/registerOutlet.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxx","outletMobile":"9006xxxxxxx","otp":"61238","ownerName":"Abcd Kumar","shopName":"abcd recharge","shopAddress":"hhd shhfgs sjwjw","areaPincode":"82xxxx","email":"abcd@gmail.com","pan":"BWTPKxxxxM","dob":"1991-01-01","aadhaar":"123412341234"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/outlet/registerOutlet.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxx\",\"outletMobile\":\"9006xxxxxxx\",\"otp\":\"61238\",\"ownerName\":\"Abcd Kumar\",\"shopName\":\"abcd recharge\",\"shopAddress\":\"hhd shhfgs sjwjw\",\"areaPincode\":\"82xxxx\",\"email\":\"abcd@gmail.com\",\"pan\":\"BWTPKxxxxM\",\"dob\":\"1991-01-01\",\"aadhaar\":\"123412341234\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/outlet/registerOutlet.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxx\",\"outletMobile\":\"9006xxxxxxx\",\"otp\":\"61238\",\"ownerName\":\"Abcd Kumar\",\"shopName\":\"abcd recharge\",\"shopAddress\":\"hhd shhfgs sjwjw\",\"areaPincode\":\"82xxxx\",\"email\":\"abcd@gmail.com\",\"pan\":\"BWTPKxxxxM\",\"dob\":\"1991-01-01\",\"aadhaar\":\"123412341234\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Chekc Status Of Outlet

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
outletMobile string RAW_BODY Required Pass 10 digit outlet mobile number


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESSS/PENDING/FAILED .

{
  "data": {
    "status": "SUCCESSS",
    "outletMobile": "9006xxxxxx",
    "resText": ""
  }
}

              

                curl 'https://sandbox.rechapi.com/outlet/outletStatus.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/outlet/outletStatus.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/outlet/outletStatus.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/outlet/outletStatus.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxx\",\"outletMobile\":\"9006xxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Send Sms

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account . You will need to use smstoken value only
smsType trans RAW_BODY Required As of now we only providing transaction sms service
senderId string RAW_BODY Required 6 character sender id which is approved by DLT system
dltTemplateId string RAW_BODY Required You will get this value from your DLT portal , Each approved sms having unique DLT Template Id
entityId string RAW_BODY Required You will get this value from your DLT portal
message string RAW_BODY Required Maximum 340 character allowed to send sms
otp string RAW_BODY Optional If you do not have dlt approved template and sender id then in case of Otp sms you can pass otp here . We will send it from our dlt approved template
remark string RAW_BODY Optional Its required when you pass otp value . Upto 20 character are allowed.
urid string RAW_BODY Required Your website unique tracking id . It will be used to check delivery status of sms


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is PENDING/FAILED .

{
  "data": {
    "status": "PENDING",
    "orderId": "176203xxxx",
    "resText": "",
    "creditUsed": "1",
    "balance": "127"
  }
}

              

                curl 'https://sandbox.rechapi.com/sms/sendSms.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxxxx","smsType":"trans","senderId":"ABCDEF","dltTemplateId":"1307162601908xxxxxx","entityId":"xxxxxxxxxxx","mobile":"94392xxxxx","message":"Your otp for login is - 51856 . Abcd","urid":"60efe71c35209"}' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/sms/sendSms.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxxx","smsType":"trans","senderId":"ABCDEF","dltTemplateId":"1307162601908xxxxxx","entityId":"xxxxxxxxxxx","mobile":"94392xxxxx","message":"Your otp for login is - 51856 . Abcd","urid":"60efe71c35209"} ';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/sms/sendSms.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{"\token"\:"\xxxxxxxxxxx"\,"\smsType"\:"\trans"\,"\senderId"\:"\ABCDEF"\,"\dltTemplateId"\:"\1307162601908xxxxxx"\,\"entityId\":\"xxxxxxxxxxx\","\mobile"\:"\94392xxxxx"\,"\message"\:"\Your otp for login is - 51856 . Abcd"\,"\urid"\:"\60efe71c35209"\}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/sms/sendSms.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{"\token"\:"\xxxxxxxxxxx"\,"\smsType"\:"\trans"\,"\senderId"\:"\ABCDEF"\,"\dltTemplateId"\:"\1307162601908xxxxxx"\,\"entityId\":\"xxxxxxxxxxx\","\mobile"\:"\94392xxxxx"\,"\message"\:"\Your otp for login is - 51856 . Abcd"\,"\urid"\:"\60efe71c35209"\}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Cib Icici Regitration

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account . You will need to use smstoken value only
accountNumber trans RAW_BODY Required Account number of Corporate icici bank account
corpId string RAW_BODY Required Its your banking corporate id which is used for login in cib internet banking
userId string RAW_BODY Required Its your banking user id which is used for login in cib internet banking


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is PENDING/FAILED . When its PENDING you will need to login to you icici internet banking and then go to Connected Banking->Connected Baking Approval . After then you will need to approve Rechapi

{
  "data": {
    "status": "PENDING",
    "resText": "",
    
  }
}

              

                curl 'https://prod.rechapi.com/cibIcici/cibRegistration.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx"}' \
              
                
                  <?php
                  $url = "https://prod.rechapi.com/cibIcici/cibRegistration.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://prod.rechapi.com/cibIcici/cibRegistration.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://prod.rechapi.com/cibIcici/cibRegistration.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Cib Icici Regitration Status

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account . You will need to use smstoken value only
accountNumber trans RAW_BODY Required Account number of Corporate icici bank account
corpId string RAW_BODY Required Its your banking corporate id which is used for login in cib internet banking
userId string RAW_BODY Required Its your banking user id which is used for login in cib internet banking


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is PENDING/FAILED . When its PENDING you will need to login to you icici internet banking and then go to Connected Banking->Connected Baking Approval . After then you will need to approve Rechapi

{
  "data": {
    "status": "PENDING",
    "resText": "",
    
  }
}

              

                curl 'https://prod.rechapi.com/cibIcici/cibStatus.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx"}' \
              
                
                  <?php
                  $url = "https://prod.rechapi.com/cibIcici/cibStatus.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://prod.rechapi.com/cibIcici/cibStatus.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://prod.rechapi.com/cibIcici/cibStatus.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Cib Icici Balance Check

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account . You will need to use smstoken value only
accountNumber trans RAW_BODY Required Account number of Corporate icici bank account
corpId string RAW_BODY Required Its your banking corporate id which is used for login in cib internet banking
userId string RAW_BODY Required Its your banking user id which is used for login in cib internet banking


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED

{
  "data": {
    "status": "SUCCESS",
    "balace":"10452.40",
    "resText": "",
    
  }
}

              

                curl 'https://prod.rechapi.com/cibIcici/balance.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx"}' \
              
                
                  <?php
                  $url = "https://prod.rechapi.com/cibIcici/balance.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://prod.rechapi.com/cibIcici/balance.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://prod.rechapi.com/cibIcici/balance.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Cib Icici Statement Check

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account . You will need to use smstoken value only
accountNumber trans RAW_BODY Required Account number of Corporate icici bank account
corpId string RAW_BODY Required Its your banking corporate id which is used for login in cib internet banking
userId string RAW_BODY Required Its your banking user id which is used for login in cib internet banking
fromDate string RAW_BODY Required (YYYY-MM-DD). For example 2021-12-31
toDate string RAW_BODY Required (YYYY-MM-DD). For example 2021-12-31


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
statement array Bank statement response

{
  "data": {
    "status": "SUCCESS",
    "resText": "",
    "statement": [
    {
      "CHEQUENO": "",
      "TXNDATE": "17-07-2021 08:35:38",
      "REMARKS": "INF/INFT/xxxxxxxxx/xxxxx by xxxxx from RECHAPI/xxxxxxx",
      "AMOUNT": "23,686.00",
      "BALANCE": "xxxxxxx",
      "VALUEDATE": "17-07-2021",
      "TYPE": "DR",
      "TRANSACTIONID": "xxxxxx"
    },.........
    
  }
}

              

                curl 'https://prod.rechapi.com/cibIcici/statement.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx","fromDate":"2021-07-17","toDate":"2021-07-17"}' \
              
                
                  <?php
                  $url = "https://prod.rechapi.com/cibIcici/statement.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxxx","accountNumber":"xxxxxxxxxxx","corpId":"xxxxxxxx","userId":"xxxxxxxxx","fromDate":"2021-07-17","toDate":"2021-07-17"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://prod.rechapi.com/cibIcici/statement.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\",\"fromDate\":\"2021-07-17\",\"toDate\":\"2021-07-17\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://prod.rechapi.com/cibIcici/statement.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxxxxx\",\"accountNumber\":\"xxxxxxxxxxx\",\"corpId\":\"xxxxxxxx\",\"userId\":\"xxxxxxxxx\",\"fromDate\":\"2021-07-17\",\"toDate\":\"2021-07-17\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Authorize mobile to transfer fund

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account . You will need to use smstoken value only
mobile trans RAW_BODY Required 10 digit mobile number
limit string RAW_BODY Optional Set the limit for mobile
maxAmount string RAW_BODY Optional Set maximum amount limit for mobile


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED

{
  "data": {
    "status": "SUCCESS",
    "mobile": "700xxxxxxx",
    "availableLimit": "1460874146",
    "maxAmountLimit": "3000000",
    "resText": "Operation Successful"
  }
}

              

                curl 'https://prod.rechapi.com/cibIcici/authorizeMobile.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxxxx","mobile":"700xxxxxxx","maxAmount":"3000000"}' \
              
                
                  <?php
                  $url = "https://prod.rechapi.com/cibIcici/authorizeMobile.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxxxxx","mobile":"700xxxxxxx","maxAmount":"3000000"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://prod.rechapi.com/cibIcici/authorizeMobile.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxxxxx\",\"mobile\":\"700xxxxxxx\",\"maxAmount\":\"3000000\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://prod.rechapi.com/cibIcici/authorizeMobile.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxxxxx\",\"mobile\":\"700xxxxxxx\",\"maxAmount\":\"3000000\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Transfer Fund from icici bank

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId 218 RAW_BODY Required
ifscCode string RAW_BODY Required Beneficiary Bank ifsc code.
accountNumber string RAW_BODY Required Beneficiary bank account number .
beneficiaryName string RAW_BODY Required Beneficiary bank account name .
amount string RAW_BODY Required Amount which you want to transfer .
mobile string RAW_BODY Required Authrized mobile number .
method string RAW_BODY Required Possible values are IMPS/NEFT/RTGS/TPT .
iciciAccountNumber string RAW_BODY Required Your icic bank account number which is registered with us .


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your #urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This value come from #mobile value you have passed in api .
amount string This is the transaction amount.
transId string This is operator side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is operator name .
bal string Your final balance after transaction . Please save this value if its greater than 0 only.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS.
tdsAmount string Amount of tds deducted from your commission. This will be paid to your PAN number

{
  "data": {
    "orderId": "17628xxxx",
    "status": "SUCCESS",
    "mobile": "93117xxxx",
    "amount": "1000",
    "transId": "024571343771",
    "error_code": "201",
    "service": "PAYOUT CIB",
    "bal": "1776.0300",
    "creditUsed": "3.0000",
    "resText": "Transaction Successful",
    "gstMode": "P2A",
    "tdsAmount": "0"
  }
}

              

                curl 'https://prod.rechapi.com/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxx","urid":"22961","operatorId":"218","ifscCode":"UBIN0911xxx","accountNumber":"565151000xxxxx","mobile":"93117xxxxx","amount":"50000","beneficiaryName":"xxxxxxxxx","method":"IMPS","iciciAccountNumber":"xxxxxxxx"}' \
              
                
                  <?php
                  $url = "https://prod.rechapi.com/transaction.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxx","urid":"22961","operatorId":"218","ifscCode":"UBIN0911xxx","accountNumber":"565151000xxxxx","mobile":"93117xxxxx","amount":"50000","beneficiaryName":"xxxxxxxxx","method":"IMPS","iciciAccountNumber":"xxxxxxxx"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://prod.rechapi.com/transaction.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxx\",\"urid\":\"22961\",\"operatorId\":\"218\",\"ifscCode\":\"UBIN0911xxx\",\"accountNumber\":\"565151000xxxxx\",\"mobile\":\"93117xxxxx\",\"amount\":\"50000\",\"beneficiaryName\":\"xxxxxxxxx\",\"method\":\"IMPS\",\"iciciAccountNumber\":\"xxxxxxxx\"}" ;
                
                

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://prod.rechapi.com/transaction.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxx\",\"urid\":\"22961\",\"operatorId\":\"218\",\"ifscCode\":\"UBIN0911xxx\",\"accountNumber\":\"565151000xxxxx\",\"mobile\":\"93117xxxxx\",\"amount\":\"50000\",\"beneficiaryName\":\"xxxxxxxxx\",\"method\":\"IMPS\",\"iciciAccountNumber\":\"xxxxxxxx\"}" ;

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Payout Api

Please note that this api should be used for payout purpose only . If we found it is used for DMT your account will be suspended without any notice.
BODY PARAMS

RAW_BODY
json

HEADERS

Γ°ΕΈβ€œΛœ
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId string RAW_BODY Required 232
customerMobile string RAW_BODY Required You need to pass mobile number of customer.
amount string RAW_BODY Required Pass transaction amount in this field like 10,20 etc.
accountNumber string RAW_BODY Required Beneficiary Account Number.
ifscCode string RAW_BODY Required Beneficiary Bank Ifsc Code.
beneficiaryName string RAW_BODY Required Only alphabet and space are allowed.
method string RAW_BODY Required Possible values IMPS/NEFT/RTGS


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your #urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This value come from #mobile value you have passed in api .
amount string This is the transaction amount.
transId string This is operator side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is operator name .
bal string Your final balance after transaction . Please save this value if its greater than 0 only.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS.
tdsAmount string Amount of tds deducted from your commission. This will be paid to your PAN number

              {
                "data": {
                  "orderId": "1210708",
                  "status": "PENDING",
                  "mobile": "9000000000",
                  "amount": "100",
                  "transId": "",
                  "error_code": "201",
                  "service": "FUND TRANSFER",
                  "bal": "98462.0000",
                  "creditUsed": "107.0000",
                  "resText": "",
                  "tdsAmount": "0.11",
                  "gstMode": ""
                  }
                }

              

                curl 'https://sandbox.rechapi.com/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxx","customerMobile":"93690xxxxx","urid":"62547xx","operatorId":"232","amount":"2405.00","accountNumber":"917617xxxxx","ifscCode":"PYTM0123456","beneficiaryName":"Paytm Payment Bank","method":"NEFT"}' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/transaction.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxx","customerMobile":"93690xxxxx","urid":"62547xx","operatorId":"232","amount":"2405.00","accountNumber":"917617xxxxx","ifscCode":"PYTM0123456","beneficiaryName":"Paytm Payment Bank","method":"NEFT"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/transaction.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxx\",\"customerMobile\":\"93690xxxxx\",\"urid\":\"62547xx\",\"operatorId\":\"232\",\"amount\":\"2405.00\",\"accountNumber\":\"917617xxxxx\",\"ifscCode\":\"PYTM0123456\",\"beneficiaryName\":\"Paytm Payment Bank\",\"method\":\"NEFT\"}";

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/transaction.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxx\",\"customerMobile\":\"93690xxxxx\",\"urid\":\"62547xx\",\"operatorId\":\"232\",\"amount\":\"2405.00\",\"accountNumber\":\"917617xxxxx\",\"ifscCode\":\"PYTM0123456\",\"beneficiaryName\":\"Paytm Payment Bank\",\"method\":\"NEFT\"}";

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);
              

Bus Stops

This API returns Bus Stops
BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
data array You will list of bus stop here with its id value which you will need to pass in bus list api .

{
  "data": [
    {
      "sourceId": "1",
      "stopName": "Hyderabad"
    },
    {
      "sourceId": "2",
      "stopName": "Delhi"
    },
    {
      "sourceId": "3",
      "stopName": "Avinashi"
    },
    {
      "sourceId": "4",
      "stopName": "Chennai"
    },
    {
      "sourceId": "5",
      "stopName": "Aurangabad"
    },
    {
      "sourceId": "6",
      "stopName": "Surat"
    },
    {
      "sourceId": "7",
      "stopName": "Ernakulam"
    },.........
            

              curl 'https://prod.rechapi.com/bus/busStops.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/bus/busStops.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/bus/busStops.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/bus/busStops.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Bus List

This API returns List Of Bus Api
BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
sourceId string RAW_BODY Required Source Id of bus , This value you will get from Bus Stops Api
destinationId string RAW_BODY Required DestinationId Id of bus , This value you will get from Bus Stops Api
journyDate string RAW_BODY Required Pass journey date here in format of YYYY-MM-DD. For eg 2021-02-28 Api


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
busList array You will list of bus list here .
amenities string Amenities provided by bus .
commission string This is estimated commission you will get when you book seat , However exact commission you will get on Seat Layout api .
busId string This value will be required to book seat.
bpId string This value will be required to book seat.
dpId string This value will be required to book seat.

{
  "status": "SUCCESS",
  "resText": "",
  "busList": [
    {
      "amenities": {
        "ac": "",
        "sleeper": "yes",
        "pushback": "",
        "liveTrackingAvailable": "",
        "chargingPoint": ""
      },
      "arrivalTime": "2021-08-19 08:40:00",
      "avlSeats": "28",
      "avlWindowsSeats": "",
      "busType": "NON A/C Sleeper (2+1)",
      "departureTime": "2021-08-18 22:35:00",
      "travelDuration": "10:05:00",
      "doj": "2021-08-18",
      "busName": "GreenLine Travels And Holidays",
      "fares": [
        "999",
        "1110",
        "1249"
      ],
      "busId": "198395",
      "boardingPoints": [
        {
          "bpId": "18361115",
          "bpName": "Bhel",
          "bpTime": "2021-08-18 21:00:00",
          "bpAddress": "Opp Kaveri Hotel ",
          "contactNumber": "9394760884"
        }
      ],
      "droppingPoints": [
        {
          "dpId": "17954462",
          "dpName": "Others",
          "dpTime": "2021-08-19 06:30:00",
          "dpAddress": "Chikkaballapur",
          "contactNumber": "9394760884"
        }
        
      ],
      "cancellationPolicy": "0:24:100:0;24:48:20:0;48:168:15:0;168:-1:10:0",
      "partialCancellationAllowed": "false",
      "commission": "49.00"
    },.......
            

              curl 'https://sandbox.rechapi.com/bus/busList.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxx","sourceId":"1","destinationId":"10","journyDate":"2021-08-19"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/bus/busList.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx","sourceId":"1","destinationId":"10","journyDate":"2021-08-19"}';
            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/bus/busList.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxx\",\"sourceId\":\"1\",\"destinationId\":\"10\",\"journyDate\":\"2021-08-19\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/bus/busList.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxx\",\"sourceId\":\"1\",\"destinationId\":\"10\",\"journyDate\":\"2021-08-19\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Bus List

This API returns Seat Layout Of Bus
BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
busId string RAW_BODY Required busId of bus , This value you will get from Bus List Api


Response
Following are the parameters received in the response:

Parameter Type Description
isAvailable string Possible value of this is false/true
fare string fare value of seat .
name string Name of seat .
colums string Column number
busId string This value will be required to book seat.
row string Row number
width string Width of a seat, possible values are 1 or 2
zIndex string Index(0-lower,1-upper)
length string Length of a seat, possible values are 1 or 2
commission string Amount of commission you will get when ticket is booked
Seat Layout Example

{
  "status": "SUCCESS",
  "resText": "",
  "busId": "198493",
  "seatLayout": [
    {
      "isAvailable": "false",
      "fare": "1469",
      "name": "L1",
      "colums": "0",
      "row": "3",
      "width": "1",
      "zIndex": "0",
      "length": "2",
      "ladiesSeat": "true",
      "maleSeat": "",
      "commission": "69"
    },......
            

              curl 'https://sandbox.rechapi.com/bus/seatLayout.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxx","sourceId":"1","destinationId":"10","journyDate":"2021-08-19"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/bus/seatLayout.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx","sourceId":"1","destinationId":"10","journyDate":"2021-08-19"}';
            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/bus/seatLayout.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxx\",\"sourceId\":\"1\",\"destinationId\":\"10\",\"journyDate\":\"2021-08-19\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/bus/seatLayout.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxx\",\"sourceId\":\"1\",\"destinationId\":\"10\",\"journyDate\":\"2021-08-19\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Bus List

This API will block seat for next 5 minute
BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
busId string RAW_BODY Required busId of bus , This value you will get from Bus List Api
bpId string RAW_BODY Required Boarding point bpId value
dpId string RAW_BODY Required Dropping point dpId value
customerMobile string RAW_BODY Required 10 digit customer mobile number
passengerDetails array RAW_BODY Required Passenger details , Max 5 passenger allowed. For eg array("name"=>"Abc Kumar","seatName"=>"10U","age"=>"29","gender"=>"M")


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
bookingId string You will get booking id value when seat gets blocked.
dynamicFare string If its value is yes then you have to block ticket again as price for seat has been changed

{
  "status": "SUCCESS",
  "data": {
    "bookingId": "611928f279224",
    "status": "BLOCKED",
    "dynamicFare": ""
  },
  "resText": "Seat blocked"
}
            

              curl 'https://sandbox.rechapi.com/bus/blockSeat.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","busId":"198590","bpId":"19511904","dpId":"19519575","passengerDetails":[{"name":"Abc Kumar","seatName":"10U","age":"29","gender":"M"}],"customerMobile":"9000000000"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/bus/blockSeat.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxxxxx","busId":"198590","bpId":"19511904","dpId":"19519575","passengerDetails":[{"name":"Abc Kumar","seatName":"10U","age":"29","gender":"M"}],"customerMobile":"9000000000"}';
            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/bus/blockSeat.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxxxx\",\"busId\":\"198590\",\"bpId\":\"19511904\",\"dpId\":\"19519575\",\"passengerDetails\":[{\"name\":\"Abc Kumar\",\"seatName\":\"10U\",\"age\":\"29\",\"gender\":\"M\"}],\"customerMobile\":\"9000000000\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/bus/blockSeat.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxx\",\"busId\":\"198590\",\"bpId\":\"19511904\",\"dpId\":\"19519575\",\"passengerDetails\":[{\"name\":\"Abc Kumar\",\"seatName\":\"10U\",\"age\":\"29\",\"gender\":\"M\"}],\"customerMobile\":\"9000000000\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Bus List

This API will book blocked ticket
BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
bookingId string RAW_BODY Required This value you will get from Block Bus Seat Api
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId string RAW_BODY Required 498


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED/PENDING

{
  "data": {
    "orderId": "7675132",
    "status": "PENDING",
    "mobile": "9000000000",
    "amount": "780",
    "transId": "",
    "error_code": "201",
    "service": "BUS",
    "bal": "95116.8400",
    "creditUsed": "742.8600",
    "resText": "",
    "gstMode": "",
    "tdsAmount": "1.86"
  }
}
            

              curl 'https://sandbox.rechapi.com/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","bookingId":"6129ec1490ff4","urid":"19511904","operatorId":"498"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/transaction.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxxxxx","bookingId":"6129ec1490ff4","urid":"19511904","operatorId":"498"}';
            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/transaction.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxxxx\",\"bookingId\":\"6129ec1490ff4\",\"urid\":\"19511904\",\"operatorId\":\"498\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/transaction.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxx\",\"bookingId\":\"6129ec1490ff4\",\"urid\":\"19511904\",\"operatorId\":\"498\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Product List API

This API returns List Of Branch Voucher Please save this data on your local database
BODY PARAMS

RAW_BODY
json

HEADERS

πŸ“˜
Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED
productList string You will get product list details here.

              {
  "status": "SUCCESS",
  "productList": [
    {
      "productId": "2",
      "name": "Hidesign E-Gift card",
      "category": "Accessories",
      "discount": "9",
      "marginType": "per",
      "description": "Whether one is looking for a classy laptop bag, a wallet, a belt or an elegant clutch, Hidesign is the best place to shop. Present a Hidesign e-Gift card today and instantly up a loved one’s style. It takes only a few minutes to gift your friend fashionable Hidesign accessories.",
      "tnc": "This E- Gift Card is valid at all exclusive Hidesign boutiques in India.
This E- Gift Card can be redeemed only once.
This E- Gift Card cannot be redeemed against an online purchase.
This Gift card/ E- Gift Card can be redeemed only at selected outlets.
This is a bearer card, please treat it like cash. No duplicate cards shall be reissued if lost, misplaced or stolen.
The E- Gift Card will be replaced under certain terms and conditions in case of damage.
This card cannot be exchanged for cash.
E- Gift Cards are normally delivered instantly. But sometimes due to system issues, the delivery can be delayed up-to 24 hours.
This E- Gift Card can be redeemed just once.
No returns and no refunds on gift cards, E- gift cards and gift vouchers shipped by service provider. Please check the refund policy at http://www.rechapi.com/giftVoucherFaq.php for further details.", "price": { "type": "RANGE", "minAmount": "100", "maxAmount": "15000", "denominations": [] } },

              curl 'https://prod.rechapi.com/giftVoucher/productList.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://sandbox.rechapi.com/giftVoucher/productList.php";

            $curl = curl_init($url);
            curl_setopt($curl, CURLOPT_URL, $url);
            curl_setopt($curl, CURLOPT_POST, true);
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

            $headers = array(
            "accept: application/json",
            "content-type: application/json",
            );
            curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

            $data = '{"token":"xxxxx"}';

            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

            //for debug only!
            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

            $resp = curl_exec($curl);
            curl_close($curl);
            var_dump($resp);

            ?>
          

            URL url = new URL("https://sandbox.rechapi.com/giftVoucher/productList.php");
            HttpURLConnection http = (HttpURLConnection)url.openConnection();
            http.setRequestMethod("POST");
            http.setDoOutput(true);
            http.setRequestProperty("accept", "application/json");
            http.setRequestProperty("content-type", "application/json");

            String data = "{\"token\":\"xxxxxx\"}";

            byte[] out = data.getBytes(StandardCharsets.UTF_8);

            OutputStream stream = http.getOutputStream();
            stream.write(out);

            System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
            http.disconnect();
          

            var url = "https://sandbox.rechapi.com/giftVoucher/productList.php";

            var httpRequest = (HttpWebRequest)WebRequest.Create(url);
            httpRequest.Method = "POST";

            httpRequest.Headers["accept"] = "application/json";
            httpRequest.Headers["content-type"] = "application/json";

            var data = "{\"token\":\"xxxxxxxxxx\"}";

            using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
            {
              streamWriter.Write(data);
            }

            var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
            {
              var result = streamReader.ReadToEnd();
            }

            Console.WriteLine(httpResponse.StatusCode);
          

Create Order For Gift Voucher

BODY PARAMS

RAW_BODY
json

HEADERS

Header Request

Accept : application/json
Content-Type: application/json

Request Parameters
Following are the parameters to be sent in the request body:

Parameter Type Position # Description
token string RAW_BODY Required This value you will get from your api account and this value will be used in each single api. Please do not share this token with anyone.
urid string RAW_BODY Required This is your service side tracking id which you need to pass every time unique . This data will help you with matching your transaction details with our server
operatorId string RAW_BODY Required 528
productId string RAW_BODY Required You will get this value from product list api.
amount string RAW_BODY Required Pass transaction amount in this field like 10,20 etc.
pincode string RAW_BODY Required Receiver area pincode.
receiverFirstName string RAW_BODY Required Only aplha character are allowed.
receiverLastName string RAW_BODY Required Only aplha character are allowed.
senderFirstName string RAW_BODY Required Only aplha character are allowed.
receiverEmail string RAW_BODY Required Pass receiver email id
receiverMobile string RAW_BODY Required Pass 10 digit receiver mobile number
address string RAW_BODY Required Only aplha numeric character are allowed. Max 50 character allowed
landmark string RAW_BODY Required Only aplha numeric character are allowed. Max 50 character allowed
deliveryMode string RAW_BODY Required Possible values API or MAIL


Response
Following are the parameters received in the response:

Parameter Type Description
orderId string This is our server side order id against your #urid value , Save this value for transaction status tracking.
status string Possible value of this is SUCCESS/PENDING/FAILED . In case if you don't get any value (Mainly because of timeout between your server and our server) then save your transaction as pending. Later use status check api to confirm your transaction status
mobile string This value come from #mobile value you have passed in api .
amount string This is the transaction amount.
transId string This is operator side transaction id.
error_code string You do not need to save this thing as it required when there is issue with api . This value is for our internal purpose only.
service string This is operator name .
bal string Your final balance after transaction . Please save this value if its greater than 0 only.
creditUsed string This is amount which was debited from your account.
resText string In case if you face any error you will get this value.
gstMode string This value you will get when your transaction status is SUCCESS.
tdsAmount string Amount of tds deducted from your commission. This will be paid to your PAN number
cardDetails string If transaction directly gets success you will get card details here

              {
  "data": {
    "orderId": "23628xxxx",
    "status": "SUCCESS",
    "mobile": "xxxxx",
    "amount": "101",
    "transId": "111135145989",
    "beneficiaryName": "",
    "error_code": "201",
    "service": "Digital Gift Voucher",
    "bal": "173.4900",
    "creditUsed": "97.1500",
    "resText": "Transaction Successful",
    "gstMode": "NA",
    "tdsAmount": "0.19",
    "cardDetails": {
      "productName": "Bigbasket E-Gift Card",
      "cardNumber": "10043000xxxxxx",
      "pinNumber": "10xxxx",
      "expireDate": "2022-11-03",
      "activationUrl": "",
      "activationCode": "",
      "barcode": "",
      "amount": "101.00",
      "cardId": "xxxxxxxx"
    }
  }
}

              

                curl 'https://sandbox.rechapi.com/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxx","operatorId":"528","urid":"106","productId":"15","amount":"101","pincode":"xxxxx","receiverFirstName":"Sandep","receiverLastName":"Kumar","receiverEmail":"xxxxxxx@gmail.com","receiverMobile":"xxxxxxxx","address":"Gurugram","landmark":"Udyog Vihar"}' \
              
                
                  <?php
                  $url = "https://sandbox.rechapi.com/transaction.php";

                  $curl = curl_init($url);
                  curl_setopt($curl, CURLOPT_URL, $url);
                  curl_setopt($curl, CURLOPT_POST, true);
                  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

                  $headers = array(
                  "accept: application/json",
                  "content-type: application/json",
                  );
                  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

                  $data = '{"token":"xxxxxxxx","operatorId":"528","urid":"106","productId":"15","amount":"101","pincode":"xxxxx","receiverFirstName":"Sandep","receiverLastName":"Kumar","receiverEmail":"xxxxxxx@gmail.com","receiverMobile":"xxxxxxxx","address":"Gurugram","landmark":"Udyog Vihar"}';

                  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

                  //for debug only!
                  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
                  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

                  $resp = curl_exec($curl);
                  curl_close($curl);
                  ?>
                
              

                URL url = new URL("https://sandbox.rechapi.com/transaction.php");
                HttpURLConnection http = (HttpURLConnection)url.openConnection();
                http.setRequestMethod("POST");
                http.setDoOutput(true);
                http.setRequestProperty("accept", "application/json");
                http.setRequestProperty("content-type", "application/json");

                String data = "{\"token\":\"xxxxxxxx\",\"operatorId\":\"528\",\"urid\":\"106\",\"productId\":\"15\",\"amount\":\"101\",\"pincode\":\"xxxxx\",\"receiverFirstName\":\"Sandep\",\"receiverLastName\":\"Kumar\",\"receiverEmail\":\"xxxxxxx@gmail.com\",\"receiverMobile\":\"xxxxxxxx\",\"address\":\"Gurugram\",\"landmark\":\"Udyog Vihar\"}";

                byte[] out = data.getBytes(StandardCharsets.UTF_8);

                OutputStream stream = http.getOutputStream();
                stream.write(out);

                System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
                http.disconnect();
              

                var url = "https://sandbox.rechapi.com/transaction.php";

                var httpRequest = (HttpWebRequest)WebRequest.Create(url);
                httpRequest.Method = "POST";

                httpRequest.Headers["accept"] = "application/json";
                httpRequest.Headers["content-type"] = "application/json";

                var data = "{\"token\":\"xxxxxxxx\",\"operatorId\":\"528\",\"urid\":\"106\",\"productId\":\"15\",\"amount\":\"101\",\"pincode\":\"xxxxx\",\"receiverFirstName\":\"Sandep\",\"receiverLastName\":\"Kumar\",\"receiverEmail\":\"xxxxxxx@gmail.com\",\"receiverMobile\":\"xxxxxxxx\",\"address\":\"Gurugram\",\"landmark\":\"Udyog Vihar\"}";

                using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                {
                  streamWriter.Write(data);
                }

                var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                {
                  var result = streamReader.ReadToEnd();
                }

                Console.WriteLine(httpResponse.StatusCode);