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.
  • 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. We accept duplicate urid value after 1 day. Maximum length of urid should be 20
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.
cbId string RAW_BODY Optional Pass your callback id value here which you have added in dashboard.
bbpsId string RAW_BODY Optional Pass bbpsId value of operator
customerMobile string RAW_BODY Optional 10 digit customer mobile number
opvalue1 string RAW_BODY Optional Optional value 1.
opvalue2 string RAW_BODY Optional Optional value 2.
opvalue3 string RAW_BODY Optional Optional value 3.


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.
resCode 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.
p2pBuyerBal string Your final p2p buyer balance after transaction . Please save this value if its greater than 0 only.
p2aBuyerBal string Your final p2a buyer 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.

              {
                "data": {
                  "orderId": "1210708",
                  "status": "PENDING",
                  "mobile": "9000000000",
                  "amount": "100",
                  "transId": "",
                  "resCode": "201",
                  "p2pBuyerBal": "100.23",
                  "p2aBuyerBal": "98462.0000",
                  "creditUsed": "98.0000",
                  "resText": ""
                 
                  }
                }

              

                curl 'https://api.clubapi.in/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://api.clubapi.in/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);
                  $info = curl_getinfo($curl);
                  
                  curl_close($curl);
                  
                  
                  ?>
                
              

                URL url = new URL("https://api.clubapi.in/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);
              

AEPS Bank List

This API returns the list of all banks in India along which will be used in aeps.
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 .

              {
  "orderId": "240610111521xxxxxx",
  "status": "SUCCESS",
  "bankList": [
    {
      "bankId": "607094",
      "bankName": "STATE BANK OF INDIA",
      "bankShortName": "SBI",
      "neft": "1",
      "rtgs": "1",
      "imps": "1",
      "aeps": "1"
    },
    {
      "bankId": "607027",
      "bankName": "PUNJAB NATIONAL BANK",
      "bankShortName": "PNB",
      "neft": "1",
      "rtgs": "1",
      "imps": "1",
      "aeps": "1"
    },.......

              

                curl 'https://api.clubapi.in/utility/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxxx","transType":"aepsBankList"}' \
              

            <?php

            $url = "https://api.clubapi.in/utility/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":"xxxxxxxxx","transType":"aepsBankList"}';

            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://api.clubapi.in/utility/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\":\"xxxxxxxxx\",\"transType\":\"aepsBankList\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxx\",\"transType\":\"aepsBankList\"}";

            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 Outlet Login

This API is need to be called every day at once to activate aeps.
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 .

              {"orderId":"2406101048453xxxx","status":"SUCCESS","outletData":{"status":"SUCCESS","transSessionId":""},"resText":"Login Successfull","pointUsed":"","resCode":"200"}

              

                curl 'https://api.clubapi.in/utility/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","outletMobile":"76993xxxx","transType":"outletAepsLogin","agentAadhaar":"989445xxxxx","latitude":"22.xxxxx","longitude":"88.xxxxxx","authType":"LOGIN","deviceResponse":"PD94b...........'"} \
              

            <?php

            $url = "https://api.clubapi.in/utility/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","outletMobile":"76993xxxx","transType":"outletAepsLogin","agentAadhaar":"989445xxxxx","latitude":"22.xxxxx","longitude":"88.xxxxxx","authType":"LOGIN","deviceResponse":"PD94b...........'"}';

            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://api.clubapi.in/utility/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\",\"outletMobile\":\"76993xxxx\",\"transType\":\"outletAepsLogin\",\"agentAadhaar\":\"989445xxxxx\",\"latitude\":\"22.xxxxx\",\"longitude\":\"88.xxxxxx\",\"authType\":\"LOGIN\",\"deviceResponse\":\"PD94b...........'\"}";

            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://api.clubapi.in/utility/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\",\"outletMobile\":\"76993xxxx\",\"transType\":\"outletAepsLogin\",\"agentAadhaar\":\"989445xxxxx\",\"latitude\":\"22.xxxxx\",\"longitude\":\"88.xxxxxx\",\"authType\":\"LOGIN\",\"deviceResponse\":\"PD94b...........'\"}";

            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 Mini-Statement

This API is used to fetch Bank C/A statement . You will get mini statement on callback
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 742
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
mobile 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.
resCode 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.

              {
  "orderId": "2406122020xxxxxx",
  "status": "PENDING",
  "mobile": "xxxxxx",
  "amount": "0",
  "transId": "",
  "resCode": "",
  "p2pBuyerBal": "xxxxx.75",
  "p2aBuyerBal": "xxxxxx.33",
  "totalBuyerBal": "xxxx.08",
  "creditUsed": "0",
  "beneficiaryName": "",
  "resText": ""
}

            

              curl 'https://api.clubapi.in/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxx","operatorId":"742","amount":"0","mobile":"787884xxxxx","urid":"xxxxx","outletMobile":"9519763902","deviceResponse":"PD94bWwgdmVyxxxxxxxxxxxx","bankId":"607094","aadhaarNumber":"900736585212","customerMobile":"787884xxxxx","latitude":"26.xxxxx","longitude":"88.xxxxxxx"}' \
            

              <?php

              $url = "https://api.clubapi.in/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","operatorId":"742","amount":"0","mobile":"787884xxxxx","urid":"xxxxx","outletMobile":"9519763902","deviceResponse":"PD94bWwgdmVyxxxxxxxxxxxx","bankId":"607094","aadhaarNumber":"900736585212","customerMobile":"787884xxxxx","latitude":"26.xxxxx","longitude":"88.xxxxxxx"}';

              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://api.clubapi.in/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\",\"operatorId\":\"742\",\"amount\":\"0\",\"mobile\":\"787884xxxxx\",\"urid\":\"xxxxx\",\"outletMobile\":\"9519763902\",\"deviceResponse\":\"PD94bWwgdmVyxxxxxxxxxxxx\",\"bankId\":\"607094\",\"aadhaarNumber\":\"900736585212\",\"customerMobile\":\"787884xxxxx\",\"latitude\":\"26.xxxxx\",\"longitude\":\"88.xxxxxxx\"}";

              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\":\"xxxxxx\",\"operatorId\":\"742\",\"amount\":\"0\",\"mobile\":\"787884xxxxx\",\"urid\":\"xxxxx\",\"outletMobile\":\"9519763902\",\"deviceResponse\":\"PD94bWwgdmVyxxxxxxxxxxxx\",\"bankId\":\"607094\",\"aadhaarNumber\":\"900736585212\",\"customerMobile\":\"787884xxxxx\",\"latitude\":\"26.xxxxx\",\"longitude\":\"88.xxxxxxx\"}";

              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 Transaction Validation

