# OCASA Tracking API & MCP

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

Query live **OCASA** (`ocasa`, Argentina) package status, scan history and who received it in a single synchronous `GET` request or MCP tool call. OCASA numbers share shapes with other carriers, so pass `?carrier=ocasa`.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `ocasa` |
| **Brand aliases** | OCASA, OCASA Argentina, Seguimiento OCASA |
| **Category** | Regional parcels (Argentina) |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=ocasa` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...&carrier=ocasa` |
| **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 |

OCASA numbers are 11 digits (also GLS's shape), 18 digits or letters and digits, so `?carrier=ocasa` is required.

## Synchronous `GET` Request & Normalized JSON Response

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

```json
{
  "carrier": "ocasa",
  "trackingNumber": "12345678901",
  "status": "delivered",
  "statusDescription": "Entregado",
  "service": null,
  "deliveredAt": "2026-07-05T13:00:00Z",
  "deliveredAtLocal": "2026-07-05T10:00:00",
  "signedBy": "Maria Perez",
  "destination": { "city": "La Rioja", "state": null, "country": "AR" },
  "events": [
    {
      "timestamp": "2026-07-05T13:00:00Z",
      "localTime": "2026-07-05T10:00:00",
      "status": "delivered",
      "description": "Entregado",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-07-05T11:23:00Z",
      "localTime": "2026-07-05T08:23:00",
      "status": "out_for_delivery",
      "description": "Hoy llegamos",
      "location": null,
      "code": null
    },
    {
      "timestamp": "2026-06-28T12:26:00Z",
      "localTime": "2026-06-28T09:26:00",
      "status": "in_transit",
      "description": "Pedido en centro",
      "location": "Salta - AR",
      "code": null
    }
  ]
}
```

## Notes

- **Year is inferred**: OCASA prints scan times as `05/JUL - 10:00 hs.` with no year. The newest scan is placed in the latest year that is not in the future, and the year steps back whenever the list jumps to a later month. A parcel whose latest scan is over a year old can therefore come out a year late.
- **Time zone**: Argentina time (UTC-3 all year).
- **Wording**: no status codes, so the Spanish state names are mapped (`Entregado`, `Hoy llegamos` out for delivery, `Entrega no efectuada` exception, `Pedido en centro` in transit).
- **How it is queried**: OCASA's `/TrackingOnline/index` page, which renders the tracking timeline without a captcha step.

## Related Resources

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