GET /shipments

List tracked shipments

Page through everything you track, filter by load or discharge port, or poll deltas with updated_since.

Paginated list of the shipments saved to your account, optionally only those loading at pol and/or discharging at pod. Local read — never consumes a slot.

Request

GET https://traqocontainer.com/api/v1/shipments

Authentication.

Your API key as a Bearer token: Authorization: Bearer YOUR_API_KEY.

Rate limit.Each API key gets 120 requests per minute by default; your key's own budget comes back in the X-RateLimit-* headers.Limits by plan.

Parameters

NameInTypeRequiredDescription
pagequeryintegerNo

1-based page number. Use with total to know when to stop: the last page is ceil(total / pageSize). A page beyond the last is NOT an error — it returns 200 with an empty data array and echoes the page you asked for, so check total rather than waiting for a failure. A value that is not a whole number from 1 (0, -1, 1.5, abc) is rejected with 400 rather than silently corrected to page 1. Default 1.

pageSizequeryintegerNo

Shipments per page, 1-100. Values above 100 are clamped to 100; a non-numeric value falls back to the default rather than removing the limit. Default 20.

updated_sincequerystringNo

DELTA MODE. Returns only the shipments whose tracking data changed at or after this time (by last_synced_at), so a sync job stops re-reading its whole book every run. When present it SUPERSEDES pagination — page and pageSize are ignored, at most 200 shipments come back, and the response is shaped { success, updated_since, count, data } instead of { success, total, page, pageSize, data }. Poll it with the timestamp of your last successful sync. If the value cannot be parsed as a timestamp the request is rejected with 400 — it does NOT fall back to the paged list, which would answer 'everything changed' to a client with a broken clock. A bare epoch number is refused for the same reason: seconds and milliseconds are indistinguishable.

polquerystringNo

Only shipments that LOAD at this port: one UN/LOCODE, any case. The load port is the first sea leg's origin, so a transshipment port never matches. Applied before paging, so total counts the matches. Combine with pod for one lane. A malformed code (not 5 characters, or no real country in its first two letters) is rejected with 400 rather than ignored — an ignored filter would answer with every shipment in the account. A well-formed code none of your shipments use returns total: 0.

podquerystringNo

Only shipments that DISCHARGE at this port: one UN/LOCODE, any case. The discharge port is the last sea leg's destination, so a transshipment port never matches. Applied before paging (and in delta mode too). A shipment still being searched for has no route yet and matches no port. If the stored routes cannot be read the answer is 503 — retry — never an empty list.

Example request

curl "https://traqocontainer.com/api/v1/shipments?page=1&pageSize=20" \
  -H "Authorization: Bearer YOUR_API_KEY"

Run it in the sandbox — no key, no account: the same request answers at https://traqocontainer.com/api/v1/sandbox/shipments with a schema-identical reply.

Responses

Example 200 body:

{
  "success": true,
  "total": 2,
  "page": 1,
  "pageSize": 20,
  "data": [
    {
      "name": "SHP-1000",
      "reference_number": "SBXU1184991",
      "shipment_type": "Container",
      "sealine": "ONEY",
      "sealine_name": "Ocean Network Express",
      "status": "IN_TRANSIT",
      "origin": "Singapore, Singapore",
      "destination": "Rotterdam, Netherlands",
      "eta": "2026-11-21 12:04:06",
      "ata": null,
      "eta_utc": "2026-11-21T12:04:06Z",
      "eta_timezone": "UTC",
      "ata_utc": null,
      "ata_timezone": null,
      "pod_timezone": "Europe/Amsterdam",
      "total_days": 44,
      "remaining_days": 20,
      "number_of_containers": 1,
      "is_active": true,
      "is_delayed": false,
      "created_at": null,
      "last_synced_at": "2026-11-01T11:00:00.000Z",
      "customers": [
        "Acme GmbH"
      ]
    },
    {
      "name": "SHP-1001",
      "reference_number": "SBXU7888149",
      "shipment_type": "Container",
      "sealine": "MSCU",
      "sealine_name": "MSC",
      "status": "IN_TRANSIT",
      "origin": "Rotterdam, Netherlands",
      "destination": "Hamburg, Germany",
      "eta": "2026-11-16 13:04:06",
      "ata": null,
      "eta_utc": "2026-11-16T12:04:06Z",
      "eta_timezone": "Europe/Berlin",
      "ata_utc": null,
      "ata_timezone": null,
      "pod_timezone": "Europe/Berlin",
      "total_days": 34,
      "remaining_days": 15,
      "number_of_containers": 1,
      "is_active": true,
      "is_delayed": false,
      "created_at": null,
      "last_synced_at": "2026-11-01T08:00:00.000Z",
      "customers": [
        "Acme GmbH",
        "Northwind Trading"
      ]
    }
  ]
}
StatusMeaning
200

A page of shipments — or, with updated_since, the shipments that changed since then.

401

Invalid or missing API key.

403

Developer mode not enabled, or the feature is not on your plan.

429

Rate limit exceeded — see the Retry-After header. The body names the plan the limit was computed from (plan, always the ORGANISATION’s plan, not the row your key hangs off) and what would raise it: upgrade with next_plan and next_limit_per_min, or contactUrl when there is no plan above yours. Exactly one of the two is present.

Error bodies and retry advice: Errors.