GET /bl/{number}

Track a bill of lading

Full tracking for a bill of lading. Saves the shipment (uses a slot if new).

Full tracking data for a Bill of Lading number. sealine is optional but recommended: a BL carries no embedded carrier code, so omitting it costs up to three upstream attempts and can still resolve the wrong line. A live carrier lookup may wait up to 60 seconds per attempt, so client timeouts must allow for a slow carrier response. With more shipments still tracking than your limit (after a downgrade), the newest up to it refresh; an older one you own answers 200 with its last stored tracking, stale: true and stale_reason: "PLAN_LIMIT", and no carrier is asked.

Request

GET https://traqocontainer.com/api/v1/bl/{number}

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
numberpathstringYes

Bill of Lading number, exactly as the carrier printed it. No format is imposed — digits-only BLs and BLs containing hyphens, slashes or dots are all accepted (URL-encode a / as %2F). Surrounding whitespace is trimmed.

sealinequerystringNo

RECOMMENDED, though no longer required. 4-character SCAC of the carrier. Naming it is the fastest and most certain route — a carrier you supply is tried ONCE, while one we resolve may cost up to three upstream attempts and can still be wrong. When OMITTED, the carrier is resolved from this reference’s own tracking history, the container operator in the lessor’s records, the issuing line of the bill, or prefix ownership — the same sources /carriers/lookup exposes. The carrier actually used is reported in carrier.sealine on the response. A code we do not list is IGNORED rather than refused — we detect the carrier ourselves and tell you which one answered — so a carrier missing from our directory never costs you a request.

Example request

curl "https://traqocontainer.com/api/v1/bl/SHZ8037930?sealine=CMDU" \
  -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/bl/{number} with a schema-identical reply.

Responses

Example 200 body:

