Get Warehouse V - 3.0.0

Retrieve the list of registered warehouse and determine the status of warehouse in simple steps.

POST
Staging URL
Production URL
Parameter
Field Type Description
access_token String You will get this from IThink Logistics team.
secret_key String You will get this from IThink Logistics team.
warehouse_id Integer #Optional. Warehouse Id whose data is needed.
       {
       "data":    {
                          "warehouse_id" : "22",      #warehouse_id whose data is needed.
                          "access_token" : "8ujik47cea32ed386b1f65c85fd9aaaf",
                          "secret_key" : "65tghjmads9dbcd892ad4987jmn602a7"
                          }
       }
       {
       "status": "success",
       "status_code": 200,
       "data": [
                               {
                                     "id": "2474",
                                     "company_name": "ITL",
                                     "mobile": "+91 9876543210",
                                     "address1": "104, Shreeji Sharan",
                                     "address2": "Kandivali West",
                                     "pincode": "Kandivali West",
                                     "city_name": "Mumbai",
                                     "state_name": "Maharashtra",
                                     "country_name": "India",
                                     "status": "approved"
                               }
                     ]
       }
Sample Beta Code
  $curl = curl_init();
  curl_setopt_array($curl, array(
      CURLOPT_URL             => "https://pre-alpha.ithinklogistics.com/api_v3/warehouse/get.json",
      CURLOPT_RETURNTRANSFER  => true,
      CURLOPT_ENCODING        => "",
      CURLOPT_MAXREDIRS       => 10,
      CURLOPT_TIMEOUT         => 30,
      CURLOPT_HTTP_VERSION    => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST   => "POST",
      CURLOPT_POSTFIELDS      => "{\"data\":{\"warehouse_id\":\"22\",\"access_token\":\"8ujik47cea32ed386b1f65c85fd9aaaf\",\"secret_key\":\"65tghjmads9dbcd892ad4987jmn602a7\"}}\n",
      CURLOPT_HTTPHEADER      => array(
          "cache-control: no-cache",
          "content-type: application/json"
      )
  ));

  $response = curl_exec($curl);
  $err      = curl_error($curl);
  curl_close($curl);
  if ($err) 
  {
      echo "cURL Error #:" . $err;
  }
  else
  {
      echo $response;
  }
  import requests

  url = "https://pre-alpha.ithinklogistics.com/api_v3/warehouse/get.json"

  payload = "{\"data\":{\"warehouse_id\":\"22\",\"access_token\":\"8ujik47cea32ed386b1f65c85fd9aaaf\",\"secret_key\":\"65tghjmads9dbcd892ad4987jmn602a7\"}}\n"
  headers = 
      {
          'content-type': "application/json",
          'cache-control': "no-cache"
      }

  response = requests.request("POST", url, data=payload, headers=headers)

  print(response.text)
  OkHttpClient client = new OkHttpClient();

  MediaType mediaType = MediaType.parse("application/json");
  RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"warehouse_id\":\"22\",\"access_token\":\"8ujik47cea32ed386b1f65c85fd9aaaf\",\"secret_key\":\"65tghjmads9dbcd892ad4987jmn602a7\"}}\n");
  Request request = new Request.Builder()
    .url("https://pre-alpha.ithinklogistics.com/api_v3/warehouse/get.json")
    .post(body)
    .addHeader("content-type", "application/json")
    .addHeader("cache-control", "no-cache")
    .build();

  Response response = client.newCall(request).execute();
  var client = new RestClient("https://pre-alpha.ithinklogistics.com/api_v3/warehouse/get.json");
  var request = new RestRequest(Method.POST);
  request.AddHeader("cache-control", "no-cache");
  request.AddHeader("content-type", "application/json");
  request.AddParameter("application/json", "{\"data\":{\"warehouse_id\":\"22\",\"access_token\":\"8ujik47cea32ed386b1f65c85fd9aaaf\",\"secret_key\":\"65tghjmads9dbcd892ad4987jmn602a7\"}}\n", ParameterType.RequestBody);
  IRestResponse response = client.Execute(request);
  require 'uri'
  require 'net/http'

  url = URI("https://pre-alpha.ithinklogistics.com/api_v3/warehouse/get.json")

  http = Net::HTTP.new(url.host, url.port)
  http.use_ssl = true
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE

  request = Net::HTTP::Post.new(url)
  request["content-type"] = 'application/json'
  request["cache-control"] = 'no-cache'
  request.body = "{\"data\":{\"warehouse_id\":\"22\",\"access_token\":\"8ujik47cea32ed386b1f65c85fd9aaaf\",\"secret_key\":\"65tghjmads9dbcd892ad4987jmn602a7\"}}\n"

  response = http.request(request)
  puts response.read_body