Track AliExpress, Miravia & SHEIN Spain parcels across Cainiao, EcoScooting, Correos (PQ…), and Correos Express.

In Spain, Cainiao (AliExpress / Miravia) routes urban parcels through its high-density last-mile courier EcoScooting (ECSC… / CNES…) and transfers suburban, rural, and island (Balearic/Canary) parcels to Correos (PQ…) and Correos Express (323…).

Try a live tracking number:

Barcode transition: EcoScooting / Cainiao Spain to Correos / Correos Express

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

Origin / middle-mile carrier
EcoScooting / Cainiao Spain (ecoscooting)
EcoScooting / Cainiao Spain barcode (CNES… / ECSC… / PQ…)
^(CNES[0-9A-Z]{10,16}|ECSC[0-9A-Z]{10,16}|PQ[0-9A-Z]{18,22})$
Origin example
CNESP123456789012
Final-mile carrier
Correos / Correos Express (correos)
Correos PQ… (23 chars) or Correos Express 323… (16 digits)
^(PQ[0-9A-Z]{21}|\d{16})$
Final-mile example
PQ4F6P07012345678012800Z
Extracted in .message
En reparto / Entregado a empresa de reparto local (EcoScooting / Correos)

How the EcoScooting → Correos handoff works

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

1. Cainiao Madrid / Liege linehaul
Cainiao flies the AliExpress or Miravia parcel to Madrid Barajas (MAD) or trucks it from Liege and clears EU IOSS customs.
2. Spanish hub allocation
At the Madrid/Guadalajara sorting hub, parcels are routed either to EcoScooting for metro delivery or to Correos / Correos Express.
3. En reparto (Out for delivery)
EcoScooting, Correos, or Correos Express scans En reparto and delivers to the recipient or Citypaq locker.
EcoScooting query
GET /v1/track/CNESP123456789012?carrier=ecoscooting
Correos query
GET /v1/track/PQ4F6P07012345678012800Z?carrier=correos
Correos Express query
GET /v1/track/3230001234567890?carrier=correosexpress

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

# 2. Query the extracted Correos / Correos Express barcode:
curl "https://api.lastscanned.com/v1/track/PQ4F6P07012345678012800Z" \
  -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 ("En reparto / Entregado a empresa de reparto local (EcoScooting / Correos)")
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 & EcoScooting (ECSC… / CNES…) to Correos & Correos Express Spain Handoff Tracking FAQ

What is EcoScooting and how does it relate to Correos on AliExpress Spain?
EcoScooting is Cainiao's last-mile delivery partner in major Spanish cities (Madrid, Barcelona, Valencia, Seville, Malaga), while Correos and Correos Express handle additional postcodes and locker deliveries across Spain.
Can I track CNES, ECSC, and PQ tracking numbers in one API call?
Yes. GET /v1/track/{number} supports EcoScooting, Cainiao, Correos, and Correos Express natively.

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