# Pathao Courier Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `pathao` |
| **Brand aliases** | Pathao, Pathao Parcel, Pathao Merchant |
| **Category** | Bangladeshi domestic courier |
| **Region** | Bangladesh |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=DD150125AB12CD,...` |
| **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`)** | `/^D[A-Z]\d{6}[A-Z0-9]{6}$/` | none | `DD150125AB12CD` |
| **Pass 2 (`mayMatch`)** | none | none | none |

Consignment IDs (`D` + a letter, the order date as `ddmmyy`, then six letters or digits) belong to Pathao alone, so `?carrier=pathao` is optional.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "pathao",
  "trackingNumber": "DD150125AB12CD",
  "status": "delivered",
  "statusDescription": "Order has been delivered to the customer",
  "service": null,
  "deliveredAt": "2026-01-15T10:56:00Z",
  "deliveredAtLocal": "2026-01-15T16:56:00",
  "signedBy": null,
  "destination": {
    "city": null,
    "state": null,
    "country": "BD"
  },
  "events": [
    {
      "timestamp": "2026-01-15T10:56:00Z",
      "localTime": "2026-01-15T16:56:00",
      "status": "delivered",
      "description": "Order has been delivered to the customer",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-01-15T09:35:00Z",
      "localTime": "2026-01-15T15:35:00",
      "status": "out_for_delivery",
      "description": "Order has been assigned to a rider for delivery",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-01-14T08:52:00Z",
      "localTime": "2026-01-14T14:52:00",
      "status": "in_transit",
      "description": "Order has been reached at delivery hub",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- **Time zone**: Pathao prints Bangladesh local time (`+06:00`), so `timestamp` is exact.
- **Privacy**: rider names and phone numbers in the wording are replaced ("assigned to a rider").

## Related Resources

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