Track YDH Express (`YDH...`) China-to-Spain air linehaul to Correos (`PQ...`) final-mile delivery

YDH Express (`YDH...`) transports Spanish e-commerce orders via air linehaul to Madrid-Barajas (`MAD`) or European gateways, clears EU IOSS customs, and hands parcels to Correos (`PQ...`) for sorting at CTA Madrid or CTA Barcelona.

Try a live tracking number:

Barcode transition: YDH Express to Correos

Domestic YDH Express parcels keep the same 92… / 420… barcode from pickup to mailbox. Pass ?carrier=ydh to inspect middle-mile sort scans before USPS induction.

Origin / middle-mile carrier
YDH Express (ydh)
YDH Express Waybill (YDH...)
^YDH[0-9A-Z]{10,16}$
Origin example
YDH8492019486ES
Final-mile carrier
Correos (correos)
Correos Paq Code (PQ...)
^PQ[0-9A-Z]{18,22}$
Final-mile example
PQ48290482910492819206S
Middle-mile resolution
Customs cleared at MAD — tendered to Correos (PQ48290482910492819206S)

How the YDH Express → Correos handoff works

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

1. Origin Labeling (`YDH...` + `PQ...`)
YDH Express applies a dual-barcode thermal label in China, registering the `PQ...` code as `Pre-registrado` with Correos.
2. Madrid (`MAD`) Customs & CTA Induction
Once customs clears the air manifest, pallets are inducted at Correos CTA Madrid (`Admitido` → `En tránsito`).
3. Correos Final Delivery
Your local Correos unit delivers to your address (`En reparto`) or holds the parcel at your nearest oficina de Correos or Citypaq locker.
Correos Service Tier
Paq Ligero / Paq Estándar (`PQ...`)
Typical Transit Time
6–10 business days from China dispatch to Spanish doorstep

Chain YDH 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 YDH Express middle-mile scans on the 92… barcode:
curl "https://api.lastscanned.com/v1/track/YDH8492019486ES?carrier=ydh" \
  -H "Authorization: Bearer lsk_live_YOUR_API_KEY"

# 2. Query USPS final-mile scans on the same barcode:
curl "https://api.lastscanned.com/v1/track/PQ48290482910492819206S" \
  -H "Authorization: Bearer lsk_live_YOUR_API_KEY"

TypeScript (Automatic Handoff Chaining)

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

// If USPS is still waiting on the consolidator parcel, query YDH Express middle-mile hubs:
if (pkg.carrier === "usps" && pkg.status === "label_created" && /^(420\d{5})?9[2345]/.test(number)) {
  const mid = await fetch(`https://api.lastscanned.com/v1/track/${encodeURIComponent(number)}?carrier=ydh`, { headers });
  if (mid.ok) pkg = await mid.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"

YDH Express to Correos Spain Linehaul & Final-Mile Handoff FAQ

How do I get the Correos PQ tracking code from a YDH Express number?
Paste your `YDH...` tracking number into LastScanned to extract the linked 23-character `PQ...` Correos barcode.
Why hasn't Correos updated since 'Pre-registrado'?
Correos only scans `Admitido` once YDH's linehaul flight lands in Europe, clears customs, and is unloaded at CTA Madrid or Barcelona.

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