# Total Express Tracking API & MCP

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

Query live **Total Express (Brazil)** (`totalexpress`) package status and scan history in a single synchronous `GET` request or MCP tool call.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `totalexpress` |
| **Brand aliases** | Total Express, Total Express Brasil, TX |
| **Category** | Regional parcels (Brazil) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...,...` |
| **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`)** | `/^[A-Z]{4}\d{9}TX$/` | none | `TXAB123456789TX` |
| **Pass 2 (`mayMatch`)** | none | none | none |

| Format | Pattern |
|---|---|
| AWB (4 letters, 9 digits, TX) | `^[A-Z]{4}\d{9}TX$` |

Shapes this carrier does not own alone are not auto-detected; pass `?carrier=totalexpress`.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "totalexpress",
  "trackingNumber": "TXAB123456789TX",
  "status": "delivered",
  "statusDescription": "ENTREGA REALIZADA",
  "service": null,
  "deliveredAt": "2026-09-18T12:20:00Z",
  "deliveredAtLocal": "2026-09-18T09:20:00",
  "signedBy": null,
  "destination": null,
  "estimatedDelivery": "2026-10-02",
  "message": "Handed to Correios as AB123456785BR",
  "events": [
    {
      "timestamp": "2026-09-18T12:20:00Z",
      "localTime": "2026-09-18T09:20:00",
      "status": "delivered",
      "description": "ENTREGA REALIZADA",
      "location": null,
      "code": "1"
    },
    {
      "timestamp": "2026-09-18T10:03:51Z",
      "localTime": "2026-09-18T07:03:51",
      "status": "out_for_delivery",
      "description": "PROCESSO DE ENTREGA",
      "location": null,
      "code": "104"
    },
    {
      "timestamp": "2026-09-12T09:33:09Z",
      "localTime": "2026-09-12T06:33:09",
      "status": "in_transit",
      "description": "RECEBIDO CD DE:- TZO",
      "location": null,
      "code": "103"
    }
  ]
}
```

## Notes

- **Time zone**: Brazilian local time, converted from `America/Sao_Paulo` (no DST).
- **Handoff**: `redespachoNumero`, when present, becomes `message` (for a Correios `..BR` number: `Handed to Correios as ...`).
- **Not found**: the detail endpoint answers 500 for an unknown AWB, so the adapter checks the search endpoint to tell 'no such parcel' from a failure.

## Related Resources

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