Cainiao Poland & Europe Locker Linehaul to InPost Paczkomat Handoff

How AliExpress and Cainiao parcels clear EU customs in Liège or Warsaw and hand off to InPost's 24-digit Paczkomat® locker network in Poland.

Try a live tracking number:

Barcode transition: Cainiao to InPost

When Cainiao clears customs and hands off to InPost, lastscanned surfaces the secondary tracking number in the top-level message field.

Origin / middle-mile carrier
Cainiao (cainiao)
Cainiao Tracking Number (LP… / 620…)
LP… / 620… (24 digits)
Origin example
LP00639182736453
Final-mile carrier
InPost (inpost)
InPost 24-Digit Paczkomat Code (620…)
620… (24 digits)
Final-mile example
620192837461528391029384
Extracted in .message
Cleared customs - Handed over to InPost Poland

How the Cainiao → InPost handoff works

Follow the parcel across both networks without waiting on asynchronous webhooks or losing visibility at the handoff boundary.

1. AliExpress Paczkomat® selection & Cainiao consolidation
When a Polish buyer selects an InPost Paczkomat® on AliExpress, Cainiao assigns a 24-digit `620...` InPost barcode at its Dongguan consolidation warehouse.
2. Air/rail arrival & Stryków hub induction
After clearing EU customs in Liège (LGG), Budapest, or Warsaw, linehaul trucks deliver directly to InPost's central Polish sorting hub in Stryków/Wola Bykowska.
3. Paczkomat® locker placement & InPost Mobile push notification
The InPost courier places the parcel in the locker ('Gotowa do odbioru'), triggering a 6-digit pickup code and QR code in the InPost Mobile app.
Cainiao query
GET /v1/track/LP00639182736453?carrier=cainiao
InPost query
GET /v1/track/620192837461528391029384?carrier=inpost

Chain Cainiao → InPost in code or MCP

Resolve both legs synchronously in TypeScript, curl, or your AI support agent via Streamable HTTP MCP.

REST (Synchronous GET)

# 1. Query Cainiao origin waybill (extracts final-mile barcode in .message):
curl "https://api.lastscanned.com/v1/track/LP00639182736453" \
  -H "Authorization: Bearer lsk_live_YOUR_API_KEY"

# 2. Query the extracted InPost barcode:
curl "https://api.lastscanned.com/v1/track/620192837461528391029384" \
  -H "Authorization: Bearer lsk_live_YOUR_API_KEY"

TypeScript (Automatic Handoff Chaining)

const headers = { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}` };
const originRes = await fetch(`https://api.lastscanned.com/v1/track/${encodeURIComponent(number)}`, { headers });
const originPkg = await originRes.json();

// Extract secondary barcode from top-level message ("Cleared customs - Handed over to InPost Poland")
const handoff = originPkg.message?.match(/^Handed to (.+?) as ([A-Z0-9-]+)$/i);
if (handoff) {
  const [, , lastMileNumber] = handoff;
  const destRes = await fetch(`https://api.lastscanned.com/v1/track/${encodeURIComponent(lastMileNumber)}`, { headers });
  const destPkg = await destRes.json();
}

Remote MCP (Claude Code / Cursor / ChatGPT)

claude mcp add --transport http lastscanned https://mcp.lastscanned.com \
  --header "Authorization: Bearer lsk_live_YOUR_API_KEY"

Cainiao Poland & Europe Locker Linehaul to InPost Paczkomat Handoff FAQ

How do I make my AliExpress / Cainiao package appear in the InPost Mobile app?
As soon as Cainiao generates the 24-digit `620...` InPost tracking number tied to your Polish phone number, the shipment automatically appears inside your InPost Mobile app under 'W drodze'.
How long is an AliExpress package held inside an InPost Paczkomat®?
InPost holds Paczkomat® parcels for 48 hours from placement in the locker.

Other carrier handoff guides

Explore cross-border last-mile barcode extraction and domestic USPS consolidator overrides across all 273 carriers.

All 273 supported carriers

International posts and couriers

Cross-border