How to track YTO Express (Yuantong) Spain parcels handed off to Correos (`PQ...`) & Correos Express

YTO Express (`yto`) consolidates cross-border Chinese e-commerce orders for Spain (`YT...` 15-character waybill), generates a 23-character Spanish Correos `PQ...` label, and hands cleared parcels to Correos at Madrid.

Try a live tracking number:

Barcode transition: YTO Express to Correos (Spain)

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

Origin / middle-mile carrier
YTO Express (yto)
YTO Express Waybill (`YT...`)
^YT[0-9A-Z]{12,16}$
Origin example
YT8492019482941
Final-mile carrier
Correos (Spain) (correos)
Correos Paq (`PQ...`) Barcode
^PQ[A-Z0-9]{18,22}$
Final-mile example
PQ48290418293847561081G
Extracted in .message
Last-mile carrier: Correos (PQ48290418293847561081G)

How the YTO Express → Correos handoff works

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

1. YTO Export Sortation & `PQ...` Pre-Registration
YTO Express collects the parcel in China (`YT...`) and pre-registers a 23-character Spanish Correos `PQ...` label.
2. Air Freight & Madrid Customs Clearance
Cargo flights land at Madrid-Barajas (MAD) or Liège (LGG), clear EU IOSS customs, and transfer to Correos's CTA Madrid hub in Coslada.
3. Correos Final Delivery (`En reparto`)
Correos scans `Admitido` → `En reparto` and delivers the parcel across Spain within 48–72 hours.
YTO vs YunExpress Disambiguation
`lastscanned` distinguishes 15-character YTO Express `YT...` waybills from 18-character YunExpress `YT...` numbers and extracts the linked Spanish `PQ...` Correos barcode.
Single-Call Resolution
Pass your `YT...` barcode to `GET /v1/track/{number}` to get both YTO origin milestones and Correos Spain delivery events.

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

# 2. Query the extracted Correos (Spain) barcode:
curl "https://api.lastscanned.com/v1/track/PQ48290418293847561081G" \
  -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 carrier: Correos (PQ48290418293847561081G)")
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"

YTO Express to Correos Spain Handoff Tracking FAQ

How do I find the Correos `PQ...` number for my YTO Express package?
Query `GET /v1/track/{number}` with your YTO `YT...` tracking number to extract the Spanish `PQ...` barcode automatically.
Why is my YTO package stuck on 'Pre-registrado' on Correos.es?
Correos shows `Pre-registrado` while YTO Express is flying the package from China to Europe; it updates to `Admitido` once the pallet arrives at Correos Madrid.
How long does YTO Express take to deliver to Spain?
Standard transit from China to Peninsular Spain via YTO and Correos takes 7 to 12 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