Get Airwaybill V - 3.0.0
Get the latest Airwaybills Whose tracking status updates between the specified start and end time.
Production URL
Parameter
| Field | Type | Description | Mandatory |
|---|---|---|---|
| access_token | String | You will get this from IThink Logistics team. | Yes |
| secret_key | String | You will get this from IThink Logistics team. | Yes |
| start_date_time | String | Date time from which data is needed. | Yes |
| end_date_time | String | Date time till which data is needed. (Difference between start date time and end date time cannot be greater than 30 mins.) | Yes |
{
"data":
{
"access_token" : "XXXXXXX",
"secret_key" : "XXXXXXX",
"start_date_time" : "2024-06-12 15:27:00",// yyyy-mm-dd H:i:s
"end_date_time": "2024-06-12 15:45:00" // yyyy-mm-dd H:i:s
}
}
{
"status": "success",
"Awb list": [
{
"airway_bill_no": "7801XXXXXXXX"
},
{
"airway_bill_no": "8051XXXXXXXX"
}
]
}
Sample Beta Code
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://pre-alpha.ithinklogistics.com/api_v3/order/get_awb.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":
{
"access_token" : "XXXXXXX",
"secret_key" : "XXXXXXX",
"start_date_time" : "2024-06-12 15:27:00",
"end_date_time": "2024-06-12 15:45:00"
}
}',
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_awb.json"
payload = json.dumps({
"data": {
"access_token" : "XXXXXXX",
"secret_key" : "XXXXXXX",
"start_date_time" : "2024-06-12 15:27:00",
"end_date_time": "2024-06-12 15:45:00"
}
})
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\"access_token\" : \"XXXXXXX\",\r\n\"secret_key\" : \"XXXXXXX\",\r\n\"start_date_time\":\"2024-06-12 15:27:00\",\r\n\"end_date_time\":\"2024-06-12 15:45:00\"\r\n\}\r\n}");
Request request = new Request.Builder()
.url("https://pre-alpha.ithinklogistics.com/api_v3/order/get_awb.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_awb.json");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"access_token\":\"XXXXXXX\",\"secret_key\":\"XXXXXXX\",\"start_date_time\":\"2024-06-12 15:27:00\",\"end_date_time\":\"2024-06-12 15:45:00\"}\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
url = URI("https://pre-alpha.ithinklogistics.com/api_v3/order/get_awb.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": {
"access_token" : "XXXXXXX",
"secret_key" : "XXXXXXX",
"start_date_time" : "2024-06-12 15:27:00",
"end_date_time": "2024-06-12 15:45:00"
}
})
response = http.request(request)
puts response.read_body