You must need to validate transaction every time before withdrawal of money. Once successfull then only call withdrawal 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.
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 742
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
mobile 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 agent 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 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.
resCode 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.
p2pBuyerBal string Your final p2p buyer balance after transaction . Please save this value if its greater than 0 only.
p2aBuyerBal string Your final p2a buyer 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.

              {
  "orderId": "24061220302541495",
  "status": "SUCCESS",
  "data": {
    "status": "SUCCESS",
    "transSessionId": "335177"
  },
  "resText": "Validation Successfull",
  "pointUsed": "",
  "resCode": "200"
}

            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxx","outletMobile":"9545xxxxxxx","transType":"aepsTransactionValidate","agentAadhaar":"34004xxxxx","customerAadhaar":"51157xxxxxxx","latitude":"21.xxxxxx","longitude":"80.xxxxxx","customerMobile":"98342xxxxx","aepsType":"ministatement","bankName":"STATE BANK OF INDIA","authType":"TRANS","bankId":"607094","deviceResponse":"PFBpZERhdGE+CiAgIDxEYXRhIHR5cGU9IlgiPk1qQXlOQzB3TmkweE1sxxxxxxxxx","amount":"100"}' \
            

              <?php

              $url = "https://api.clubapi.in/utility/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","outletMobile":"9545xxxxxxx","transType":"aepsTransactionValidate","agentAadhaar":"34004xxxxx","customerAadhaar":"51157xxxxxxx","latitude":"21.xxxxxx","longitude":"80.xxxxxx","customerMobile":"98342xxxxx","aepsType":"ministatement","bankName":"STATE BANK OF INDIA","authType":"TRANS","bankId":"607094","deviceResponse":"PFBpZERhdGE+CiAgIDxEYXRhIHR5cGU9IlgiPk1qQXlOQzB3TmkweE1sxxxxxxxxx","amount":"100"}';

              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://api.clubapi.in/utility/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\",\"outletMobile\":\"9545xxxxxxx\",\"transType\":\"aepsTransactionValidate\",\"agentAadhaar\":\"34004xxxxx\",\"customerAadhaar\":\"51157xxxxxxx\",\"latitude\":\"21.xxxxxx\",\"longitude\":\"80.xxxxxx\",\"customerMobile\":\"98342xxxxx\",\"aepsType\":\"ministatement\",\"bankName\":\"STATE BANK OF INDIA\",\"authType\":\"TRANS\",\"bankId\":\"607094\",\"deviceResponse\":\"PFBpZERhdGE+CiAgIDxEYXRhIHR5cGU9IlgiPk1qQXlOQzB3TmkweE1sxxxxxxxxx\",\"amount\":\"100\"}";

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

            

              var url = "https://api.clubapi.in/utility/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\",\"outletMobile\":\"9545xxxxxxx\",\"transType\":\"aepsTransactionValidate\",\"agentAadhaar\":\"34004xxxxx\",\"customerAadhaar\":\"51157xxxxxxx\",\"latitude\":\"21.xxxxxx\",\"longitude\":\"80.xxxxxx\",\"customerMobile\":\"98342xxxxx\",\"aepsType\":\"ministatement\",\"bankName\":\"STATE BANK OF INDIA\",\"authType\":\"TRANS\",\"bankId\":\"607094\",\"deviceResponse\":\"PFBpZERhdGE+CiAgIDxEYXRhIHR5cGU9IlgiPk1qQXlOQzB3TmkweE1sxxxxxxxxx\",\"amount\":\"100\"}";

              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":"240612203xxxxxxxx","status":"PENDING","mobile":"xxxxx","amount":"1200","transId":"","resCode":"","p2pBuyerBal":"xxxxxx.22","p2aBuyerBal":"xxxxxx.33","totalBuyerBal":"xxxxxx.55","creditUsed":"0","beneficiaryName":"","resText":""}}

            

              curl 'https://api.clubapi.in/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxx","operatorId":"741","amount":"1200","mobile":"xxxxx","urid":"xxxxx","outletMobile":"xxxxxx","deviceResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGxxxxxxxxxx","bankId":"607094","aadhaarNumber":"90073xxxxxxx","customerMobile":"xxxxxxxx","latitude":"26.xxxxxx","longitude":"88.xxxxxx"}' \
            

              <?php

              $url = "https://api.clubapi.in/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":"xxxxx","operatorId":"741","amount":"1200","mobile":"xxxxx","urid":"xxxxx","outletMobile":"xxxxxx","deviceResponse":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGxxxxxxxxxx","bankId":"607094","aadhaarNumber":"90073xxxxxxx","customerMobile":"xxxxxxxx","latitude":"26.xxxxxx","longitude":"88.xxxxxx"}';

              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://api.clubapi.in/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\":\"xxxxx\",\"operatorId\":\"741\",\"amount\":\"1200\",\"mobile\":\"xxxxx\",\"urid\":\"xxxxx\",\"outletMobile\":\"xxxxxx\",\"deviceResponse\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGxxxxxxxxxx\",\"bankId\":\"607094\",\"aadhaarNumber\":\"90073xxxxxxx\",\"customerMobile\":\"xxxxxxxx\",\"latitude\":\"26.xxxxxx\",\"longitude\":\"88.xxxxxx\"}";

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

              var url = "https://api.clubapi.in/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\":\"xxxxx\",\"operatorId\":\"741\",\"amount\":\"1200\",\"mobile\":\"xxxxx\",\"urid\":\"xxxxx\",\"outletMobile\":\"xxxxxx\",\"deviceResponse\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGxxxxxxxxxx\",\"bankId\":\"607094\",\"aadhaarNumber\":\"90073xxxxxxx\",\"customerMobile\":\"xxxxxxxx\",\"latitude\":\"26.xxxxxx\",\"longitude\":\"88.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);
            





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.
  • Status check only available for last 3 days transaction.
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. We only accept only same day urid value
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",
                  "resCode": "",
                  "resText": ""
                }
                ],
                "resText": ""
              }
              
              
              
              
              
            

              curl 'https://api.clubapi.in/utility/transactionStatus.php' \

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

              <?php

              $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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": {
    "buyer": {
      "buyer_p2a": "9999963076.00",
      "buyer_p2p": "9993821482.12",
      "buyer_total": "19993784558.12"
    },
    "seller": {
      "seller_p2a": "0.00",
      "seller_p2p": "0.00",
      "seller_total": "0"
    }
  },
  
                "points": "3.13",
                "resCode": "200",
                "resText": ""
              }
            

              curl 'https://api.clubapi.in/utility/balance.php' \

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

            <?php

            $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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);
          

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://api.clubapi.in/utility/operatorList.php' \

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

            <?php

            $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/utility/dispute.php' \

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

              <?php

              $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/utility/stateList.php' \

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

            <?php

            $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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.
transType string RAW_BODY Required mobilePlan


Response
Following are the parameters received in the response:

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

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","operatorId":"2","transType":"mobilePlan","urid":"66667f0b5a977"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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":"2","transType":"mobilePlan","urid":"66667f0b5a977"}';

            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://api.clubapi.in/utility/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\":\"2\",\"transType\":\"mobilePlan\",\"urid\":\"66667f0b5a977\"}";

            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://api.clubapi.in/utility/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\":\"2\",\"transType\":\"mobilePlan\",\"urid\":\"66667f0b5a977\"}";

            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://api.clubapi.in/utility/mobileDetails.php' \

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

            <?php

            $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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);
          

Bank Account Verification

This API returns Bank account name using ifsc code and account number. This will only work with those bank who support IMPS
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.
customerMobile string RAW_BODY Required This is customer mobile number.
operatorId string RAW_BODY Required Pass 233 as its value
accountNumber string RAW_BODY Required Pass Bank Account Number
ifscCode string RAW_BODY Required Pass Bank Ifsc Code


Response
Following are the parameters received in the response:

Parameter Type Description
data array Here you will get details of your transaction .

              {
  "data": {
    "orderId": "248189xxxx",
    "status": "SUCCESS",
    "mobile": "787449xxxx",
    "amount": "3",
    "transId": "2069096xxxxx",
    "beneficiaryName": "Mr Raj",
    "error_code": "201",
    "service": "Beneficiary Validation",
    "bal": "1098xxxx",
    "creditUsed": "xxxxx",
    "resText": "Transaction Successful",
    "gstMode": "P2P",
    "tdsAmount": "0.00"
  }
}
            

              curl 'https://api.clubapi.in/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxx","urid":"xxxxxx","operatorId":"233","ifscCode":"SBIN00xxxxx","accountNumber":"395870xxxxxxx","customerMobile":"787449xxxx"}' \
            

              <?php

              $url = "https://api.clubapi.in/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","urid":"xxxxxx","operatorId":"233","ifscCode":"SBIN00xxxxx","accountNumber":"395870xxxxxxx","customerMobile":"787449xxxx"}';

              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://api.clubapi.in/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\",\"urid\":\"xxxxxx\",\"operatorId\":\"233\",\"ifscCode\":\"SBIN00xxxxx\",\"accountNumber\":\"395870xxxxxxx\",\"customerMobile\":\"787449xxxx\"}";

              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://api.clubapi.in/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\",\"urid\":\"xxxxxx\",\"operatorId\":\"233\",\"ifscCode\":\"SBIN00xxxxx\",\"accountNumber\":\"395870xxxxxxx\",\"customerMobile\":\"787449xxxx\"}";

              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

This API will be used to send otp to aadhaar linked mobile number
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.
aadhaarNumber string RAW_BODY Required Customer aadhaar number.
aadhaarMobile string RAW_BODY Optional Customer aadhaar linked mobile number. If you pass this then we will match your given number with aadhaar linked number , If its matched then in verification api we will return mobileMatched=1
urid string RAW_BODY Optional Your system order id . Max length 20 character
transType string RAW_BODY Required aadhaarSendOtp


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
sessionId string You will this unique value after each api called.
pointUsed string This is point debited from your account.

              {"orderId":"2406092023xxxxxxxxx","status":"SUCCESS","aadhaarData":{"otpStatus":"SUCCESS","otpSessionId":"240609202xxxxxx","resText":"Otp Successfully sent"},"resText":"Otp Successfully sent","pointUsed":"3","resCode":"200"}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxxx","aadhaarNumber":"65376701xxxx","aadhaarMobile":"809534xxxx","urid":"6665c1edc156b","transType":"aadhaarSendOtp"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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":"xxxxxxxxx","aadhaarNumber":"65376701xxxx","aadhaarMobile":"809534xxxx","urid":"6665c1edc156b","transType":"aadhaarSendOtp"}';

            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://api.clubapi.in/utility/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\":\"xxxxxxxxx\",\"aadhaarNumber\":\"65376701xxxx\",\"aadhaarMobile\":\"809534xxxx\",\"urid\":\"6665c1edc156b\",\"transType\":\"aadhaarSendOtp\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxx\",\"aadhaarNumber\":\"65376701xxxx\",\"aadhaarMobile\":\"809534xxxx\",\"urid\":\"6665c1edc156b\",\"transType\":\"aadhaarSendOtp\"}";

            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);
          

