# Cross-Border & Domestic Consolidator Last-Mile Handoff Tracking Guide (Yanwen, 4PX, Cainiao, YunExpress, OSM, Pitney Bowes)

URL: https://docs.lastscanned.com/cross-border-last-mile-handoff-tracking-yanwen-4px-cainiao

Cross-border e-commerce shipments and domestic workshare consolidator parcels rarely travel on a single carrier network from origin warehouse to the customer's front door. Instead, a parcel moves through two distinct stages:

1. **Linehaul & Consolidator Stage**: Export sortation, air freight, customs clearance, or regional zone-skipping handled by **[Yanwen](/carriers/yanwen)**, **[4PX Express](/carriers/4px)**, **[Cainiao](/carriers/cainiao)**, **[YunExpress](/carriers/yunexpress)**, **[CNE Express](/carriers/cne)**, **[SunYou](/carriers/sunyou)**, **[UBI Smart Parcel](/carriers/ubi)**, **[ECMS Express](/carriers/ecms)**, **[OSM Worldwide](/carriers/osm)**, or **[Pitney Bowes](/carriers/pitneybowes)**.
2. **Destination Last-Mile Delivery Stage**: Doorstep delivery executed by a regional or national courier—**[UniUni](/carriers/uniuni)**, **[SpeedX](/carriers/speedx)**, **[GOFO Express](/carriers/gofo)**, **[OnTrac](/carriers/ontrac)**, **[Veho](/carriers/veho)**, **[USPS](/carriers/usps)**, **[FedEx](/carriers/fedex)**, **[Canada Post](/carriers/canadapost)**, or **[Intelcom / Dragonfly](/carriers/intelcom)**—often under a **newly issued secondary tracking number**.

