# Domex Tracking API & MCP

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

Query live **Domex** (`domex`) package status and scan history in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `domex` |
| **Brand aliases** | Domex, Domex Sri Lanka, domex.lk |
| **Category** | Sri Lankan domestic courier |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=300111725,300111725` |
| **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`)** | none | none | none |

Domex numbers have no shape that other carriers do not also use, so they are not auto-detected: pass `?carrier=domex`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "domex",
  "trackingNumber": "300111725",
  "status": "delivered",
  "statusDescription": "Complete",
  "service": null,
  "deliveredAt": "2026-06-25T04:38:00Z",
  "deliveredAtLocal": "2026-06-25T10:08:00",
  "signedBy": null,
  "destination": {
    "city": "Galle",
    "state": null,
    "country": "LK"
  },
  "events": [
    {
      "timestamp": "2026-06-25T04:38:00Z",
      "localTime": "2026-06-25T10:08:00",
      "status": "delivered",
      "description": "Complete",
      "location": null,
      "code": "CIG"
    },
    {
      "timestamp": "2026-06-20T06:24:53Z",
      "localTime": "2026-06-20T11:54:53",
      "status": "delivered",
      "description": "Delivered",
      "location": "Galle",
      "code": "D"
    },
    {
      "timestamp": "2026-06-20T04:24:14Z",
      "localTime": "2026-06-20T09:54:14",
      "status": "out_for_delivery",
      "description": "Out For Delivery",
      "location": "Galle",
      "code": "ATD"
    },
    {
      "timestamp": "2026-06-19T13:05:39Z",
      "localTime": "2026-06-19T18:35:39",
      "status": "label_created",
      "description": "Waiting To Pickup",
      "location": "Colombo",
      "code": "CI"
    }
  ]
}
```

## Notes

- **Locations**: each scan reads "`<step>` By `<branch>`"; the branch becomes `location`. Head-office finance steps carry no location.
- **Time zone**: Domex prints Sri Lanka time. `localTime` is that clock time and `timestamp` is it converted from UTC+5:30.
- **Status**: the carrier's own step codes decide `status` (`D` delivered, `ATD` out for delivery, `CI` label created). After `D`, the later POD and cash-collection steps stay `delivered`.

## Related Resources

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