Verify Otp

This API will be used to validate otp to aadhaar linked mobile number
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.
aadhaarNumber string RAW_BODY Required Customer aadhaar number.
otp string RAW_BODY Required Otp.
aadhaarMobile string RAW_BODY Optional Customer aadhaar linked mobile number. If you pass this then we will match your given number with aadhaar linked number , If its matched then in verification api we will return mobileMatched=1
otpSessionId string RAW_BODY Optional Session id which you have received when used Send Otp api


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
data string Here you will get all details related to kyc.

              
              {
  "orderId": "24060920131xxxxxx",
  "status": "SUCCESS",
  "aadhaarData": {
    "fullName": "Deep xxxxx",
    "maskedAadhaar": "xxxxxxxx4253",
    "dob": "2001-09-05",
    "gender": "M",
    "address": {
      "country": "India",
      "district": "Raipur",
      "state": "Chhattisgarh",
      "post": "Raipur",
      "location": "xxxx",
      "vtc": "Raipur",
      "subdist": "xxxx",
      "street": "sector 1 street 1",
      "house": "xx",
      "landmark": "xxxx",
      "pincode": "492xxx",
      "careof": "S/O: Venimadhav xxxxxx"
    },
    "profilePic": "/9j/4AAQSkZJRgABAgAAAQABAAxxxxxxxxxxxxxx",
    "mobileVerified": 1,
    "emailHash": "",
    "mobileHash": "",
    "shareCode": "xxxx",
    "mobileMatched": "1"
  },
  "resText": "SUCCESS",
  "pointUsed": "",
  "resCode": "200"
}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","aadhaarNumber":"xxxxxxx","aadhaarMobile":"xxxxxxxx","otp":"175067","otpSessionId":"xxxxxx","transType":"aadhaarVerifyOtp"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","aadhaarNumber":"xxxxxxx","aadhaarMobile":"xxxxxxxx","otp":"175067","otpSessionId":"xxxxxx","transType":"aadhaarVerifyOtp"}';

            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://api.clubapi.in/utility/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\",\"aadhaarNumber\":\"xxxxxxx\",\"aadhaarMobile\":\"xxxxxxxx\",\"otp\":\"175067\",\"otpSessionId\":"xxxxxx",\"transType\":\"aadhaarVerifyOtp\"}";

            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://api.clubapi.in/utility/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\",\"aadhaarNumber\":\"xxxxxxx\",\"aadhaarMobile\":\"xxxxxxxx\",\"otp\":\"175067\",\"otpSessionId\":"xxxxxx",\"transType\":\"aadhaarVerifyOtp\"}";

            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);
          

Chech Pan Name

This API will be used to get pan name by pan number
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.
pan string RAW_BODY Required Customer pan number.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
panData string Here you will get pan data which will be available at time of fetch.
pointUsed string This is point debited from your account.

              {"orderId":"24060920233xxxxxx","status":"SUCCESS","panData":{"firstName":"xxxxxx","middleName":"xxxxxx","lastName":"","status":"SUCCESS"},"resText":"Pan Data Found","pointUsed":"1","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxx","pan":"CFYPCxxxxx","urid":"6665c1eb08131","transType":"panVerify"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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":"xxxxx","pan":"CFYPCxxxxx","urid":"6665c1eb08131","transType":"panVerify"}';

            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://api.clubapi.in/utility/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\":\"xxxxx\",\"pan\":\"CFYPCxxxxx\",\"urid\":\"6665c1eb08131\",\"transType\":\"panVerify\"}";

            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://api.clubapi.in/utility/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\":\"xxxxx\",\"pan\":\"CFYPCxxxxx\",\"urid\":\"6665c1eb08131\",\"transType\":\"panVerify\"}";

            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

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
aadhaarNumber string RAW_BODY Required 12 digit aadhaar number of shop owner
transType string RAW_BODY Required utiAgentRegistration


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.

{"orderId":"24060919153xxxxxx","status":"SUCCESS","utiData":{"status":"PENDING"},"resText":"Request accepted for agent registration","pointUsed":"100","resCode":""}

              

                curl 'https://api.clubapi.in/utility/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxxx","outletMobile":"9006xxxxxxx","aadhaarNumber":"123412341234","transType":"utiAgentRegistration"}' \
              
                
                  <?php
                  $url = "https://api.clubapi.in/utility/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","outletMobile":"9006xxxxxxx","aadhaarNumber":"123412341234","transType":"utiAgentRegistration"}';

                  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://api.clubapi.in/utility/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\",\"outletMobile\":\"9006xxxxxxx\",\"aadhaarNumber\":\"123412341234\",\"transType\":\"utiAgentRegistration\"}" ;
                
                

                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://api.clubapi.in/utility/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\",\"outletMobile\":\"9006xxxxxxx\",\"aadhaarNumber\":\"123412341234\",\"transType\":\"utiAgentRegistration\"}" ;

                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://api.clubapi.in/psa/psaStatus.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","outletMobile":"9006xxxxxxx"} ' \
              
                
                  <?php
                  $url = "https://api.clubapi.in/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://api.clubapi.in/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);
              

Add Amount In Pan Agent Account

Minimum 100Rs 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 738 RAW_BODY Required
mobile string RAW_BODY Required You need to pass uti psa agent id here .
amount string RAW_BODY Required Pass amount here , This amount will be credited to agent account .


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": "24061112530xxxxxxxx",
    "status": "PENDING",
    "mobile": "RECH768-BADAxxxxxx",
    "amount": "500",
    "transId": "",
    "resCode": "",
    "p2pBuyerBal": "1000.69",
    "p2aBuyerBal": "10000.15",
    "totalBuyerBal": "1000.84",
    "creditUsed": "500",
    "beneficiaryName": "",
    "resText": ""
  }
}

              

                curl 'https://api.clubapi.in/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","operatorId":"738","amount":"500","mobile":"RECH768-xxxxxxxxx","urid":"2406111xxxxxxx5"} ' \
              
                
                  <?php
                  $url = "https://api.clubapi.in/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":"738","amount":"500","mobile":"RECH768-xxxxxxxxx","urid":"2406111xxxxxxx5"}';

                  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://api.clubapi.in/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\":\"738\",\"amount\":\"500\",\"mobile\":\"RECH768-xxxxxxxxx\",\"urid\":\"2406111xxxxxxx5\"}" ;
                
                

                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://api.clubapi.in/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\":\"738\",\"amount\":\"500\",\"mobile\":\"RECH768-xxxxxxxxx\",\"urid\":\"2406111xxxxxxx5\"}" ;

                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.
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 739 RAW_BODY Required
mobile string RAW_BODY Required You need to pass uti psa agent id here .
amount string RAW_BODY Required Pass amount here , This amount will be credited to agent account .


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": "24061112530xxxxxxxx",
    "status": "PENDING",
    "mobile": "RECH768-BADAxxxxxx",
    "amount": "10",
    "transId": "",
    "resCode": "",
    "p2pBuyerBal": "1000.69",
    "p2aBuyerBal": "10000.15",
    "totalBuyerBal": "1000.84",
    "creditUsed": "500",
    "beneficiaryName": "",
    "resText": ""
  }
}

              

                curl 'https://api.clubapi.in/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxxx","operatorId":"739","amount":"500","mobile":"RECH768-xxxxxxxxx","urid":"2406111xxxxxxx5"}' \
              
                
                  <?php
                  $url = "https://api.clubapi.in/utility/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":"739","amount":"500","mobile":"RECH768-xxxxxxxxx","urid":"2406111xxxxxxx5"}';

                  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://api.clubapi.in/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\":\"739\",\"amount\":\"500\",\"mobile\":\"RECH768-xxxxxxxxx\",\"urid\":\"2406111xxxxxxx5\"}" ;
                
                

                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://api.clubapi.in/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\":\"739\",\"amount\":\"500\",\"mobile\":\"RECH768-xxxxxxxxx\",\"urid\":\"2406111xxxxxxx5\"}" ;

                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);
              

Get Due Amount From Operator

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.
mobile string RAW_BODY Required Pass operator customer details as required
bbpsId string RAW_BODY Required Pass bbpsId value of operator
customerMobile string RAW_BODY Required 10 digit customer mobile number
transType string RAW_BODY Required billFetch
urid Alphanumeric RAW_BODY Required Your system tracking id . Max 20 character allowed
opvalue1 string RAW_BODY Required Optional value required by operator.
opvalue2 string RAW_BODY Required Optional value required by operator.
opvalue3 string RAW_BODY Required Optional value required by operator.
opvalue4 string RAW_BODY Required Optional value required by operator.
opvalue5 string RAW_BODY Required Optional value required by operator.


