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}
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
number | path | string | Yes | 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. |
sealine | query | string | No | 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 |
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
}
}| Status | Meaning |
|---|---|
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 |
400 | Bad request — check required parameters. |
401 | Invalid or missing API key. |
402 | Payment required — shipment limit reached or payment overdue. Branch on |
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: When we answer from our last check rather than by calling the carrier again, the body also carries
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 |
429 | Two different limits produce a 429 here and |
502 | We could not reach the carrier AND hold nothing for this reference — the last resort, not the usual answer. |
Error bodies and retry advice: Errors.