# Paperfly Tracking API & MCP

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

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

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `paperfly` |
| **Brand aliases** | Paperfly Bangladesh, Paperfly Private Limited, Paperfly Courier |
| **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=PFL-BD-CB-1000012345,...` |
| **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`)** | `/^PFL-BD-CB-\d{10}$/` | none | `PFL-BD-CB-1000012345` |
| **Pass 2 (`mayMatch`)** | `/^\d{6}-\d{6}-[A-Z]\d-[A-Z]\d$/` | none | `PFL-BD-CB-1000012345` |

`PFL-BD-CB-` plus ten digits is a marketplace order number that belongs to Paperfly; Paperfly's own `ddmmyy-nnnnnn-A1-K1` order numbers are tried when nothing else claims them. The dashes are part of the number.

## Synchronous `GET` Request & Normalized JSON Response

```bash
curl -s "https://api.lastscanned.com/v1/track/PFL-BD-CB-1000012345?carrier=paperfly" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

```json
{
  "carrier": "paperfly",
  "trackingNumber": "PFL-BD-CB-1000012345",
  "status": "delivered",
  "statusDescription": "Delivered",
  "service": null,
  "deliveredAt": "2026-02-04T22:44:27Z",
  "deliveredAtLocal": "2026-02-05T04:44:27",
  "signedBy": null,
  "destination": {
    "city": null,
    "state": null,
    "country": "BD"
  },
  "events": [
    {
      "timestamp": "2026-02-04T22:44:27Z",
      "localTime": "2026-02-05T04:44:27",
      "status": "in_transit",
      "description": "Parcel in transit",
      "location": null,
      "code": null
    }
  ]
}
```

## Notes

- **Overall status**: the reply's `status` ("Delivered") can run ahead of the timeline, whose last message may still read "Parcel in transit". `status` and `statusDescription` follow the overall status.
- **Time zone**: Bangladesh local time (`+06:00`).
- **Privacy**: the reply also carries sender, receiver and address blocks; the adapter does not read them. A marketplace number resolves to Paperfly's own order number.

## Related Resources

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