Store Order Details V - 2.0.0

Get the Order details along with the product against the given order no list.

POST
Staging URL
Production URL
Parameter
Field Type Description Mandatory
order_no_list String Comma seperated list of Order Numbers whose data is needed. Yes
platform_id Integer Platform Id whose data is needed 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":    {
                          "order_no_list"    : "4289479049381,4289498841253",  # Comma seperated list of Order Numbers whose data is needed.
                          "platform_id"    : "2",      # Platform_id:- 2=>  shopify,  3=> magento,  4=> woocommerce,  5=> opencart,  6=> prestashop
                          "access_token" : "8ujik47cea32ed386b1f65c85fd9aaaf",
                          "secret_key" : "65tghjmads9dbcd892ad4987jmn602a7"
                          }
       }
       {
       "status": "success",
       "status_code": 200,
       "data": {
                    "4289479049381":   { 
                                     "awb_no": "12345678984394",
                                     "order_id": "6789843049381",
                                     "order_number": "#1786",
                                     "order_date": "2022-01-24",
                                     "total_amount": "90.00",
                                     "company_name": "iThink test1",
                                     "customer_address1": "gurugram palace, mumbai,",
                                     "customer_address2": "Maharashtra",
                                     "customer_pincode": "100039",
                                     "customer_city": "Mumbai",
                                     "customer_state": "Maharashtra",
                                     "customer_country": "India",
                                     "customer_phone": "+918828968990",
                                     "customer_email": "anas@gmail.com",
                                     "is_billing_same_as_shipping": "Yes",
                                     "billing_name": "Testing",
                                     "billing_company_name": "",
                                     "billing_address1": "gaurav palace, mumbai",
                                     "billing_address2": "kandivali",
                                     "billing_pincode": "100093",
                                     "billing_city": "Mumbai",
                                     "billing_state": "Maharashtra",
                                     "billing_country": "India",
                                     "billing_phone": "",
                                     "billing_email": "",
                                     "products": [
                                            {
                                                    "product_name": "Testing Product",
                                                    "product_sku": "DHF",
                                                    "product_quantity": "1",
                                                    "product_price": "100.00",
                                                    "product_tax_rate": "12.20",
                                                    "product_discount": "20.00",
                                                    "product_hsn_code": ""
                                            }
                                      ],
                                      "shipment_length": "0",
                                      "shipment_width": "0",
                                      "shipment_height": "0",
                                      "weight": "500",
                                      "shipping_charges": "10.00",
                                      "transaction_charges": "0.00",
                                      "total_discount": "20.00",
                                      "payment_mode": "pending",
                                      "reseller_name": "",
                                      "eway_bill_number": "",
                                      "gst_number": "",
                                      "return_address_id": "24542",
                                      "pickup_address_id": "24542",
                                      "store_id": "2951"
                          },
                          "4289498841253": {
                                  "awb_no": "12345678984391",
                                  "order_id": "1234598841253",
                                  "order_number": "#1981",
                                  "order_date": "2022-01-24",
                                  "total_amount": "502.00",
                                  "company_name": "iThink test1",
                                  "customer_address1": "gurugram palace, mumbai",
                                  "customer_address2": "kandivali",
                                  "customer_pincode": 500069",
                                  "customer_city": "Mumbai",
                                  "customer_state": "Maharashtra",
                                  "customer_country": "India",
                                  "customer_phone": "+919773130882",
                                  "customer_email": "anas@depasserinfotech.com",
                                  "is_billing_same_as_shipping": "Yes",
                                  "billing_name": "Bharat Testing",
                                  "billing_company_name": "",
                                  "billing_address1": "gaurav palace, mumbai",
                                  "billing_address2": "kandivali",
                                  "billing_pincode": "400069",
                                  "billing_city": "Mumbai",
                                  "billing_state": "Maharashtra",
                                  "billing_country": "India",
                                  "billing_phone": "",
                                  "billing_email": "",
                                  "products":   [
                                         {
                                                "product_name": "Anas Test1 - Medium",
                                                "product_sku": "MHD",
                                                "product_quantity": "1",
                                                "product_price": "424.00",
                                                "product_tax_rate": "62.10",
                                                "product_discount": "16.90",
                                                "product_hsn_code": ""
                                         },
                                         {
                                                "product_name": "Shital Testing saree Product",
                                                "product_sku": "SDFG",
                                                "product_quantity": "1",
                                                "product_price": "78.00",
                                                "product_tax_rate": "11.43",
                                                "product_discount": "3.10",
                                                "product_hsn_code": ""
                                         }
                                  ],
                                  "shipment_length": "0",
                                  "shipment_width": "0",
                                  "shipment_height": "0",
                                  "weight": "200",
                                  "shipping_charges": "20.00",
                                  "transaction_charges": "0.00",
                                  "total_discount": "20.00",
                                  "payment_mode": "pending",
                                  "reseller_name": "",
                                  "eway_bill_number": "",
                                  "gst_number": "",
                                  "return_address_id": "24542",
                                  "pickup_address_id": "24542",
                                  "store_id": "2951"
                        }
                }
       }
Sample Beta Code
  $curl = curl_init();
  curl_setopt_array($curl, array(
      CURLOPT_URL             => "https://pre-alpha.ithinklogistics.com/api_v2/get-platform-order-details_v2.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":  {
                                                    "order_no_list" : "4289479049381,4289498841253",
                                                    "platform_id" : "2",
                                                    "access_token" : "8ujik47cea32ed386b1f65c85fd9aaaf",
                                                    "secret_key" : "65tghjmads9dbcd892ad4987jmn602a7"
                                                }
                                  }',
      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
  import json
  url = "https://pre-alpha.ithinklogistics.com/api_v2/get-platform-order-details_v2.json"

  payload = json.dumps({
                          "data": {
                                       "order_no_list": "4289479049381,4289498841253",
                                       "platform_id": "2",
                                       "access_token": "8ujik47cea32ed386b1f65c85fd9aaaf",
                                       "secret_key": "65tghjmads9dbcd892ad4987jmn602a7"
                                  }
                       })
  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, "{\r\n\"data\": {\r\n\"order_no_list\" : \"4289479049381,4289498841253\",\r\n\"platform_id\" : \"2\",\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_v2/city/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_v2/get-platform-order-details_v2.json");
  var request = new RestRequest(Method.POST);
  request.AddHeader("cache-control", "no-cache");
  request.AddHeader("content-type", "application/json");
  request.AddParameter("application/json", "{\"data\":{\"order_no_list\":\"4289479049381,4289498841253\",\"platform_id\":\"2\",\"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_v2/get-platform-order-details_v2.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 = JSON.dump({
                                "data": {
                                           "order_no_list": "4289479049381,4289498841253",
                                           "platform_id": "2",
                                           "access_token": "8ujik47cea32ed386b1f65c85fd9aaaf",
                                           "secret_key": "65tghjmads9dbcd892ad4987jmn602a7"
                                        }
                           })

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