{
  "success": true,
  "cached": false,
  "carrier": {
    "sealine": "MSCU",
    "provided": false
  },
  "data": {
    "reference_number": "MEDUFR123456",
    "shipment_type": "Bill of Lading",
    "sealine": "MSCU",
    "sealine_name": "MSC",
    "status": "DELIVERED",
    "origin": "Los Angeles, United States",
    "destination": "Rotterdam, Netherlands",
    "number_of_containers": 4,
    "eta": "2026-11-01 13:04:06",
    "ata": "2026-11-01 13:04:06",
    "total_days": 52,
    "remaining_days": 0,
    "is_active": false,
    "is_delayed": false,
    "closed_at": null,
    "last_updated_at": "2026-11-01 00:04:06",
    "latitude": "51.92",
    "longitude": "4.48",
    "containers_table": [
      {
        "idx": 1,
        "container_number": "MSCU2897331",
        "iso_code": "45G1",
        "size_type": "40HC",
        "container_description": "40ft High Cube General Purpose",
        "status": "DELIVERED",
        "equipment_source": "carrier",
        "name": 1,
        "parent": null,
        "doctype": "Shipment Containers Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "containers_table",
        "container": "MSCU2897331"
      },
      {
        "idx": 2,
        "container_number": "MSCU8242141",
        "iso_code": "45R1",
        "size_type": "40HC-RF",
        "container_description": "40ft High Cube Refrigerated",
        "status": "DELIVERED",
        "equipment_source": "carrier",
        "name": 2,
        "parent": null,
        "doctype": "Shipment Containers Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "containers_table",
        "container": "MSCU8242141"
      }
    ],
    "container_summary": "1×40GP, 1×40HC, 1×40HC-RF",
    "locations_table": [
      {
        "id": 1,
        "name": 1,
        "state": null,
        "country": "United States",
        "country_code": "US",
        "locode": "USLAX",
        "lat": 33.73,
        "lng": -118.26,
        "timezone": "America/Los_Angeles",
        "location_id": 1,
        "location": "Los Angeles",
        "latitude": "33.73",
        "longitude": "-118.26",
        "idx": 1,
        "parent": null,
        "doctype": "Shipment Locations Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "locations_table"
      },
      {
        "id": 2,
        "name": 2,
        "state": null,
        "country": "India",
        "country_code": "IN",
        "locode": "INMUN",
        "lat": 22.839,
        "lng": 69.727,
        "timezone": "Asia/Kolkata",
        "location_id": 2,
        "location": "Mundra",
        "latitude": "22.839",
        "longitude": "69.727",
        "idx": 2,
        "parent": null,
        "doctype": "Shipment Locations Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "locations_table"
      }
    ],
    "voyage_plan_table": [
      {
        "port": "Los Angeles",
        "locode": "USLAX",
        "country": "United States",
        "vessel": "AL ZUBARA",
        "voyage": null,
        "atd": "2026-09-10 05:04:06",
        "leg": "prepol",
        "phase": "prepol",
        "location_id": 1,
        "date": "2026-09-10 05:04:06",
        "is_actual": 1,
        "idx": 1,
        "name": 1,
        "parent": null,
        "doctype": "Shipment Voyage Plan Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "voyage_plan_table",
        "predictive_eta": null
      },
      {
        "port": "Los Angeles",
        "locode": "USLAX",
        "country": "United States",
        "vessel": "AL ZUBARA",
        "voyage": null,
        "atd": "2026-09-16 10:49:42",
        "leg": "pol",
        "phase": "pol",
        "location_id": 1,
        "date": "2026-09-16 10:49:42",
        "is_actual": 1,
        "idx": 2,
        "name": 2,
        "parent": null,
        "doctype": "Shipment Voyage Plan Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "voyage_plan_table",
        "predictive_eta": null
      }
    ],
    "route_json": "[[33.73,-118.26],[22.839,69.727],[51.92,4.48]]",
    "events_table": [
      {
        "idx": 1,
        "location": "Los Angeles",
        "country": "United States",
        "locode": "USLAX",
        "description": "Gate in full",
        "date": "2026-09-10 05:04:06",
        "timestamp": "2026-09-10 05:04:06",
        "type": "land",
        "event_type": "EQUIPMENT",
        "event_code": "GTIN",
        "transport_type": "TRUCK",
        "is_actual": 1,
        "status": "CGI",
        "status_description": "Container arrival at first POL (Gate in)",
        "vessel": null,
        "voyage": null,
        "container_number": "MSCU2897331",
        "event_id": 1,
        "name": 1,
        "doctype": "Container Events Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "events_table",
        "location_id": 1,
        "facility_id": 0,
        "vessel_id": 0,
        "shipment_id": null,
        "parent": null,
        "mode_type": "sea",
        "state": null,
        "latitude": "33.73",
        "longitude": "-118.26",
        "event_uid": "388f91c0fd4740ff",
        "timestamp_utc": "2026-09-10T12:04:06Z",
        "timezone": "America/Los_Angeles"
      },
      {
        "idx": 1,
        "location": "Los Angeles",
        "country": "United States",
        "locode": "USLAX",
        "description": "Gate in full",
        "date": "2026-09-10 05:04:06",
        "timestamp": "2026-09-10 05:04:06",
        "type": "land",
        "event_type": "EQUIPMENT",
        "event_code": "GTIN",
        "transport_type": "TRUCK",
        "is_actual": 1,
        "status": "CGI",
        "status_description": "Container arrival at first POL (Gate in)",
        "vessel": null,
        "voyage": null,
        "container_number": "MSCU8242141",
        "event_id": 2,
        "name": 2,
        "doctype": "Container Events Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "events_table",
        "location_id": 1,
        "facility_id": 0,
        "vessel_id": 0,
        "shipment_id": null,
        "parent": null,
        "mode_type": "sea",
        "state": null,
        "latitude": "33.73",
        "longitude": "-118.26",
        "event_uid": "7f0ceffe81744569",
        "timestamp_utc": "2026-09-10T12:04:06Z",
        "timezone": "America/Los_Angeles"
      }
    ],
    "vessels_table": [
      {
        "idx": 1,
        "vessel_id": 1,
        "vessel": "AL ZUBARA",
        "imo": "9113553",
        "mmsi": "676378063",
        "is_current": 1,
        "name": 1,
        "parent": null,
        "doctype": "Shipment Vessels Table",
        "owner": null,
        "creation": null,
        "modified": null,
        "modified_by": null,
        "docstatus": 0,
        "parenttype": "Shipments",
        "parentfield": "vessels_table"
      }
    ],
    "failure_code": 0,
    "eta_utc": "2026-11-01T12:04:06Z",
    "eta_timezone": "Europe/Amsterdam",
    "ata_utc": "2026-11-01T12:04:06Z",
    "ata_timezone": "Europe/Amsterdam",
    "pod_timezone": "Europe/Amsterdam",
    "journey_stale": false,
    "journey_ended_at": null
  }
}
StatusMeaning
200

