Skip to main content

Tracking

client.tracking

trackOne(waybill)

Track a single shipment by its waybill number.

const data = await client.tracking.trackOne("1234567890");

const shipment = data.ShipmentData[0]?.Shipment;
console.log(shipment?.Status); // "Delivered"
console.log(shipment?.["Delivery Date"]); // "2024-06-05"

trackMany(waybills)

Track up to 10 shipments in a single request.

const data = await client.tracking.trackMany([
"1234567890",
"9876543210",
]);

for (const { Shipment } of data.ShipmentData) {
console.log(Shipment.Waybill, Shipment.Status);
}

track(params)

Low-level method — accepts either waybill or ref_ids (your client order IDs), comma-separated.

Parameters

NameTypeRequiredDescription
waybillstringOne ofComma-separated waybill numbers (max 10)
ref_idsstringOne ofComma-separated client order IDs (max 10)

Shipment fields in response

FieldDescription
StatusCurrent delivery status
Status DateTimeLast update timestamp
Origin City / Destination CityRoute
Pickup Date / Delivery DateActual dates
Expected Delivery DateEDD
COD AmountAmount to be collected (COD only)
ScansFull scan history array

Scan entry

{
"SL Date": "2024-06-01 14:22:00",
"City": "Mumbai",
"Location": "ANDHERI HUB",
"Scan Type": "UD",
"Scan": "Manifested",
"Instructions": ""
}