Response
Following are the parameters received in the response:

Parameter Type Description
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
exactness string
  1. EXACT -> user can not edit amount
  2. EXACT_DOWN -> user can edit but can not pay more than bill amount
  3. EXACT_UP -> user can edit but can not pay less than bill amount
  4. ANY -> user can edit amount and pay
  5. ADHOC -> the biller does not send amount
  6. BOTH -> same as adhoc but biller may send amount
data object Biller bill details.

{
  "orderId": "2406091956xxxxx",
  "status": "SUCCESS",
  "billData": {
    "billFetchStatus": "SUCCESS",
    "billAmount": "1298.00",
    "billName": "Mithun kumar patra",
    "billNumber": "NA",
    "dueDate": "2024-06-09",
    "billPeriod": "QUARTERLY",
    "billerBalance": "",
    "billRemark": "",
    "bbpsName": "Wish Net Pvt Ltd",
    "exactness": "EXACT",
    "resText": ""
  },
  "resText": " -",
  "pointUsed": "",
  "resCode": ""
}


              

                curl 'https://api.clubapi.in/utility/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxx","mobile":"xxxxxx","bbpsId":"WISH00000xxxxx","opvalue1":"","opvalue2":"","opvalue3":"","opvalue4":"","customerMobile":"xxxxxx","outletMobile":"xxxxx","transType":"billFetch","urid":"6665bb79b2ee8"}' \
              
                
                  <?php
                  $url = "https://api.clubapi.in/utility/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":"xxxxx","mobile":"xxxxxx","bbpsId":"WISH00000xxxxx","opvalue1":"","opvalue2":"","opvalue3":"","opvalue4":"","customerMobile":"xxxxxx","outletMobile":"xxxxx","transType":"billFetch","urid":"6665bb79b2ee8"}';

                  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://api.clubapi.in/utility/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\":\"xxxxx\",\"mobile\":\"xxxxxx\",\"bbpsId\":\"WISH00000xxxxx\",\"opvalue1\":\"\",\"opvalue2\":\"\",\"opvalue3\":\"\",\"opvalue4\":\"\",\"customerMobile\":\"xxxxxx\",\"outletMobile\":\"xxxxx\",\"transType\":\"billFetch\",\"urid\":\"6665bb79b2ee8\"}" ;
                
                

                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://api.clubapi.in/utility/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\":\"xxxxx\",\"mobile\":\"xxxxxx\",\"bbpsId\":\"WISH00000xxxxx\",\"opvalue1\":\"\",\"opvalue2\":\"\",\"opvalue3\":\"\",\"opvalue4\":\"\",\"customerMobile\":\"xxxxxx\",\"outletMobile\":\"xxxxx\",\"transType\":\"billFetch\",\"urid\":\"6665bb79b2ee8\"}" ;

                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);
              

Bill Payment

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
bbpsId string RAW_BODY Required Pass bbpsId value of operator
customerMobile string RAW_BODY Required 10 digit customer mobile number
mobile string RAW_BODY Required Pass operator customer details as required
amount string RAW_BODY Required Pass due amount
opvalue1 string RAW_BODY Required Optional value required by operator.
opvalue2 string RAW_BODY Required Optional value required by operator.
opvalue3 string RAW_BODY Required Optional value required by operator.
opvalue4 string RAW_BODY Required Optional value required by operator.
opvalue5 string RAW_BODY Required Optional value required by operator.


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.
resCode 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.

{
                "data": {
                  "orderId": "1210708",
                  "status": "PENDING",
                  "mobile": "9000000000",
                  "amount": "100",
                  "transId": "",
                  "resCode": "201",
                  "p2pBuyerBal": "100.23",
                  "p2aBuyerBal": "98462.0000",
                  "creditUsed": "98.0000",
                  "resText": ""
                 
                  }
                }

              

                curl 'https://api.clubapi.in/transaction.php' \

                -H 'accept: application/json' \
                -H 'content-type: application/json' \
                --data-raw '{"token":"xxxxxx","urid":"22961","bbpsId":"UPPCL0000UTP02","customerMobile":"945509xxxx","opvalue1":"","mobile":"751720127xxx","amount":"224"}' \
              
                
                  <?php
                  $url = "https://api.clubapi.in/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","bbpsId":"UPPCL0000UTP02","customerMobile":"945509xxxx","opvalue1":"","mobile":"751720127xxx","amount":"224"}';

                  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://api.clubapi.in/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\",\"bbpsId\":\"UPPCL0000UTP02\",\"customerMobile\":\"945509xxxx\",\"opvalue1\":\"\",\"mobile\":\"751720127xxx\",\"amount\":\"224\"}" ;
                
                

                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://api.clubapi.in/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\",\"bbpsId\":\"UPPCL0000UTP02\",\"customerMobile\":\"945509xxxx\",\"opvalue1\":\"\",\"mobile\":\"751720127xxx\",\"amount\":\"224\"}" ;

                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);
              

Check Upi Name