Tracking data

202

Accepted. The carrier is not answering and we hold nothing for this reference yet, so it has been recorded and we are retrying on our own schedule. No slot is consumed — the slot is charged when the document arrives. Poll GET /shipments/{id} with the shipment_id in the body, or subscribe to a webhook.

400

Bad request — check required parameters.

401

Invalid or missing API key.

402

Payment required — shipment limit reached or payment overdue. Branch on data.error.

403

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

404

No carrier we asked has a record of this reference. The body says what was actually asked and whether we are still working on it: tried lists the carriers walked in order — (auto) is the attempt made with no carrier hint, letting the provider identify the reference itself — and discovery is queued when a carrier-discovery job is now running for it (we are still looking; the answer will appear on GET /shipments/{id}, not by re-calling this endpoint), exhausted when the walk has finished without finding it, or not_eligible when no job was created. Do NOT read this status as "the shipment does not exist" while discovery is queued.

When we answer from our last check rather than by calling the carrier again, the body also carries last_checked_at and next_attempt_at (ISO 8601), and Retry-After holds the seconds until that next attempt. Two identical not_found answers are otherwise indistinguishable, and the difference between "we asked a second ago" and "we asked yesterday" is the whole of whether polling again now is worth anything.

discovery_reason says WHY there is no job, which not_eligible alone cannot: plan (carrier auto-discovery is not on your plan), disabled (switched off for the whole deployment), invalid_reference (no carrier could resolve it, on any plan) or no_candidates (nothing worth an upstream attempt). Only plan carries an upgrade object — feature, min_plan, a message naming the carriers we tried, and a url — plus a hint: naming the carrier yourself with ?sealine= works today, on every plan, for nothing. A paid or beta account never receives upgrade.

You will NOT see this for a reference you already track. When a carrier has no record of a reference we hold a live document for, you get 200 with stale: true and stale_reason: "NOT_FOUND_UPSTREAM" instead — the carrier failing to find it today does not unmake the tracking it gave us before, and nothing about the shipment in your account changes. That holds even when the document itself carries is_failed_shipment: that flag records that the provider’s most recent re-sync failed, never that the reference does not exist, and the fields beside it are the last ones that did land. You only get the 404 when we hold no tracking for it at all.

429

Two different limits produce a 429 here and data.code says which. rate_limit_exceeded is the shared per-minute API limit (X-RateLimit-*). READD_RATE_LIMITED is the per-day cap on LIVE re-fetches of the SAME reference — this endpoint re-fetches from the carrier on every call, so polling it for status trips that cap. It is NOT a billing or quota problem: the body carries billing_impact: "none", your slot usage is unaffected, and no slot is consumed. Use GET /shipments/{id} for repeat status checks (stored data, no re-fetch, no slot), GET /shipments?updated_since=<ISO8601> for changes, or subscribe to webhooks. The body also carries retry_after_hours (when live re-fetches resume) and live_refresh_in_hours.

502

We could not reach the carrier AND hold nothing for this reference — the last resort, not the usual answer. data.error is carrier_unavailable (that SCAC is failing; data.carrier names it) or upstream_unavailable (live tracking as a whole, not one carrier). Retry-After gives the delay in seconds, derived from how many times that carrier has failed in a row: 30, then 120, then 300, capped at 600. When we DO hold a document you get 200 with stale: true instead, and a first lookup during an outage gets 202. A request never hangs waiting for this: we spend at most 8 seconds starting carrier attempts and then answer with what we have.

Error bodies and retry advice: Errors.