Get Rate

Retreive the rate charged for a shipment.

POST
Production URL
Parameter
Field Type Description
from_pincode Integer *Required Pickup Pincode.
to_pincode Varchar *Required Destination Pincode.
country_code Varchar *Required Destination Country Code.
shipping_length_cms float *Required Length shouldn't be more than 1000cm.
shipping_width_cms float *Required Width shouldn't be more than 1000cm.
shipping_height_cms float *Required Height shouldn't be more than 1000cm.
shipping_weight_kg float *Required Shipment weight
invoice_amount float *Required Invoice Amount
access_token String You will get this from IThink Logistics team.
secret_key String You will get this from IThink Logistics team.
       {
       "data":     {
                           "from_pincode" : "400092",
                           "to_pincode"  : "06811",
                           "country_code" : "US",
                           "shipping_length_cms"  : "6",
                           "shipping_width_cms"  : "5",
                           "shipping_height_cms"  : "5",
                           "shipping_weight_kg" : "0.05",
                           "invoice_amount" : "300",
                           "access_token" : "XXXXXXX",
                           "secret_key" : "XXXXXXX"
                           }
       }
        {
            "data": [
                                {
                                      "logistic_name": "Aramex INTL",
                                      "logistic_service_type_name": "priority express",
                                      "estimated_delivery_days": "10 - 14 Days",
                                      "expected_time_delivery ": "Jan 15, 2024 - Jan 19, 2024",
                                      "logistics_price": 2297.87,
                                      "insurance_price": 3.54,
                                      "logistics_price_breakup" {
                                                                        "fsc_surcharge": 335.75,
                                                                        "esc_surcharge": 268.6,
                                                                        "base_price": 1343,
                                                                        "GST": 350.52
                                                                },
                                    "insurance_price_breakup" : {
                                                                        "price": 3,
                                                                        "GST": 0.54
                                                                },
                                },
                                {
                                      "logistic_name": "iThink Logistics",
                                      "logistic_service_type_name": "",
                                      "estimated_delivery_days": "10 - 14 Days",
                                      "expected_time_delivery ": "Jan 15, 2024 - Jan 19, 2024",
                                      "logistics_price": 1441.96,
                                      "insurance_price": 3.54,
                                      "logistics_price_breakup" {
                                                                        "base_price": 1222,
                                                                        "GST": 219.96
                                                                }
                                      "insurance_price_breakup" : {
                                                                        "price": 3,
                                                                        "GST": 0.54
                                                                  },
                                }

                ]
        }

                    
Sample Beta Code
  $curl = curl_init();
  curl_setopt_array($curl, array(
      CURLOPT_URL             => "https://my.ithinklogistics.com/api_v3/rate_intl/check.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\":{\"from_pincode\":\"400092\",\"to_pincode\":\"06811\",\"country_code\":\"US\",\"shipping_length_cms\":\"22\",\"shipping_width_cms\":\"12\",\"shipping_height_cms\":\"12\",\"shipping_weight_kg\":\"2\",\"invoice_amount\":\"100\",\"access_token\":\"XXXXXXX\",\"secret_key\":\"XXXXXXX\"}}\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://my.ithinklogistics.com/api_v3/rate_intl/check.json"

  payload = "{\"data\":{\"from_pincode\":\"400092\",\"to_pincode\":\"06811\",\"country_code\":\"US\",\"shipping_length_cms\":\"22\",\"shipping_width_cms\":\"12\",\"shipping_height_cms\":\"12\",\"shipping_weight_kg\":\"2\",\"invoice_amount\":\"100\",\"access_token\":\"XXXXXXX\",\"secret_key\":\"XXXXXXX\"}}\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\":{\"from_pincode\":\"400092\",\"to_pincode\":\"06811\",\"country_code\":\"US\",\"shipping_length_cms\":\"22\",\"shipping_width_cms\":\"12\",\"shipping_height_cms\":\"12\",\"shipping_weight_kg\":\"2\",\"invoice_amount\":\"100\",\"access_token\":\"XXXXXXX\",\"secret_key\":\"XXXXXXX\"}}\n");
  Request request = new Request.Builder()
    .url("https://my.ithinklogistics.com/api_v3/rate/check.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://my.ithinklogistics.com/api_v3/rate_intl/check.json");
  var request = new RestRequest(Method.POST);
  request.AddHeader("cache-control", "no-cache");
  request.AddHeader("content-type", "application/json");
  request.AddParameter("application/json", "{\"data\":{\"from_pincode\":\"400092\",\"to_pincode\":\"06811\",\"country_code\":\"US\",\"shipping_length_cms\":\"22\",\"shipping_width_cms\":\"12\",\"shipping_height_cms\":\"12\",\"shipping_weight_kg\":\"2\",\"invoice_amount\":\"100\",\"access_token\":\"XXXXXXX\",\"secret_key\":\"XXXXXXX\"}}\n", ParameterType.RequestBody);
  IRestResponse response = client.Execute(request);
  require 'uri'
  require 'net/http'

  url = URI("https://my.ithinklogistics.com/api_v3/rate_intl/check.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\":{\"from_pincode\":\"400092\",\"to_pincode\":\"06811\",\"country_code\":\"US\",\"shipping_length_cms\":\"22\",\"shipping_width_cms\":\"12\",\"shipping_height_cms\":\"12\",\"shipping_weight_kg\":\"2\",\"invoice_amount\":\"100\",\"access_token\":\"XXXXXXX\",\"secret_key\":\"XXXXXXX\"}}\n"

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