---
title: "Every trip this account tracked under one number"
method: GET
path: "/v1/containers/{reference}/trips"
---

# Every trip this account tracked under one number

`GET /v1/containers/{reference}/trips`

## Request

- Base URL: `https://api.trackingmcp.com`
- URL: `https://api.trackingmcp.com/v1/containers/{reference}/trips`
- Auth: HTTP bearer

A container number is reused: the box comes back empty, goes out again, and is tracked again. This lists each trip your account tracked under the number, newest first, the current one first. An earlier trip is kept either on an archived record of its own (`has_card` true) or on a record that moved on when the line moved the box to its next booking (`has_card` false). Read-only: no carrier is asked, and no record is created or restored from the archive. A trip that ended before you started tracking the number is not listed. A number this account never tracked answers with an empty list. An earlier trip is free; a list that includes the current trip counts as a read of that shipment, the same as the container list.

## Path parameters

- `reference` string, required

## Response `200`

The trips, newest first.

- object
  - `ok` true, required
  - `api_version` string: The response contract this build answers, as a date. Pin it in your client.
  - `data` TripPage, required
    - `reference` string, required: The number the trips are listed for.
    - `items` TripSummary[], required
      - `trip_id` string, required: Stable id of the trip. Opaque: store it as given and pass it back to open the trip.
      - `container_id` string, uuid, required: The record the trip is kept on.
      - `reference` string, nullable: The number the record is tracked by.
      - `current` boolean, required: True for the trip a live record shows now. False for every earlier trip.
      - `has_card` boolean, required: True when the trip has a record of its own, so its full detail can be read. False for a trip kept on a record that moved on: only its moves are kept.
      - `archived_at` string, date-time, nullable: When the record the trip is kept on was archived. Null for a live record.
      - `carrier_code` string, nullable: SCAC of the line.
      - `status` 'pre_departure' | 'in_transit' | 'at_transshipment' | 'at_anchor' | 'at_berth' | 'arriving' | 'discharged' | 'customs_hold' | 'available' | 'delivered' | 'returned_empty' | 'cancelled' | 'unknown', nullable: Derived container status (from `GET /v1/containers/{id}`). Ocean lifecycle order — `discharged` → `available` → `delivered` → `returned_empty`. Two terminal end-of-shipment values: `delivered` (laden container gated out to the consignee at the destination port) and `returned_empty` (the empty box was returned to the depot AFTER delivery — the true end of shipment). `returned_empty` outranks `delivered`; a box that has been returned reads `returned_empty` even though it was `delivered` earlier.
      - `origin_unlocode` string, nullable: UN/LOCODE of the trip's origin. Null for a trip without a record of its own.
      - `destination_unlocode` string, nullable: UN/LOCODE of the trip's destination. Null for a trip without a record of its own.
      - `first_event_at` string, date-time, nullable: The first move that happened on the trip.
      - `last_event_at` string, date-time, nullable: The last move that happened on the trip so far.
      - `events_count` integer, required: How many stored steps the trip holds, planned ones included for a trip with a record. The detail may present fewer where it folds steps together.
      - `added_at` string, date-time, nullable: When the record the trip is kept on was added.
    - `has_more` boolean, required: True only when the number was tracked on more records than one answer lists.

## Other responses

- `400`: The reference holds no letter or digit.
- `401`: Missing or invalid API key.
- `403`: The caller is not allowed to make this call.
- `429`: Too many requests.
- `500`: Unexpected error on our side.

## Changes

- **2026-11-23** `5b65bab3b8b4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trackingmcp/apis/trackingmcp-rest-api/changes/v1/containers/:reference/trips/get.md)

---

[API](https://skmtc.dev/trackingmcp/apis/trackingmcp-rest-api.md) - [All operations](https://skmtc.dev/trackingmcp/apis/trackingmcp-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trackingmcp/apis/trackingmcp-rest-api/revisions/63e1c6bec471?raw)
