# ECMS Express Tracking API & MCP

URL: https://docs.lastscanned.com/carriers/ecms

Query live **ECMS Express** (`ecms`) package status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` auto-detects `EC` + three letters + 11 digits numbers (`ECTSO…`, `ECZEN…`).

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `ecms` |
| **Brand aliases** | ECMS Express, ECMS Global, ecmsglobal |
| **Category** | Cross-border e-commerce parcels |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=ECTSO...,ECZEN...` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · 1 free keyless lookup/day per IP |

## Tracking Number Formats & Auto-Detection

| Pass | Rule / Regex | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | `/^EC[A-Z]{3}\d{11}$/` | none | `ECTSO00012345678` |
| **Pass 2 (`mayMatch`)** | none | none | none |

## Synchronous `GET` Request & Normalized JSON Response

```bash
curl -s "https://api.lastscanned.com/v1/track/ECTSO00012345678" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

```json
{
  "carrier": "ecms",
  "trackingNumber": "ECTSO00012345678",
  "status": "delivered",
  "statusDescription": "Shipment delivered to customer",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": "2026-03-19T12:43:00",
  "signedBy": null,
  "destination": { "city": null, "state": null, "country": "US" },
  "message": "Handed to UPS MI as 4200000009261290000000000000000000",
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-03-19T12:43:00",
      "status": "delivered",
      "description": "Shipment delivered to customer",
      "location": "LAX, CA, US",
      "code": "EVENT_301"
    },
    {
      "timestamp": null,
      "localTime": "2026-03-12T10:05:00",
      "status": "in_transit",
      "description": "Flight departure",
      "location": "Tokyo",
      "code": "EVENT_313"
    }
  ]
}
```

## Notes

- **Captcha**: ECMS asks for a one-digit arithmetic captcha (a 200x45 PNG) before it returns scans. The adapter reads the image itself and answers it, retrying on a fresh image when a glyph is not read with confidence. A batch shares one solved captcha.
- **Time zone**: ECMS gives each scan's local clock time with no reliable zone, so `localTime` is set and `timestamp` and `deliveredAt` are `null`.
- **Handoff**: `message` names the last-mile carrier ECMS passes the parcel to and the number it uses there, when ECMS shows one.

## Related Resources

- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