**[lastscanned](https://lastscanned.com)** automatically detects every major consolidator format across **[542 carriers](/carriers)**, repairs cross-timezone sorting bugs, and surfaces the **destination carrier and secondary tracking number** directly in the top-level `message` field—both on synchronous `GET /v1/track/:number` lookups and in **[Watches & Webhooks](/webhooks)** (via the **[Web UI Dashboard](https://app.lastscanned.com/watches)** or `POST /v1/watches`).

---

## Verified Consolidator & Last-Mile Handoff Matrix

Every example tracking number below comes from real recorded carrier fixtures supported by `GET https://api.lastscanned.com/v1/track/{trackingNumber}`:

| Origin Consolidator | Slug (`?carrier=`) | Verified Example Waybill | Common Destination Last-Mile Couriers | How `lastscanned` Resolves the Handoff |
|---|---|---|---|---|
| **[Yanwen](/carriers/yanwen)** | `yanwen` | `UL494089685YP` · `YWSTL010022557186` | `USPS`, `UniUni`, `SpeedX`, `OnTrac`, `Canada Post`, `Intelcom`, `Royal Mail` | Extracts exchange barcode and destination carrier into `message` (e.g., `"Handed to UniUni as UUS5BM1269395824723"`). |
| **[4PX Express](/carriers/4px)** | `4px` | `4PX3002639757438CN` | `USPS`, `UniUni`, `SpeedX`, `GOFO`, `Royal Mail`, `Australia Post` | Repairs 4PX's `UTC+8` wall-clock epoch bug and surfaces `channelContact` + `serverCode` in `message`. |
| **[Cainiao](/carriers/cainiao)** | `cainiao` | `LP00836938654367` · `AP00830954074290` | `USPS`, `UniUni`, `SpeedX`, `GOFO`, `OnTrac`, `Correos`, `Colissimo` | Resolves `LP…` / `AP…` / `CNUSUP…` waybills and extracts the local delivery tracking number into `message`. |
| **[YunExpress](/carriers/yunexpress)** | `yunexpress` | `YT2621200705470145` · `YT2625900708886066` | `USPS`, `UniUni`, `SpeedX`, `GOFO`, `OnTrac`, `Veho`, `DHL`, `DPD` | Extracts the destination last-mile carrier and secondary barcode from ` YT…` 18-character waybills. |
| **[CNE Express](/carriers/cne)** | `cne` | `3A5V735000008` · `3A5V913107080` | `USPS`, `UniUni`, `SpeedX`, `Royal Mail`, `Hermes/Evri` | Handles CNE signature generation and extracts the destination tracking number into `message`. |
| **[SunYou](/carriers/sunyou)** | `sunyou` | `SYGB024500000` | `USPS`, `Royal Mail`, `Canada Post`, `UniUni` | Unwraps SunYou JSONP responses, fixes mislabeled `+08:00` destination offsets, and surfaces the handoff barcode. |
| **[UBI Smart Parcel](/carriers/ubi)** | `ubi` | `AU0000005887447` | `Australia Post`, `NZ Post`, `Canada Post`, `USPS`, `Evri` | Deduplicates partner scans and extracts the local postal/courier tracking number. |
| **[ECMS Express](/carriers/ecms)** | `ecms` | `ECTSO00000801568` · `ECTSO00049071335` | `USPS`, `FedEx`, `UniUni`, `Sagawa`, `Yamato` | Normalizes cross-border air freight and customs clearance milestones with last-mile handoff references. |
| **[SFC (SendFromChina)](/carriers/sfc)** | `sfc` | `SFCAA0121278784YQ` | `USPS`, `UniUni`, `Royal Mail`, `Hermes/Evri`, `Canada Post` | Tracks `SFC…` export waybills and surfaces the destination postal/courier handoff barcode. |
| **[Chukou1 (出口易)](/carriers/chukou1)** | `chukou1` | `SUF2403231LW1003974` | `USPS`, `FedEx`, `UPS`, `Royal Mail`, `DHL Paket` | Normalizes Chukou1 overseas warehouse and linehaul scans with last-mile tracking extraction. |
| **[JCEX (佳成国际)](/carriers/jcex)** | `jcex` | `JCZ0318108989DH` · `JCZ1006008960DH` | `USPS`, `UPS`, `FedEx`, `DPD`, `GLS` | Tracks `JCZ…` cross-border air parcels through customs and domestic courier delivery. |
| **[DHL eCommerce](/carriers/dhlecommerce)** | `dhlecommerce` | `272085497D` · `9261290316844317469885` | `USPS` (`92…` / `93…` IMpb final mile) | Tracks DHL eCommerce middle-mile sortation and links directly to the USPS final-mile delivery barcode. |
| **[Asendia](/carriers/asendia)** | `asendia` | `AHOY15H55PMT` · `00091399050136308562` | `USPS`, `La Poste`, `Swiss Post`, `Royal Mail`, `Canada Post` | Resolves Asendia USA/Europe cross-border consolidation and final postal delivery scans. |
| **[OSM Worldwide](/carriers/osm)** | `osm` | `9261290318412001879814` | `USPS` (same `92…` IMpb barcode) | Pass `?carrier=osm` on `92…` USPS numbers stuck in `"USPS Currently Awaiting Package"` to retrieve live middle-mile sort scans. |
| **[Pitney Bowes](/carriers/pitneybowes)** | `pitneybowes` | `UPAAG000000089627496` · `9261290980949654107812` | `USPS` (same `92…` IMpb barcode) | Auto-detects `UPA…` parcels or queries `92…` USPS consolidator parcels via `?carrier=pitneybowes` during the middle-mile transit gap. |

---

## 1. Two-Hop Cross-Border Lookup Pattern (`GET /v1/track`)

When a customer enters an origin consolidator number like `YT2621200705470145` (`YunExpress`) or `UL494089685YP` (`Yanwen`), a single helper function can retrieve the origin leg and—if the parcel has already been assigned a domestic barcode (`UUS5BM1269395824723`, `SPXCLT138701431240`, `GFUS01074503026309`, `1LS729108273411`, or `9261290980949654107812`)—fetch the live doorstep delivery timeline automatically:

```ts
export async function resolveCrossBorderShipment(trackingNumber: string, apiKey: string) {
  // Step 1: Query the origin tracking number
  const originRes = await fetch(
    `https://api.lastscanned.com/v1/track/${encodeURIComponent(trackingNumber)}`,
    { headers: { Authorization: `Bearer ${apiKey}` } },
  );
  const origin = await originRes.json();

  // Step 2: Check `origin.message` for a last-mile handoff barcode
  // Example: "Handed to UniUni as UUS5BM1269395824723"
  const match = origin.message?.match(/Handed to (.+?) as ([A-Z0-9]{8,34})/i);
  if (match) {
    const [, destinationCarrierName, destinationTrackingNumber] = match;
    const destRes = await fetch(
      `https://api.lastscanned.com/v1/track/${encodeURIComponent(destinationTrackingNumber)}`,
      { headers: { Authorization: `Bearer ${apiKey}` } },
    );
    if (destRes.ok) {
      const destination = await destRes.json();
      return { origin, destinationCarrierName, destination };
    }
  }

  return { origin, destinationCarrierName: null, destination: null };
}
```

---

## 2. Solving the Domestic `92…` `"USPS Currently Awaiting Package"` Blind Spot

Millions of US domestic parcels ship via **OSM Worldwide** or **Pitney Bowes** using a 22-digit `92…` (or 30-digit `420` + ZIP + `92…`) USPS Intelligent Mail package barcode. While the parcel travels across OSM or Pitney Bowes sortation hubs in Illinois, Pennsylvania, Texas, or California for 3 to 7 days, USPS's own system only shows:

> `"Pre-Shipment: Picked Up by Shipping Partner, USPS Awaiting Item"`

With `lastscanned`, when `GET /v1/track/9261290318412001879814` returns `status: "label_created"`, you can query the exact same barcode with **`?carrier=osm`** or **`?carrier=pitneybowes`**:

```bash
# Query OSM Worldwide's middle-mile hub scans on a 92... USPS barcode
curl -s "https://api.lastscanned.com/v1/track/9261290318412001879814?carrier=osm" \
  -H "Authorization: Bearer $LASTSCANNED_KEY"

