Order Details V - 3.0.0
Get the Order details along with the product against the given AWB list.
Staging URL
Production URL
Parameter
Field | Type | Description | Mandatory |
---|---|---|---|
awb_number_list | String | Comma seperated list of AWB Numbers whose data is needed. | Yes |
order_no | String | Order Number whose data is needed. | No |
start_date | String | Date from which order data is needed. | Yes |
end_date | String | Date till which order 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": { "awb_number_list" : "14131721621096", #Comma seperated list of AWB Numbers whose data is needed. You can keep this empty if you want all order's data of entered date range. "order_no" : "GK0033", #Order Number whose data is needed. You can keep this empty if you want all order's data of entered date range. "start_date":"2022-04-01", #Date range from which order's data is needed(maximum 500 AWB details in one request), You can keep this empty if you want data for entered awb in awb_number_list field. "end_date":"2022-05-12", "access_token" : "8ujik47cea32ed386b1f65c85fd9aaaf", "secret_key" : "65tghjmads9dbcd892ad4987jmn602a7" } }
{ "status": "success", "status_code": 200, "data": { "4289479049381": { "awb_no": "12345678984394", "order": "9999_85155972", "sub_order": "", "order_date": "2022-04-10 08:57:27", "awb_created_date": "2022-04-11 10:50:27", "total_amount": "90.00", "customer_name": "Anjulika N", "company_name": "iThink test1", "customer_address": "gurugram palace, mumbai,", "customer_address1": "gurugram palace, mumbai,", "customer_address2": "Maharashtra", "customer_address3": "", "customer_pincode": "100039", "customer_city": "Mumbai", "customer_state": "Maharashtra", "customer_country": "India", "customer_phone": "", "customer_email": "anas@gmail.com", "is_billing_same_as_shipping": "Yes", "billing_name": "", "billing_company_name": "", "billing_add": "gaurav palace, mumbai", "billing_add1": "gaurav palace, mumbai", "billing_add2": "gaurav palace, mumbai", "billing_add3": "", "billing_pincode": "100093", "billing_city": "Mumbai", "billing_state": "Maharashtra", "billing_country": "India", "billing_phone": "9001100985", "billing_alt_phone": "", "billing_email": "anja@gmail.com", "seller_email_id": "xylifedemo@gmail.com", "products": [ { "product_name": "Testing Product", "product_sku": "DHF", "product_quantity": "1", "product_price": "100.00", "product_total" : "100", "product_tax_rate": "12.20", "product_hsn_code": "" "product_discount": "20.00", } { "product_name": "Baby Body Butter", "product_sku": "BODY_BTR-150G", "product_quantity": "1", "product_price": "100.00", "product_total" : "100", "product_tax_rate": "12.20", "product_hsn_code": "" "product_discount": "20.00", } ], "shipment_length": "0", "shipment_width": "0", "shipment_height": "0", "weight": "500", "vol_weight" : "0.2", "box_size" : "Strong Rubberized Waterproff Tape", "shipping_charges": "10.00", "unbilled_fwd_charges": 10, "unbilled_rto_charges": 0, "unbilled_cod_charges": "0.00", "unbilled_gst_charges": 1.8, "unbilled_zone": "A", "unbilled_weight": "10.00", "unbilled_total_charges": "11.800", "billing_fwd_charges": 0, "billing_rto_charges": 0, "billing_cod_charges": "0.00", "billing_gst_charges": 0, "billing_zone": "", "billing_weight": "0.00", "billed_total_charges": "0.000", "remittance_amount": "106.970", "giftwrap_charges": "0.00", "transaction_charges": "0.00", "total_discount": "0.00", "first_attempt_discount": "0.00", "cod_charges": "", "advance_amount": "", "payment_mode": "pending", "reseller_name": "", "eway_bill_number": "", "gst_number": "", "return_address_id": "21542", "pickup_address_id": "20542", "ofd_count": "1", "expected_delivery_date": "2022-04-18", "promise_delivery_date": "0000-00-00", "logistic": "Xpressbees", "last_scan_datetime": "2022-04-14 11:06:00", "latest_courier_status": "delivered" } } }
Sample Beta Code
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://pre-alpha.ithinklogistics.com/api_v3/order/get_details.json", 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_v3/order/get_details.json" 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" } }) 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_v3/order/get_details.json") .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_v3/order/get_details.json"); var request = new RestRequest(Method.POST); request.AddHeader("cache-control", "no-cache"); request.AddHeader("content-type", "application/json"); request.AddParameter("application/json", "{\"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_v3/order/get_details.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": { "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