This API will be used to get upi handle name by upi id
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.
upiId string RAW_BODY Required Customer upi id . For eg 9083xxxxx@axl


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
upiData string Here you will get upi data which will be available at time of fetch.
pointUsed string This is point debited from your account.

              {"orderId":"2406091906xxxxxxxx","status":"SUCCESS","upiData":{"status":"SUCCESS","upiName":"Abusahid xxxx"},"resText":"","pointUsed":"2","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxx","upiId":"9083xxxxx@axl","urid":"xxxxxx","transType":"upiName"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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":"xxxxx","upiId":"9083xxxxx@axl","urid":"xxxxxx","transType":"upiName"}';

            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://api.clubapi.in/utility/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\":\"xxxxx\",\"upiId\":\"9083xxxxx@axl\",\"urid\":\"xxxxxx\",\"transType\":\"upiName\"}";

            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://api.clubapi.in/utility/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\":\"xxxxx\",\"upiId\":\"9083xxxxx@axl\",\"urid\":\"xxxxxx\",\"transType\":\"upiName\"}";

            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

This API will be used to register outlet. Before this you must need to complete agent aadhaar kyc using aadhaar kyc 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.
aadhaarNumber string RAW_BODY Required agent aadhaar number.
outletMobile string RAW_BODY Required Agent Mobile
transType string RAW_BODY Required outletRegister
pan string RAW_BODY Required Agent Pan Number
shopName string RAW_BODY Required Only alpha numric and space allowed
shopAddress string RAW_BODY Required Only alpha numric and space allowed
shopPincode string RAW_BODY Required Shop pincode
email string RAW_BODY Required Agent Email
accountNumber string RAW_BODY Required Agent Bank Account Number
ifscCode string RAW_BODY Required Agent Bank Ifsc Code
latitude string RAW_BODY Required Agent Shop Latitude
longitude string RAW_BODY Required Agent Shop Longitude


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
outletData object You will get outlet data here.
pointUsed string This is point debited from your account.

              {"orderId":"2406092101xxxxxx","status":"SUCCESS","outletData":{"otpStatus":"SUCCESS"},"resText":"Outler sent to mobile","pointUsed":"","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxxxx","outletMobile":"98860xxxxxxx","transType":"outletRegister","aadhaarNumber":"418622xxxxxx","pan":"DAJPRxxxxx","shopName":"sre Raghavendra stores","shopAddress":"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx","shopPincode":"515xxx","email":"xxxxxxxxx@gmail.com","accountNumber":"xxxxxxxxx","ifscCode":"KKBKxxxxxxx","latitude":"14.xxxxx","longitude":"77.xxxxx"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","outletMobile":"98860xxxxxxx","transType":"outletRegister","aadhaarNumber":"418622xxxxxx","pan":"DAJPRxxxxx","shopName":"sre Raghavendra stores","shopAddress":"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx","shopPincode":"515xxx","email":"xxxxxxxxx@gmail.com","accountNumber":"xxxxxxxxx","ifscCode":"KKBKxxxxxxx","latitude":"14.xxxxx","longitude":"77.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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"outletMobile\":\"98860xxxxxxx\",\"transType\":\"outletRegister\",\"aadhaarNumber\":\"418622xxxxxx\",\"pan\":\"DAJPRxxxxx\",\"shopName\":\"sre Raghavendra stores\",\"shopAddress\":\"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx\",\"shopPincode\":\"515xxx\",\"email\":\"xxxxxxxxx@gmail.com\",\"accountNumber\":\"xxxxxxxxx\",\"ifscCode\":\"KKBKxxxxxxx\",\"latitude\":\"14.xxxxx\",\"longitude\":\"77.xxxxx\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"outletMobile\":\"98860xxxxxxx\",\"transType\":\"outletRegister\",\"aadhaarNumber\":\"418622xxxxxx\",\"pan\":\"DAJPRxxxxx\",\"shopName\":\"sre Raghavendra stores\",\"shopAddress\":\"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx\",\"shopPincode\":\"515xxx\",\"email\":\"xxxxxxxxx@gmail.com\",\"accountNumber\":\"xxxxxxxxx\",\"ifscCode\":\"KKBKxxxxxxx\",\"latitude\":\"14.xxxxx\",\"longitude\":\"77.xxxxx\"}";

            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);
          

Verify 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.
aadhaarNumber string RAW_BODY Required agent aadhaar number.
outletMobile string RAW_BODY Required Agent Mobile
transType string RAW_BODY Required outletRegister
pan string RAW_BODY Required Agent Pan Number
shopName string RAW_BODY Required Only alpha numric and space allowed
shopAddress string RAW_BODY Required Only alpha numric and space allowed
shopPincode string RAW_BODY Required Shop pincode
email string RAW_BODY Required Agent Email
accountNumber string RAW_BODY Required Agent Bank Account Number
ifscCode string RAW_BODY Required Agent Bank Ifsc Code
latitude string RAW_BODY Required Agent Shop Latitude
longitude string RAW_BODY Required Agent Shop Longitude


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
outletData object You will get outlet data here.
pointUsed string This is point debited from your account.

              {"orderId":"2406092101xxxxxx","status":"SUCCESS","outletData":{"otpStatus":"SUCCESS"},"resText":"Outler sent to mobile","pointUsed":"","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxxxx","outletMobile":"98860xxxxxxx","transType":"outletRegister","aadhaarNumber":"418622xxxxxx","pan":"DAJPRxxxxx","shopName":"sre Raghavendra stores","shopAddress":"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx","shopPincode":"515xxx","email":"xxxxxxxxx@gmail.com","accountNumber":"xxxxxxxxx","ifscCode":"KKBKxxxxxxx","latitude":"14.xxxxx","longitude":"77.xxxxx"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","outletMobile":"98860xxxxxxx","transType":"outletRegister","aadhaarNumber":"418622xxxxxx","pan":"DAJPRxxxxx","shopName":"sre Raghavendra stores","shopAddress":"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx","shopPincode":"515xxx","email":"xxxxxxxxx@gmail.com","accountNumber":"xxxxxxxxx","ifscCode":"KKBKxxxxxxx","latitude":"14.xxxxx","longitude":"77.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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"outletMobile\":\"98860xxxxxxx\",\"transType\":\"outletRegister\",\"aadhaarNumber\":\"418622xxxxxx\",\"pan\":\"DAJPRxxxxx\",\"shopName\":\"sre Raghavendra stores\",\"shopAddress\":\"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx\",\"shopPincode\":\"515xxx\",\"email\":\"xxxxxxxxx@gmail.com\",\"accountNumber\":\"xxxxxxxxx\",\"ifscCode\":\"KKBKxxxxxxx\",\"latitude\":\"14.xxxxx\",\"longitude\":\"77.xxxxx\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"outletMobile\":\"98860xxxxxxx\",\"transType\":\"outletRegister\",\"aadhaarNumber\":\"418622xxxxxx\",\"pan\":\"DAJPRxxxxx\",\"shopName\":\"sre Raghavendra stores\",\"shopAddress\":\"SO Ranganthappa Anantapur xxxxxxxxxx 515xxx\",\"shopPincode\":\"515xxx\",\"email\":\"xxxxxxxxx@gmail.com\",\"accountNumber\":\"xxxxxxxxx\",\"ifscCode\":\"KKBKxxxxxxx\",\"latitude\":\"14.xxxxx\",\"longitude\":\"77.xxxxx\"}";

            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);
          

Outlet 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.
outletMobile string RAW_BODY Required Agent Mobile
transType string RAW_BODY Required outletStatus


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
outletData object You will get outlet data here.
pointUsed string This is point debited from your account.

              {"orderId":"24060921020xxxxx","status":"SUCCESS","outletData":{"status":"OutletRegistered","serviceList":{"AEPS":{"serviceName":"AEPS","status":"ACTIVE","remark":"","loggedStatus":"LOGGEDIN"}},"loginTime":"2023-06-09 21:00:17"},"resText":"","pointUsed":"","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxxxx","outletMobile":"98860xxxxx","transType":"outletStatus","aadhaarNumber":"418622xxxxxx"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","outletMobile":"98860xxxxx","transType":"outletStatus","aadhaarNumber":"418622xxxxxx"}';

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"outletMobile\":\"98860xxxxx\",\"transType\":\"outletStatus\",\"aadhaarNumber\":\"418622xxxxxx\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"outletMobile\":\"98860xxxxx\",\"transType\":\"outletStatus\",\"aadhaarNumber\":\"418622xxxxxx\"}";

            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);
          

GST LITE

Get Gst basic details like Legal Name , Trade Name , Address etc
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.
gstNumber string RAW_BODY Required Gst Number
transType string RAW_BODY Required gstLite


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
outletData object You will get outlet data here.
pointUsed string This is point debited from your account.

              {"orderId":"24061019120xxxxx","status":"SUCCESS","gstData":{"legalName":"xxxxxx PRIVATE LIMITED","tradeName":"xxxxx PRIVATE LIMITED","companyType":"Private Limited Company","pincode":"","city":"","status":"Active","taxPayerType":"Regular","address":"xxxxxxxxxxxxxx, Maharashtra"},"resText":"","pointUsed":"2","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","gstNumber":"27AAECFxxxxxxxx","transType":"gstLite"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","gstNumber":"27AAECFxxxxxxxx","transType":"gstLite"}';

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"gstNumber\":\"27AAECFxxxxxxxx\",\"transType\":\"gstLite\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"gstNumber\":\"27AAECFxxxxxxxx\",\"transType\":\"gstLite\"}";

            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);
          

GST ADVANCE

Get Gst basic details like Legal Name , Trade Name , Address along with its filing 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.
gstNumber string RAW_BODY Required Gst Number
transType string RAW_BODY Required gstAdvance


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
outletData object You will get outlet data here.
pointUsed string This is point debited from your account.

              {"orderId":"24061019120xxxxx","status":"SUCCESS","gstData":{"legalName":"xxxxxx PRIVATE LIMITED","tradeName":"xxxxx PRIVATE LIMITED","companyType":"Private Limited Company","pincode":"","city":"","status":"Active","taxPayerType":"Regular","address":"xxxxxxxxxxxxxx, Maharashtra"},"resText":"","pointUsed":"2","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","gstNumber":"27AAECFxxxxxxxx","transType":"gstLite"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","gstNumber":"27AAECFxxxxxxxx","transType":"gstAdvance"}';

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"gstNumber\":\"27AAECFxxxxxxxx\",\"transType\":\"gstAdvance\"}";

            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://api.clubapi.in/utility/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\":\"xxxxxxxxxx\",\"gstNumber\":\"27AAECFxxxxxxxx\",\"transType\":\"gstAdvance\"}";

            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);
          

Chech Pan Name

This API will be used to get pan name by pan number
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.
pan string RAW_BODY Required Customer pan number.


Response
Following are the parameters received in the response:

Parameter Type Description
status string Possible value of this is SUCCESS/FAILED .
panData string Here you will get pan data which will be available at time of fetch.
pointUsed string This is point debited from your account.

              {"orderId":"24061121413xxxxx","status":"SUCCESS","beneficiaryData":{"fetchStatus":"SUCCESS","accountNumber":"75017xxxxxxx","ifscCode":"AIRP00xxxxxx","beneficiaryName":"Parul xxxxxx"},"resText":"","pointUsed":"2","resCode":""}
            

              curl 'https://api.clubapi.in/utility/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","urid":"66687736e36b5","transType":"bankAccountValidate","ifscCode":"xxxxxxx","accountNumber":"xxxxxxx"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/utility/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","urid":"66687736e36b5","transType":"bankAccountValidate","ifscCode":"xxxxxxx","accountNumber":"xxxxxxx"}';

            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://api.clubapi.in/utility/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\",\"urid\":\"66687736e36b5\",\"transType\":\"bankAccountValidate\",\"ifscCode\":\"xxxxxxx\",\"accountNumber\":\"xxxxxxx\"}";

            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://api.clubapi.in/utility/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\",\"urid\":\"66687736e36b5\",\"transType\":\"bankAccountValidate\",\"ifscCode\":\"xxxxxxx\",\"accountNumber\":\"xxxxxxx\"}";

            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://api.clubapi.in/bus/busStops.php' \

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

            <?php

            $url = "https://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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://api.clubapi.in/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.
busBookedId string RAW_BODY Required This value you will get from Block Bus Seat Api
operatorId string RAW_BODY Required 746
amount string RAW_BODY Required This is final payable price which you get at time of 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


Response
Following are the parameters received in the response:

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

 {"data":{"orderId":"24061213412xxxxx","status":"PENDING","mobile":"xxxxxx","amount":"190","transId":"","resCode":"","p2pBuyerBal":"xxxxxx.06","p2aBuyerBal":"xxxxxx.33","totalBuyerBal":"xxxxx.39","creditUsed":"xxxxx","beneficiaryName":"","resText":""}} ,           

              curl 'https://api.clubapi.in/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","operatorId":"746","amount":"190","mobile":"xxxxxx","urid":"xxxxxxx","busBookedId":"xxxxxxx"} ' \
            
          

            <?php

            $url = "https://api.clubapi.in/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":"746","amount":"190","mobile":"xxxxxx","urid":"xxxxxxx","busBookedId":"xxxxxxx"}';
            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://api.clubapi.in/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\":\"746\",\"amount\":\"190\",\"mobile\":\"xxxxxx\",\"urid\":\"xxxxxxx\",\"busBookedId\":\"xxxxxxx\"}";

            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://api.clubapi.in/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\":\"746\",\"amount\":\"190\",\"mobile\":\"xxxxxx\",\"urid\":\"xxxxxxx\",\"busBookedId\":\"xxxxxxx\"}";

            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);
          