# Or test interactively in your browser:
# https://lastscanned.com/tools/usps-awaiting-item-checker
```

---

## 3. Watching Cross-Border & Consolidator Shipments in the Web UI Dashboard or API

Instead of manually checking when a `Yanwen`, `4PX`, `Cainiao`, or `YunExpress` parcel clears customs or transfers to `UniUni` or `SpeedX`:

- **In the Web UI Dashboard ([`app.lastscanned.com/watches`](https://app.lastscanned.com/watches))**: Paste up to 100 cross-border or regional tracking numbers in your browser, tag them with an order or batch label, and view live status updates and full timelines with zero code.
- **Via Webhooks ([`app.lastscanned.com/webhooks`](https://app.lastscanned.com/webhooks) or `POST /v1/watches`)**: Configure your webhook endpoint in either native `lastscanned` JSON or drop-in **17TRACK v2 format (`"format": "17track"`)**. Whenever a handoff barcode is assigned or the package moves, `lastscanned` pushes a signed `tracking.updated` event automatically.

---

## Related Guides & Tools

- **[All 245+ Cross-Border & Last-Mile Handoff Routes (`lastscanned.com/handoff`)](https://lastscanned.com/handoff)**
- **[USPS "Awaiting Item" Consolidator Checker Tool](https://lastscanned.com/tools/usps-awaiting-item-checker)**
- **[Regional & Cross-Border Carrier Tracking API Guide](/regional-carrier-tracking-api-uniuni-speedx-veho-gofo-ontrac)**
- **[Watches and Webhooks (`app.lastscanned.com/watches` & `POST /v1/watches`)](/webhooks)**
- **[Chargeback & Dispute Proof-of-Delivery Tracking API](/chargeback-dispute-proof-of-delivery-tracking-api)**
