Manifestation
Manifestation is the process of assigning a courier to a confirmed order. After manifestation, the order becomes a shipment with a tracking number (AWB for B2C, LRN for B2B).
Manifestation Methods
Section titled “Manifestation Methods”| Method | Type | Description |
|---|---|---|
manifestSingle |
B2C | Assign a courier to a single-box consumer order |
manifestHeavy |
B2B | Assign a courier to a multi-box business order |
B2C Manifestation
Section titled “B2C Manifestation”const result = await client.manifestSingle({ order_id: 'ORD-123' });// After this, AWB is generated for the orderB2B Manifestation
Section titled “B2B Manifestation”const result = await client.manifestHeavy({ order_id: 'ORD-456' });// After this, LRN is generated for the orderWhat Happens After Manifestation
Section titled “What Happens After Manifestation”- A courier is assigned to the order
- An AWB (B2C) or LRN (B2B) is generated
- Shipping labels become available via
getShipmentFile - The shipment becomes trackable via
trackShipment
Convenience: manifestAndGetAWB
Section titled “Convenience: manifestAndGetAWB”For B2C flows, the SDK provides a convenience method that manifests the order and returns the AWB in a single call:
const awb = await client.manifestAndGetAWB('ORD-123');console.log(awb.data); // AWB numberThis is equivalent to calling manifestSingle followed by getAWB, but saves a round-trip.
Full Flow Example
Section titled “Full Flow Example”// 1. Create the orderconst order = await client.addSingleOrder({ /* ... */ });
// 2. Manifest itconst manifest = await client.manifestSingle({ order_id: order.data.order_id });
// 3. Get the AWBconst awb = await client.getAWB({ order_id: order.data.order_id });
// 4. Get the shipping labelconst label = await client.getShipmentFile({ awb: awb.data });