Flight Airports

This API returns Flight Airport 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. 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 .

{
  "orderId": "2406121636xxxxxxxx",
  "data": [
    {
      "AirportCode": "AAA",
      "City": "Anaa",
      "Country": "PF",
      "AirportDesc": "Anaa"
    },
    {
      "AirportCode": "AAE",
      "City": "Annaba",
      "Country": "DZ",
      "AirportDesc": "Les Salines"
    },
    {
      "AirportCode": "AAL",
      "City": "Aalborg",
      "Country": "DK",
      "AirportDesc": "Aalborg"
    },
    {
      "AirportCode": "AAN",
      "City": "Al Ain",
      "Country": "AE",
      "AirportDesc": "Al Ain"
    },...........
            

              curl 'https://api.clubapi.in/flight/airports.php' \

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

            <?php

            $url = "https://api.clubapi.in/flight/airports.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://api.clubapi.in/flight/airports.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://api.clubapi.in/flight/airports.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);
          

Flight List

This API returns Flight 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. 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 .

{
  "status": "SUCCESS",
  "orderId": "24061216091168640",
  "resText": "",
  "flightList": [
    {
      "flightId": "66697ad2979e1",
      "flightName": "Indigo",
      "flightIcon": "https://prod.rechapi.com/flight/image/airlineLogo/6E.gif",
      "flightCode": "6E",
      "flightNumber": "2219",
      "flightClass": "RR",
      "departureTimeString": "2024-06-15T14:40:00",
      "arrivalTimeString": "2024-06-15T16:30:00",
      "departureTime": "02:40 PM",
      "departureDay": "2024-06-15",
      "travelDuration": "01:50 Hrs",
      "departureData": {
        "airportCode": "IXR",
        "airportName": "Ranchi",
        "terminal": "",
        "cityCode": "IXR",
        "cityName": "Ranchi",
        "countryCode": "IN",
        "countryName": "India"
      },
      "noOfStops": "0",
      "flightStops": [
        {
          "flightName": "Indigo",
          "flightIcon": "https://prod.rechapi.com/flight/image/airlineLogo/6E.gif",
          "flightCode": "6E",
          "flightNumber": "2219",
          "departureTime": "02:40 PM",
          "departureDay": "2024-06-15",
          "travelDuration": "01:50",
          "departurePlace": "Ranchi",
          "arrivalTime": "04:30 PM",
          "arrivalDay": "2024-06-15",
          "arrivalPlace": "Indira Gandhi Airport",
          "baggage": {
            "checkin": "15 Kilograms",
            "cabin": "7 KG"
          },
          "stopDetails": "",
          "flightCraft": "320"
        }
      ],
      "arrivalTime": "04:30 PM",
      "arrivalDay": "2024-06-15",
      "arrivalData": {
        "airportCode": "DEL",
        "airportName": "Indira Gandhi Airport",
        "terminal": "2",
        "cityCode": "DEL",
        "cityName": "Delhi",
        "countryCode": "IN",
        "countryName": "India"
      },
      "fare": "5851",
      "fareDetails": [
        {
          "total": "5851",
          "title": "Total"
        },
        {
          "total": "4450",
          "title": "Base Fare"
        },
        {
          "total": "1401",
          "title": "Surcharge"
        }
      ],
      "baggage": {
        "checkin": "15 Kilograms",
        "cabin": "7 KG"
      },
      "priceData": [
        {
          "fare": "5851",
          "fareType": "Saver",
          "fareId": "66697ad28cf0c",
          "fareCode": "R0IP",
          "fareRules": null
        },
        {
          "fare": "5851",
          "fareType": "SME.CrpCon",
          "fareId": "66697ad28d0f7",
          "fareCode": "RMIP",
          "fareRules": {
            "seat": {
              "name": "Seat",
              "value": "Chargable"
            },
            "meal": {
              "name": "Meal",
              "value": "Included but you need to select the same while booking"
            },
            "handBag": {
              "name": "hangBag",
              "value": "1 Bag Upto 7 Kg"
            },
            "checkinBag": {
              "name": "Check-In Baggage",
              "value": "15 Kg"
            },
            "changeFee": {
              "name": "Change Fee",
              "value": "NO-SHOW"
            },
            "cancellationFee": {
              "name": "Cancellation Fee",
              "value": "NO-SHOW"
            }
          }
        },
        {
          "fare": "5851",
          "fareType": "Saver",
          "fareId": "66697ad28d23d",
          "fareCode": "R0IP",
          "fareRules": null
        },
        {
          "fare": "6376",
          "fareType": "Flexi",
          "fareId": "66697ad28f298",
          "fareCode": "RUIP",
          "fareRules": {
            "seat": {
              "name": "Seat",
              "value": "All standard seats are free , 50% discount on Extra leg room seats (XL Rows)."
            },
            "meal": {
              "name": "Meal",
              "value": "Chargable"
            },
            "handBag": {
              "name": "hangBag",
              "value": "1 Bag Upto 7 Kg"
            },
            "checkinBag": {
              "name": "Check-In Baggage",
              "value": "15 Kg"
            },
            "changeFee": {
              "name": "Change Fee",
              "value": "Nill*"
            },
            "cancellationFee": {
              "name": "Cancellation Fee",
              "value": "500/Seat *"
            }
          }
        },
        {
          "fare": "6376",
          "fareType": "Flexi",
          "fareId": "66697ad28f575",
          "fareCode": "RUIP",
          "fareRules": {
            "seat": {
              "name": "Seat",
              "value": "All standard seats are free , 50% discount on Extra leg room seats (XL Rows)."
            },
            "meal": {
              "name": "Meal",
              "value": "Chargable"
            },
            "handBag": {
              "name": "hangBag",
              "value": "1 Bag Upto 7 Kg"
            },
            "checkinBag": {
              "name": "Check-In Baggage",
              "value": "15 Kg"
            },
            "changeFee": {
              "name": "Change Fee",
              "value": "Nill*"
            },
            "cancellationFee": {
              "name": "Cancellation Fee",
              "value": "500/Seat *"
            }
          }
        },
        {
          "fare": "10051",
          "fareType": "Super6E",
          "fareId": "66697ad2943c0",
          "fareCode": "RLIP",
          "fareRules": null
        }
      ],
      "isLCC": true,
      "fareCode": "R0IP",
      "airlineRemark": "On all Indigo Code shared flight, Free Meal will be included ..WEBB.",
      "isRefundable": true,
      "seatsAvailable": "6",
      "penaltyCharges": {
        "reissueCharge": null,
        "cancellationCharge": null
      },
      "returnFlight": null,
      "slotDepartureTime": {
        "timeSlot": {
          "name": "Mid Day",
          "value": "12pm - 4pm"
        },
        "flightTime": "1718442600",
        "flightDepartureTimeString": "2024-06-15T14:40:00",
        "flightDate": "2024-06-15 14:40:00",
        "earlyMorningTime": "1718418600",
        "morningTime": "1718433000",
        "midDayTime": "1718447400",
        "eveningTime": "1718461800",
        "nightTime": "1718476176"
      },
      "connectingAirports": [],
      "isInternational": "0"
    },............
            

              curl 'https://api.clubapi.in/flight/flightList.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxx","source":"IXR","destination":"DEL","journeyDate":"2022-06-15","journeyType":"1","flightType":"","adults":"1","children":"0","infants":"0","travelClass":"E","returnDate":""}' \
            
          

            <?php

            $url = "https://api.clubapi.in/flight/flightList.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","source":"IXR","destination":"DEL","journeyDate":"2022-06-15","journeyType":"1","flightType":"","adults":"1","children":"0","infants":"0","travelClass":"E","returnDate":""}';

            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://api.clubapi.in/flight/flightList.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\",\"source\":\"IXR\",\"destination\":\"DEL\",\"journeyDate\":\"2022-06-15\",\"journeyType\":\"1\",\"flightType\":\"\",\"adults\":\"1\",\"children\":\"0\",\"infants\":\"0\",\"travelClass\":\"E\",\"returnDate\":\"\"}";

            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://api.clubapi.in/flight/flightList.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\",\"source\":\"IXR\",\"destination\":\"DEL\",\"journeyDate\":\"2022-06-15\",\"journeyType\":\"1\",\"flightType\":\"\",\"adults\":\"1\",\"children\":\"0\",\"infants\":\"0\",\"travelClass\":\"E\",\"returnDate\":\"\"}";

            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);
          

Flight Airports

This API returns Flight Details
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. 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 .

{
  "status": "SUCCESS",
  "resText": "",
  "flightDetails": {
    "flightData": {
      "flightId": "66697ad2a2eb9",
      "flightName": "Air India Express",
      "flightIcon": "https://api.clubapi.in/flight/image/airlineLogo/I5.gif",
      "flightCode": "I5",
      "flightNumber": "549",
      "flightClass": "KC",
      "departureTimeString": "2024-06-15T13:30:00",
      "arrivalTimeString": "2024-06-15T15:15:00",
      "departureTime": "01:30 PM",
      "departureDay": "2024-06-15",
      "travelDuration": "01:45 Hrs",
      "departureData": {
        "airportCode": "IXR",
        "airportName": "Ranchi",
        "terminal": "",
        "cityCode": "IXR",
        "cityName": "Ranchi",
        "countryCode": "IN",
        "countryName": "India"
      },
      "noOfStops": "0",
      "flightStops": [
        {
          "flightName": "Air India Express",
          "flightIcon": "https://api.clubapi.in/flight/image/airlineLogo/I5.gif",
          "flightCode": "I5",
          "flightNumber": "549",
          "departureTime": "01:30 PM",
          "departureDay": "2024-06-15",
          "travelDuration": "01:45",
          "departurePlace": "Ranchi",
          "arrivalTime": "03:15 PM",
          "arrivalDay": "2024-06-15",
          "arrivalPlace": "Indira Gandhi Airport",
          "baggage": {
            "checkin": "15KG",
            "cabin": "7 Kg"
          },
          "stopDetails": "",
          "flightCraft": "320"
        }
      ],
      "arrivalTime": "03:15 PM",
      "arrivalDay": "2024-06-15",
      "arrivalData": {
        "airportCode": "DEL",
        "airportName": "Indira Gandhi Airport",
        "terminal": "3",
        "cityCode": "DEL",
        "cityName": "Delhi",
        "countryCode": "IN",
        "countryName": "India"
      },
      "fare": 5599,
      "fareDetails": [
        {
          "total": "5599",
          "title": "Total"
        },
        {
          "total": "4165",
          "title": "Base Fare"
        },
        {
          "total": "1434",
          "title": "Surcharge"
        }
      ],
      "baggage": {
        "checkin": "15KG",
        "cabin": "7 Kg"
      },
      "priceData": [
        {
          "fare": "5599",
          "fareType": "Publish",
          "fareId": "66697ad28b85e",
          "fareCode": "KNRA000",
          "fareRules": null
        },
        {
          "fare": "5599",
          "fareType": "Publish",
          "fareId": "66697ad28c018",
          "fareCode": "KNRA000",
          "fareRules": null
        },
        {
          "fare": "6019",
          "fareType": "Publish",
          "fareId": "66697ad28d710",
          "fareCode": "KNOA000",
          "fareRules": null
        }
      ],
      "isLCC": true,
      "fareCode": "KNRA000",
      "airlineRemark": "This is a Xpress Value fare.",
      "isRefundable": true,
      "seatsAvailable": "9",
      "penaltyCharges": {
        "reissueCharge": null,
        "cancellationCharge": null
      },
      "returnFlight": null,
      "slotDepartureTime": {
        "timeSlot": {
          "name": "Mid Day",
          "value": "12pm - 4pm"
        },
        "flightTime": "1718438400",
        "flightDepartureTimeString": "2024-06-15T13:30:00",
        "flightDate": "2024-06-15 13:30:00",
        "earlyMorningTime": "1718418600",
        "morningTime": "1718433000",
        "midDayTime": "1718447400",
        "eveningTime": "1718461800",
        "nightTime": "1718476176"
      },
      "connectingAirports": [],
      "isInternational": "0"
    },
    "returnFlightData": null,
    "totalFareData": {
      "total": "5599",
      "baseFare": "4165",
      "surcharge": "1434"
    }
  },
  "payableAmount": "5599",
  "totalFareData": {
    "total": "5599",
    "baseFare": "4165",
    "surcharge": "1434"
  },
  "rules": "UnVsZSBmb3IgSTUgxxxxxxxxxxxxxx",
  "returnRules": "",
  "sessionId": "66697ae4b5e7a",
  "journeyType": "1",
  "adults": "1",
  "childrens": "0",
  "infants": "0",
  "isInternational": "0"
}
            

              curl 'https://api.clubapi.in/flight/flightDetails.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxxx","flightId":"66697ad2a2eb9","returnFlightId":"","fareId":"66697ad28b85e","returnFareId":""}' \
            
          

            <?php

            $url = "https://api.clubapi.in/flight/flightDetails.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":"xxxxxxxxx","flightId":"66697ad2a2eb9","returnFlightId":"","fareId":"66697ad28b85e","returnFareId":""}';

            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://api.clubapi.in/flight/flightDetails.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\":\"xxxxxxxxx\",\"flightId\":\"66697ad2a2eb9\",\"returnFlightId\":\"\",\"fareId\":\"66697ad28b85e\",\"returnFareId\":\"\"}";

            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://api.clubapi.in/flight/flightDetails.php";

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

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

            var data = "{\"token\":\"xxxxxxxxx\",\"flightId\":\"66697ad2a2eb9\",\"returnFlightId\":\"\",\"fareId\":\"66697ad28b85e\",\"returnFareId\":\"\"}";

            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);
          

