# Canpar Express Tracking API & MCP

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

Query live **Canpar Express** (`canpar`, a TFI company) package status, signature and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` reads the same public service the tracker on canpar.com uses, so no account or API key is needed.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `canpar` |
| **Brand aliases** | Canpar, Canpar Express, Canpar Courier |
| **Category** | Canadian domestic and Canada-US courier |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=canpar` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...&carrier=canpar` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` (`claude mcp add --transport http lastscanned https://mcp.lastscanned.com`) |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · **1 free keyless lookup/day per IP** · **Free tier** (5 unique numbers/day, $0) · **Pro** ($4.99/mo for 1,000 unique numbers, unlimited re-polls, $0.015/extra) · **HTTP 402 Stripe MPP** ($0.50 for 25-number `lsk_pack_` key or $0.02/number in USDC on Tempo) |

## Tracking Number Formats & Auto-Detection

| Pass | Rule / Regex | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | `/^D\d{15}$/` (D plus 15 digits) | none | `D426932100090013` |
| **Pass 2 (`mayMatch`)** | *None* | none | none |
| **Explicit (`?carrier=canpar`)** | 16-digit barcodes, `P` pickup tags, `W` delivery notices | none | `1234567890123456` |

## Synchronous `GET` Request & Normalized JSON Response

### `curl`

```bash
curl -s "https://api.lastscanned.com/v1/track/D426932100090013?carrier=canpar" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

### JavaScript / TypeScript (`fetch`)

```ts
const res = await fetch("https://api.lastscanned.com/v1/track/D426932100090013?carrier=canpar", {
  headers: { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}` },
});
const pkg = await res.json();
console.log(pkg.status, pkg.events[0]);
```

### MCP `track_package` tool call

```json
{
  "tool": "track_package",
  "arguments": {
    "tracking_number": "D426932100090013",
    "carrier": "canpar"
  }
}
```

### Normalized `TrackingResult` JSON response

```json
{
  "carrier": "canpar",
  "trackingNumber": "D426932100090013",
  "status": "out_for_delivery",
  "statusDescription": "Out for delivery",
  "service": "Ground",
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": { "city": "Calgary", "state": "AB", "country": "CA" },
  "estimatedDelivery": "2026-10-27",
  "events": [
    {
      "timestamp": "2026-10-27T13:05:12Z",
      "localTime": "2026-10-27T07:05:12",
      "status": "out_for_delivery",
      "description": "Out for delivery",
      "location": "Calgary, AB",
      "code": "OFD"
    },
    {
      "timestamp": "2026-10-26T22:41:03Z",
      "localTime": "2026-10-26T18:41:03",
      "status": "in_transit",
      "description": "Arrived at terminal",
      "location": "Toronto, ON",
      "code": "ARR"
    }
  ]
}
```

## Notes

- **Time zones**: scan times are local to the terminal with no zone, so `timestamp` is derived from the province of the scan's address (Canadian provinces and territories). A scan with no address keeps only `localTime`.
- **Unknown numbers**: Canpar answers a number it has no record of with an empty result, which comes back as `404 not_found`.
- **Other shapes**: pickup tags (`P...`), delivery notices (`W...`) and 16-digit barcodes are not auto-detected; pass `?carrier=canpar`.
- **Sister brands**: [Loomis Express](/carriers/loomis) is also part of TFI but runs its own tracker.

## Related Resources

- **Carrier hub**: [All supported carriers](/carriers)
- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
- **AI support workflows**: [WISMO AI agents & synchronous tracking](/wismo)
