Order Details Count V - 1.0.0

Get the total count of orders for the given AWB list / order number within a date range.

POST
Staging URL
Production URL
Parameter
Field Type Description Mandatory
awb_number_list String Comma seperated list of AWB Numbers whose count is needed (maximum 25 AWB Numbers in one request). No
order_no String Order Number whose count is needed. No
start_date String Date from which order count is needed. Format: Y-m-d. Yes
end_date String Date till which order count is needed. Format: Y-m-d. It can not be older than start_date and the difference between start_date and end_date can not be more than 3 months. Yes
access_token String You will get this from IThink Logistics team. Yes
secret_key String You will get this from IThink Logistics team. Yes
       {
       "data":    {
                          "awb_number_list" : "14131721621096",   #Comma seperated list of AWB Numbers whose count is needed (maximum 25 AWB Numbers). You can keep this empty if you want the count of all orders of the entered date range.
                          "order_no" : "GK0033",   #Order Number whose count is needed. You can keep this empty if you want the count of all orders of the entered date range.
                          "start_date":"2022-04-01",   #Date range for which order count is needed (Y-m-d). Both start_date and end_date are mandatory and the range can not be more than 3 months.
                          "end_date":"2022-05-12",
                          "access_token" : "8ujik47cea32ed386b1f65c85fd9aaaf",
                          "secret_key" : "65tghjmads9dbcd892ad4987jmn602a7"
                          }
       }
       {
       "status": "success",
       "status_code": 200,
       "total_count": 233
       }
Sample Beta Code
  $curl = curl_init();
  curl_setopt_array($curl, array(
      CURLOPT_URL             => "https://pre-alpha.ithinklogistics.com/api/order/get/details/count",
      CURLOPT_RETURNTRANSFER  => true,
      CURLOPT_ENCODING        => "",
      CURLOPT_MAXREDIRS       => 10,
      CURLOPT_TIMEOUT         => 0,
      CURLOPT_FOLLOWLOCATION  => true,
      CURLOPT_HTTP_VERSION    => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST   => "POST",
      CURLOPT_POSTFIELDS      => '{
                                    "data": {
                                                "awb_number_list" : "14131721621096",
                                                "order_no" : "GK0033",
                                                "start_date":"2022-04-01",
                                                "end_date":"2022-05-12",
                                                "access_token" : "8ujik47cea32ed386b1f65c85fd9aaaf",
                                                "secret_key" : "65tghjmads9dbcd892ad4987jmn602a7"
                                            }
                                  }',
      CURLOPT_HTTPHEADER      => array(
          "content-type: application/json",
          "Cookie: PHPSESSID=u9b55bcm15ich1vpfei1ggpf46"
      )
  ));

  $response = curl_exec($curl);
  $err      = curl_error($curl);
  curl_close($curl);
  if ($err)
  {
      echo "cURL Error #:" . $err;
  }
  else
  {
      echo $response;
  }
  import requests
  import json
  url = "https://pre-alpha.ithinklogistics.com/api/order/get/details/count"

  payload = json.dumps({
                          "data": {
                                      "awb_number_list": "14131721621096",
                                      "order_no" : "GK0033",
                                      "start_date": "2022-04-01",
                                      "end_date": "2022-05-12",
                                      "access_token": "8ujik47cea32ed386b1f65c85fd9aaaf",
                                      "secret_key": "65tghjmads9dbcd892ad4987jmn602a7"
                                  }
                       })
  headers = {
      "content-type": "application/json"
  }

  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, "{\r\n\"data\":{\r\n\"awb_number_list\" : \"14131721621096\",\r\n\"order_no\" : \"GK0033\",\r\n\"start_date\":\"2022-04-01\",\r\n\"end_date\":\"2022-05-12\",\r\n\"access_token\" : \"8ujik47cea32ed386b1f65c85fd9aaaf\",\r\n\"secret_key\" : \"65tghjmads9dbcd892ad4987jmn602a7\"\r\n}\r\n}");
  Request request = new Request.Builder()
    .url("https://pre-alpha.ithinklogistics.com/api/order/get/details/count")
    .post(body)
    .addHeader("content-type", "application/json")
    .addHeader("Cookie", "PHPSESSID=dv7c795l2mqpa96crjl291r5r1")
    .build();

  Response response = client.newCall(request).execute();
  var client = new RestClient("https://pre-alpha.ithinklogistics.com/api/order/get/details/count");
  var request = new RestRequest(Method.POST);
  request.AddHeader("cache-control", "no-cache");
  request.AddHeader("content-type", "application/json");
  request.AddParameter("application/json", "{\"data\":{\"awb_number_list\":\"14131721621096\",\"order_no\":\"GK0033\",\"start_date\":\"2022-04-01\",\"end_date\":\"2022-05-12\",\"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/order/get/details/count")

  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 = JSON.dump({
                              "data": {
                                          "awb_number_list": "14131721621096",
                                          "order_no": "GK0033",
                                          "start_date": "2022-04-01",
                                          "end_date": "2022-05-12",
                                          "access_token": "8ujik47cea32ed386b1f65c85fd9aaaf",
                                          "secret_key": "65tghjmads9dbcd892ad4987jmn602a7"
                                      }
                           })
  response = http.request(request)
  puts response.read_body