Flight Latest Fare

This API returns Flight Latest Fare
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. 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 .

{
  "status": "SUCCESS",
  "orderId": "24061216463992956",
  "resText": "",
  "fareDetails": {
    "netFare": "5599",
    "baseCharge": "4165",
    "surCharge": "1434",
    "fareType": "Publish"
  },
  "returnFareDetails": {
    "netFare": "",
    "baseCharge": "",
    "surCharge": "",
    "fareType": "Publish"
  },
  "payableAmount": "5599",
  "sessionId": "666982a06967e",
  "passenger": {
    "adult": "1",
    "children": "0",
    "infant": "0"
  }
}
            

              curl 'https://api.clubapi.in/flight/getFareDetails.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxxxx","sessionId":"666982a06967e"}' \
            
          

            <?php

            $url = "https://api.clubapi.in/flight/getFareDetails.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","sessionId":"666982a06967e"}';

            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://api.clubapi.in/flight/getFareDetails.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\":\"xxxxxxxxx\",\"sessionId\":\"666982a06967e\"}";

            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://api.clubapi.in/flight/getFareDetails.php";

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

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

            var data = "{\"token\":\"xxxxxxxxx\",\"sessionId\":\"666982a06967e\"}";

            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);
          

Flight Latest Fare

This API will block ticket for 15 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. 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 .

