How to track YunExpress (`YT...`) Spain parcels handed off to Correos (`PQ...`), Correos Express & CTT Express

YunExpress (`yunexpress`) consolidates cross-border e-commerce orders in China (`YT` + 16 digits), flies them into Madrid or Liège, and hands Spanish parcels off to Correos (`PQ...`), Correos Express (`323...`), or CTT Express for final delivery.

Try a live tracking number:

Barcode transition: YunExpress to Correos & Correos Express (Spain)

When YunExpress clears customs and hands off to Correos & Correos Express (Spain), lastscanned surfaces the secondary tracking number in the top-level message field.

Origin / middle-mile carrier
YunExpress (yunexpress)
YunExpress 18-character Waybill (`YT...`)
^YT[0-9]{16}$
Origin example
YT2611421272084920
Final-mile carrier
Correos & Correos Express (Spain) (correos)
Correos Paq (`PQ...`) / Correos Express Barcode
^(PQ[A-Z0-9]{18,22}|[0-9]{16,23})$
Final-mile example
PQ48290418293847561050D
Extracted in .message
Last mile tracking number: PQ48290418293847561050D (Correos)

How the YunExpress → Correos handoff works

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

1. YunExpress Origin Processing (`YT...`)
YunExpress receives the package at its Shenzhen, Yiwu, or Dongguan hub (`YT` + 16 digits) and generates the Spanish last-mile `PQ...` (Correos) or `323...` (Correos Express) barcode.
2. Air Linehaul & Madrid Customs Clearance
Shipments fly into Madrid-Barajas (MAD) or Amsterdam/Liège, clear EU IOSS customs, and are trucked to Correos's CTA Madrid hub in Coslada.
3. Spanish Last-Mile Delivery
Correos or Correos Express scans the parcel (`Admitido` → `En reparto`) and delivers it within 24–72 hours across Peninsular Spain and the Balearic Islands.
`LastMileTrackingNumber` Field
YunExpress's tracking API returns the Spanish `PQ...` or Correos Express barcode as soon as the parcel is weighed at the origin sorting center.
Automatic Handoff Stitching
`GET /v1/track/{number}` automatically queries both YunExpress and Correos/Correos Express to return one chronological event array.

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

# 2. Query the extracted Correos & Correos Express (Spain) barcode:
curl "https://api.lastscanned.com/v1/track/PQ48290418293847561050D" \
  -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 ("Last mile tracking number: PQ48290418293847561050D (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"

YunExpress to Correos & Correos Express Spain Handoff Tracking FAQ

How do I find my Correos tracking number from a `YT...` YunExpress number?
Pass your 18-character `YT...` number to `GET /v1/track/{number}` to retrieve the Spanish `PQ...` (Correos) or Correos Express last-mile barcode.
Why does Correos say 'Pre-registrado' while YunExpress shows 'Flight departed'?
YunExpress creates the Correos label electronically when the package leaves China. Correos updates to `Admitido` once the physical pallet arrives at the Madrid sorting hub after customs clearance.
How long does YunExpress take to deliver to Spain?
Standard YunExpress Spain Direct Line delivery takes 6 to 10 calendar days.

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