Skip to content

Cancellation

Cancel shipments using the cancelShipments method. Pass an array of AWB numbers to cancel one or more shipments at once.

import {
BigshipClient,
isSuccessResponse,
} from '@agamya/bigship-sdk';
const result = await client.cancelShipments(['13090318586270']);
if (isSuccessResponse(result)) {
console.log('Shipment cancelled');
}
const result = await client.cancelShipments([
'13090318586270',
'13090318586271',
'13090318586272',
]);
cancelShipments(awbNumbers: string[]): Promise<ApiResponse<null>>
Parameter Type Description
awbNumbers string[] Array of AWB numbers to cancel