Get Tracking By Reference Or Carrier Waybill Number

Overview

Service Unique Name GetTrackingByReferenceOrCarrierWaybillNumber
Request Method GET

Description

API to fetch the details of waybill using its reference number or carrier waybill number.

Request Header

AccessKey : logixerp

Request Body

These are form parameters:

  • referenceNumber : 5666565
  • carrierWaybill: 455454

Request Details

Parameter Data Type Required/Optional Description
SecureKey int Required It is a Unique key for accessing the API. For secure key email to support team.
referenceNumber String Required Reference number of Waybill Number.
carrierWaybill String Optional Carrier Waybill Number of Waybill Number.

Response Format

ON SUCCESS
{
"message":"tracking_details",
"messageType": "Success",
"waybillJson":
"{
\"wayBillNumberTrackDetailList\":
[
{
\"actualDeliveryDate\":\"2019-02-16\",
\"bookingDate\":\"2019-02-16\",
\"bookingLocation\":\"Howrah\",
\"bookingOu\":\"Kolkata\",
\"carrierWaybill\":\"123412\",
\"consignee\":\"ANIL AUTOMOBILE\",
\"consignor\":\"FALKEN TYRE INDIA PVT LTD\",
\"creationDate\":\"2019-02-16\",
\"creationTime\":\"12:22:06 PM\",
\"currentOu\":\"Kolkata\",
\"currentStatus\":\"Delivered\",
\"deliveryDate\":\"2019-02-16\",
\"deliveryLocation\":\"Roing\",
\"deliveryOu\":\"Kolkata\",
\"deliveryRunSheet\":
[
{
\"Status\":\"\",
\"Time\":\"2019-02-16T17:55:00.000+05:30\",
\"deliveryStatus\":\"DELIVERED\",
\"deliveryComments\":\"\"}],
\"description\":\"TYRE\",
\"epod\":\"\",
\"fromLocation\":\"\",
\"invoiceAmount\":100000.0,
\"invoiceNumber\":\"\",
\"numberOfPackages\":\"5\",
\"packageType\":\"Box\",
\"paymentMode\":\"TBB\",
\"paymentType\":\"Prepaid\",
\"reason\":\"\",
\"referenceNumber\":\"RIVIGO\",
\"service\":\"LTL\",
\"toLocation\":\"\",
\"wayBillDeliveryAttemptDetail\":[],
\"wayBillEnrouteDetail\":[],
\"wayBillTrackingDetail\":
[
{
\"actionLabel\":\"Delivered\",
\"date\":\"2019-02-16T00:00:00\",
\"time\":\"1970-01-01T12:25:00\",
\"updateBy\":\"kolkata\",
\"updatedOU\":\"Kolkata\",
\"waybillStatus\":\"Delivered\"
},
{
\"actionLabel\":\"Out For Delivery\",
"date\":\"2019-02-16T00:00:00\",
\"time\":\"1970-01-01T12:25:50\",
\"updateBy\":\"kolkata\",
\"updatedOU\":\"Kolkata\",
\"waybillStatus\":\"Out For Delivery\"
},
{
\"actionLabel\":\"At Origin\",
\"date\":\"2019-02-16T00:00:00\",
\"time\":\"1970-01-01T12:22:06\",
\"updateBy\":\"Ankur\",
\"updatedOU\":\"Kolkata\",
\"waybillStatus\":\"At Origin\"
}
],
\"waybillNumber\":\"110211028\"
}
]
}"
}

ON ERROR
{
"message": "Error_Message",
"messageType" : "Error"
}

Error Message String

Error Messages Description

Sample Code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;

import java.net.URL;

public class GetTrackingByReferenceOrCarrierWaybillNumber {

private static final String USER_AGENT = "Mozilla/5.0";
private static final String ACCESS_KEY = "logixerp";
private static final String API_URL = "https://webservice.logixerp.com/Rachna/webservice/v2/GetTrackingByReferenceOrCarrierWayBillNumber?secureKey=";
private static final int SECURE_KEY = SECURE KEY;
private static final String REFERENCENUMBER = "5666565";
private static final String CARRIERWAYBILL = null;

private static final String ACCESS_URL = API_URL+SECURE_KEY+"&referenceNumber="+REFERENCENUMBER+"&carrierWaybill="+CARRIERWAYBILL;

public static void main(String[] args) throws IOException {

URL obj = new URL(ACCESS_URL);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("User-Agent", USER_AGENT);
con.setRequestProperty("AccessKey", ACCESS_KEY);
int responseCode = con.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) { // success
BufferedReader in = new BufferedReader(new InputStreamReader(
con.getInputStream()));
String inputLine;

StringBuffer response = new StringBuffer();

while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}

in.close();

// print result
System.out.println(response.toString());
} else {
System.out.println("GET request not worked");

}

}

}
import requests

access_url = "https://webservice.logixerp.com/Rachna/webservice/v2/GetTrackingByReferenceOrCarrierWayBillNumber"
payload = {
'SecureKey':'secure_key',
'referenceNumber':'5666565',
'carrierWaybill':None

}

headers={'AccessKey':'logixerp'}

try:
r = requests.get(access_url, params=payload, headers=headers)
print (r.text)
except requests.exceptions.RequestException as err:
print (err)
please wait...