Outlet Registration Send OTP API
Registers an outlet. Complete the agent's Aadhaar KYC with the Aadhaar KYC API before calling this API.
POST #BASEURL/utility/transaction.php
BODY PARAMS
RAW_BODY
jsonHEADERS
📘
Request headers
Accept : application/json
Content-Type: application/json
Accept : application/json
Content-Type: application/json
Request Parameters
Send these parameters in the request body:
| Parameter | Type | Position | # | Description |
|---|---|---|---|---|
| token | string |
RAW_BODY |
Required |
Your API token from the ClubApi dashboard. Send it with every API request and keep it private. |
| aadhaarNumber | string |
RAW_BODY |
Required |
Agent's Aadhaar number. |
| outletMobile | string |
RAW_BODY |
Required |
Agent Mobile |
| transType | string |
RAW_BODY |
Required |
outletRegister |
| pan | string |
RAW_BODY |
Required |
Agent's PAN. |
| shopName | string |
RAW_BODY |
Required |
Only letters, numbers and spaces are allowed. |
| shopAddress | string |
RAW_BODY |
Required |
Only letters, numbers and spaces are allowed. |
| shopPincode | string |
RAW_BODY |
Required |
Shop pincode |
string |
RAW_BODY |
Required |
Agent Email | |
| accountNumber | string |
RAW_BODY |
Required |
Agent's bank account number. |
| ifscCode | string |
RAW_BODY |
Required |
Agent's bank IFSC code. |
| latitude | string |
RAW_BODY |
Required |
Latitude of the agent's shop. |
| longitude | string |
RAW_BODY |
Required |
Longitude of the agent's shop. |
Response
These fields are returned in the response:
| Parameter | Type | Description |
|---|---|---|
| status | string |
Request status: SUCCESS or FAILED. |
| outletData | object |
Outlet details. |
| pointUsed | string |
Points 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' \
--max-time 10 \
-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);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); // wait max 10 seconds to connect
curl_setopt($curl, CURLOPT_TIMEOUT, 10); // wait max 10 seconds for response
$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.setConnectTimeout(10000); // 10 seconds
http.setReadTimeout(10000); // 10 seconds
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.Timeout = 10000; // 10 seconds
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);