{
  "blockedId": "66697c70bac66",
  "orderId": "24061216160875652",
  "status": "SUCCESS",
  "journeyType": "1",
  "isInternational": "0",
  "passengerDetails": [
    {
      "dob": "2009-06-12",
      "firstName": "Rajdeep",
      "gender": "M",
      "lastName": "Kumar",
      "passengerType": "adt",
      "passportExpireDate": "",
      "passportNumber": ""
    }
  ],
  "bookingDetails": {
    "mobile": "xxxxxxxx",
    "email": "xxxxxxx@gmail.com",
    "address": "Delhi",
    "sourceName": "Ranchi",
    "destinationName": "Delhi",
    "source": "IXR",
    "destination": "DEL",
    "journeyDate": "2024-06-15",
    "returnDate": "",
    "journeyType": "1",
    "flightDetails": {
      "flightId": "66697ad2a2eb9",
      "flightName": "Air India Express",
      "flightIcon": "https://prod.rechapi.com/flight/image/airlineLogo/I5.gif",
      "flightCode": "I5",
      "flightNumber": "549",
      "flightClass": "KC",
      "departureTimeString": "2024-06-15T13:30:00",
      "arrivalTimeString": "2024-06-15T15:15:00",
      "departureTime": "01:30 PM",
      "departureDay": "2024-06-15",
      "travelDuration": "01:45 Hrs",
      "departureData": {
        "airportCode": "IXR",
        "airportName": "Ranchi",
        "terminal": "",
        "cityCode": "IXR",
        "cityName": "Ranchi",
        "countryCode": "IN",
        "countryName": "India"
      },
      "noOfStops": "0",
      "flightStops": [
        {
          "flightName": "Air India Express",
          "flightIcon": "https://prod.rechapi.com/flight/image/airlineLogo/I5.gif",
          "flightCode": "I5",
          "flightNumber": "549",
          "departureTime": "01:30 PM",
          "departureDay": "2024-06-15",
          "travelDuration": "01:45",
          "departurePlace": "Ranchi",
          "arrivalTime": "03:15 PM",
          "arrivalDay": "2024-06-15",
          "arrivalPlace": "Indira Gandhi Airport",
          "baggage": {
            "checkin": "15KG",
            "cabin": "7 Kg"
          },
          "stopDetails": "",
          "flightCraft": "320"
        }
      ],
      "arrivalTime": "03:15 PM",
      "arrivalDay": "2024-06-15",
      "arrivalData": {
        "airportCode": "DEL",
        "airportName": "Indira Gandhi Airport",
        "terminal": "3",
        "cityCode": "DEL",
        "cityName": "Delhi",
        "countryCode": "IN",
        "countryName": "India"
      },
      "fare": 5599,
      "fareDetails": [
        {
          "total": "5599",
          "title": "Total"
        },
        {
          "total": "4165",
          "title": "Base Fare"
        },
        {
          "total": "1434",
          "title": "Surcharge"
        }
      ],
      "baggage": {
        "checkin": "15KG",
        "cabin": "7 Kg"
      },
      "priceData": [
        {
          "fare": "5599",
          "fareType": "Publish",
          "fareId": "66697ad28b85e",
          "fareCode": "KNRA000",
          "fareRules": null
        },
        {
          "fare": "5599",
          "fareType": "Publish",
          "fareId": "66697ad28c018",
          "fareCode": "KNRA000",
          "fareRules": null
        },
        {
          "fare": "6019",
          "fareType": "Publish",
          "fareId": "66697ad28d710",
          "fareCode": "KNOA000",
          "fareRules": null
        }
      ],
      "isLCC": true,
      "fareCode": "KNRA000",
      "airlineRemark": "This is a Xpress Value fare.",
      "isRefundable": true,
      "seatsAvailable": "9",
      "penaltyCharges": {
        "reissueCharge": null,
        "cancellationCharge": null
      },
      "returnFlight": null,
      "slotDepartureTime": {
        "timeSlot": {
          "name": "Mid Day",
          "value": "12pm - 4pm"
        },
        "flightTime": "1718438400",
        "flightDepartureTimeString": "2024-06-15T13:30:00",
        "flightDate": "2024-06-15 13:30:00",
        "earlyMorningTime": "1718418600",
        "morningTime": "1718433000",
        "midDayTime": "1718447400",
        "eveningTime": "1718461800",
        "nightTime": "1718476176"
      },
      "connectingAirports": [],
      "isInternational": "0",
      "passengerDetails": [
        {
          "firstName": "Rajxxxx",
          "lastName": "Kumar",
          "gender": "M",
          "passengerType": "adt",
          "passportNumber": "",
          "passportExpireDate": "",
          "name": "Rajxxxxx xxxxxx",
          "dob": "2009-06-12",
          "pnr": "",
          "journeyDate": "",
          "fare": "",
          "status": "PENDING",
          "ticketId": "",
          "ssr": null
        }
      ]
    },
    "returnFlightDetails": null,
    "totalFareData": {
      "total": "5599",
      "baseFare": "4165",
      "surcharge": "1434"
    }
  },
  "rules": "UnVsZSBmb3IgSxxxxxxxxxxxxxxx",
  "returnRules": "",
  "adults": "1",
  "childrens": "0",
  "infants": "0",
  "resText": ""
}
            

              curl 'https://api.clubapi.in/flight/blockTicket.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxx","fare":"5599","passengerDetails":[{"dob":"2009-06-12","firstName":"Raxxxxx","gender":"M","lastName":"Kumar","passengerType":"adt","passportExpireDate":"","passportNumber":""}],"customerEmail":"xxxxxx@gmail.com","gstAddress":"","gstContactNumber":"","gstNumber":"","gstCompanyName":"","gstEmail":"","customerMobile":"xxxxxxxxx","sessionId":"66697ae4b5e7a","urid":"40394","mealId":null,"seatId":null}' \
            
          

            <?php

            $url = "https://api.clubapi.in/flight/blockTicket.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","fare":"5599","passengerDetails":[{"dob":"2009-06-12","firstName":"Raxxxxx","gender":"M","lastName":"Kumar","passengerType":"adt","passportExpireDate":"","passportNumber":""}],"customerEmail":"xxxxxx@gmail.com","gstAddress":"","gstContactNumber":"","gstNumber":"","gstCompanyName":"","gstEmail":"","customerMobile":"xxxxxxxxx","sessionId":"66697ae4b5e7a","urid":"40394","mealId":null,"seatId":null}';

            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://api.clubapi.in/flight/blockTicket.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\",\"fare\":\"5599\",\"passengerDetails\":[{\"dob\":\"2009-06-12\",\"firstName\":\"Raxxxxx\",\"gender\":\"M\",\"lastName\":\"Kumar\",\"passengerType\":\"adt\",\"passportExpireDate\":\"\",\"passportNumber\":\"\"}],\"customerEmail\":\"xxxxxx@gmail.com\",\"gstAddress\":\"\",\"gstContactNumber\":\"\",\"gstNumber\":\"\",\"gstCompanyName\":\"\",\"gstEmail\":\"\",\"customerMobile\":\"xxxxxxxxx\",\"sessionId\":\"66697ae4b5e7a\",\"urid\":\"40394\",\"mealId\":null,\"seatId\":null}";

            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://api.clubapi.in/flight/blockTicket.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\",\"fare\":\"5599\",\"passengerDetails\":[{\"dob\":\"2009-06-12\",\"firstName\":\"Raxxxxx\",\"gender\":\"M\",\"lastName\":\"Kumar\",\"passengerType\":\"adt\",\"passportExpireDate\":\"\",\"passportNumber\":\"\"}],\"customerEmail\":\"xxxxxx@gmail.com\",\"gstAddress\":\"\",\"gstContactNumber\":\"\",\"gstNumber\":\"\",\"gstCompanyName\":\"\",\"gstEmail\":\"\",\"customerMobile\":\"xxxxxxxxx\",\"sessionId\":\"66697ae4b5e7a\",\"urid\":\"40394\",\"mealId\":null,\"seatId\":null}";

            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.
flightBookedId string RAW_BODY Required This value you will get from Block Bus Seat Api
operatorId string RAW_BODY Required 746
amount string RAW_BODY Required This is final payable price which you get at time of 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


Response
Following are the parameters received in the response:

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

 {"data":{"orderId":"24061213412xxxxx","status":"PENDING","mobile":"xxxxxx","amount":"190","transId":"","resCode":"","p2pBuyerBal":"xxxxxx.06","p2aBuyerBal":"xxxxxx.33","totalBuyerBal":"xxxxx.39","creditUsed":"xxxxx","beneficiaryName":"","resText":""}} ,           

              curl 'https://api.clubapi.in/transaction.php' \

              -H 'accept: application/json' \
              -H 'content-type: application/json' \
              --data-raw '{"token":"xxxxxxxx","operatorId":"747","amount":"3500","mobile":"xxxxxx","urid":"xxxxxxx","flightBookedId":"xxxxxxx"} ' \
            
          

            <?php

            $url = "https://api.clubapi.in/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":"747","amount":"190","mobile":"xxxxxx","urid":"xxxxxxx","flightBookedId":"xxxxxxx"}';
            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\",\"operatorId\":\"747\",\"amount\":\"3500\",\"mobile\":\"xxxxxx\",\"urid\":\"xxxxxxx\",\"flightBookedId\":\"xxxxxxx\"}";

            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://api.clubapi.in/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\":\"747\",\"amount\":\"3500\",\"mobile\":\"xxxxxx\",\"urid\":\"xxxxxxx\",\"flightBookedId\":\"xxxxxxx\"}";

            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);