How to track Cainiao AliExpress Choice shipments handed off to Correos Express in Spain & Portugal

Cainiao Smart Logistics flies AliExpress Choice and Plaza shipments into Madrid Barajas (`MAD`) or Liege (`LGG`) and hands off express and multi-item consolidated parcels to Correos Express (`323...` / `6...`) and EcoScooting across Spain and Portugal.

Try a live tracking number:

Barcode transition: Cainiao Smart Logistics to Correos Express

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

Origin / middle-mile carrier
Cainiao Smart Logistics (cainiao)
Cainiao LP / CNESP Tracking ID
LP00... (16 digits) or CNESP...
Origin example
LP00639182736451
Final-mile carrier
Correos Express (correosexpress)
Correos Express 16/23-Digit Shipping Number
323... / 6... (16–23 digits)
Final-mile example
3230001928374651
Extracted in .message
3230001928374651

How the Cainiao → Correos Express handoff works

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

1. Cainiao Dongguan Consolidation
Cainiao combines multiple AliExpress Choice orders into a single polybag in Dongguan and assigns an Iberian last-mile barcode.
2. Madrid Barajas (`MAD`) Air Linehaul & Customs
Direct Cainiao cargo flights land in Madrid (`MAD`), clear Spanish AEAT customs via IOSS, and transfer to Cainiao's San Fernando de Henares / Coslada hub.
3. Correos Express 24h Delivery
Correos Express scans the parcel into its Coslada hub (`En reparto`) and delivers it across Peninsular Spain, the Balearics, or Portugal with SMS/WhatsApp PIN notification.
Origin Consolidator
`cainiao` (Cainiao Smart Logistics)
Spanish Express Final Mile
`correosexpress` (Correos Express Paq 24)
Unified API Resolution
`GET /v1/track/{number}` links Cainiao `LP...` / `CNESP...` IDs with Correos Express domestic scans.

Chain Cainiao → Correos Express 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 Smart Logistics origin waybill (extracts final-mile barcode in .message):
curl "https://api.lastscanned.com/v1/track/LP00639182736451" \
  -H "Authorization: Bearer lsk_live_YOUR_API_KEY"

# 2. Query the extracted Correos Express barcode:
curl "https://api.lastscanned.com/v1/track/3230001928374651" \
  -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 ("3230001928374651")
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 Iberia Linehaul to Correos Express & EcoScooting Spain Handoff FAQ

What is the difference between Correos and Correos Express for Cainiao AliExpress parcels?
Correos is Spain's national postal service (`PQ...`), whereas Correos Express is its urgent courier subsidiary (`323...`) used by Cainiao for faster AliExpress Choice and 5–7 day delivery.
How fast does Correos Express deliver after Cainiao clears Madrid customs?
Once Correos Express receives the parcel at its Madrid Coslada hub, Peninsular Spain delivery typically takes 24 to 48 business hours.
Can I change my delivery date or choose a Correos office with Correos Express?
Yes—Correos Express sends an SMS or email with a link to modify the delivery window or redirect the parcel to a local Correos post office.

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