# PCP Express Tracking API & MCP

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

Track **PCP Express** (Indonesia) AWBs with the full status history. Query live status, scan history and normalized fields in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `pcpexpress` |
| **Brand aliases** | PCP Express, PCP, PCP Express Indonesia |
| **Category** | Regional courier (ID) |
| **Source** | PCP Express tracking JSON (`POST www.pcpexpress.com/apps/RequestTracking.php`, body is the AWB as a JSON string) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=JKTPKUB3250101M00001,...` |
| **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 |

These numbers look like other carriers' numbers, so pass `?carrier=pcpexpress`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "pcpexpress",
  "trackingNumber": "JKTPKUB3250101M00001",
  "status": "delivered",
  "statusDescription": "SHIPMENT STATUS DELIVERED",
  "service": "TITIPAN REGULER EXPRESS - (TREX)",
  "deliveredAt": null,
  "deliveredAtLocal": "2025-03-12T16:07:37",
  "signedBy": null,
  "destination": {
    "city": "MEDAN",
    "state": null,
    "country": "ID"
  },
  "events": [
    {
      "timestamp": null,
      "localTime": "2025-03-12T16:07:37",
      "status": "delivered",
      "description": "SHIPMENT STATUS DELIVERED",
      "location": "MEDAN",
      "code": "2"
    },
    {
      "timestamp": null,
      "localTime": "2025-03-12T15:23:45",
      "status": "out_for_delivery",
      "description": "DELIVERY PROCESS",
      "location": "MEDAN",
      "code": "42"
    },
    {
      "timestamp": null,
      "localTime": "2025-03-07T11:59:35",
      "status": "in_transit",
      "description": "ARRIVAL AT DESTINATION",
      "location": "MEDAN",
      "code": "41"
    },
    {
      "timestamp": null,
      "localTime": "2025-03-05T01:53:59",
      "status": "in_transit",
      "description": "ARRIVE AT OPERATION",
      "location": "JAKARTA",
      "code": "201"
    }
  ]
}
```

## Notes

- **Number format**: AWBs are not distinctive enough to auto-detect; pass `?carrier=pcpexpress`.
- **Time zone**: Indonesia spans three zones and the scan office does not fix one, so only `localTime` is set.
- **Codes**: status id 2 is delivered, 42 and 77 are delivery runs, 1 is a failed attempt ("kirim ulang").

## Related Resources

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