Skip to content

Tracking

Track shipments using the trackShipment method. B2C shipments are tracked by AWB, while B2B shipments are tracked by LRN.

import {
BigshipClient,
isSuccessResponse,
} from '@agamya/bigship-sdk';
const tracking = await client.trackShipment('13090318586270', 'awb');
if (isSuccessResponse(tracking)) {
console.log('Status:', tracking.data);
}

B2B shipments use LRN (Lorry Receipt Number) instead of AWB.

const tracking = await client.trackShipment('LR-6554921441', 'lrn');
if (isSuccessResponse(tracking)) {
console.log('Status:', tracking.data);
}
trackShipment(id: string, type: 'awb' | 'lrn'): Promise<ApiResponse<TrackingData>>
Parameter Type Description
id string AWB number or LRN
type 'awb' or 'lrn' Identifier type