# Maritime-Ontario Tracking API & MCP

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

Query live **Maritime-Ontario** (`maritimeontario`) package status and scan history in a single synchronous `GET` request or MCP tool call. Maritime-Ontario LTL freight bills and status history.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `maritimeontario` |
| **Brand aliases** | Maritime Ontario, M-O, MO Freight |
| **Category** | Canadian LTL freight (Ontario, Quebec and the Maritimes) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=F0000412,F0000412` |
| **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`)** | none | none | none |
| **Pass 2 (`mayMatch`)** | `^F\d{7}$` | none | `F0000412` |

The shape is shared with other carriers, so it is only tried when no other carrier claims the number; `?carrier=maritimeontario` is the sure way.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "maritimeontario",
  "trackingNumber": "F0000412",
  "status": "delivered",
  "statusDescription": "COMPLETE",
  "service": "REG-DR",
  "deliveredAt": null,
  "deliveredAtLocal": "2017-08-08T14:40:01",
  "signedBy": null,
  "destination": null,
  "message": null,
  "events": [
    {
      "timestamp": null,
      "localTime": "2017-08-08T14:40:01",
      "status": "delivered",
      "description": "COMPLETE",
      "location": "Centreville, NB",
      "code": "COMPLETE"
    },
    {
      "timestamp": null,
      "localTime": "2017-08-04T00:04:17",
      "status": "in_transit",
      "description": "INTRANSIT",
      "location": null,
      "code": "INTRANSIT"
    }
  ]
}
```

## Notes

- **Source**: The TM4Web external trace page `cp.m-o.com/trace`: `lastscanned` starts a session, resolves the bill with `bill_details_ajax.msw?func=ExternalTrace`, then reads `func=BillDetails`. No account.
- **Statuses** are the freight codes: `INTRANSIT`, `ARRCONS` (arrived at the consignee), `DEPCONS` (departed the consignee), `COMPLETE` (delivered).
- **Time zone**: status times carry no zone, so only `localTime` is set.
- **Location**: the bill's current zone, on the newest event only.
- `service` is the service level (for example `REG-DR`).

## Related Resources

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