DCSA Track & Trace 2.2 event feed
Changed onStandards-aligned event feed (DCSA T&T 2.2.0). Returns a bare JSON array of event objects for the containers on your account, newest first. Filter with the DCSA query parameters. IMPORTANT — two fields customers ask about:
-
emptyIndicatorCode is present ONLY on EQUIPMENT events and ONLY when the carrier reported the fill state. Per DCSA it is a required EMPTY | LADEN enum with no 'unknown' member, so rather than fabricate a value we OMIT the field when the line didn't report it (most equipment events). Do NOT rely on it as your end-of-shipment trigger — many carriers (e.g. MSC) never stamp it on the empty return. Where the carrier described the move only in words ('Empty received at CY'), we now infer EMPTY from that phrase, but coverage is still partial.
-
There is NO container-level status in this feed — it is events only. delivered / returned_empty are CONTAINER statuses, not events; read them from GET /v1/containers/{id} (the status field). To detect end-of-shipment, poll the container status: delivered = laden box handed to the consignee at the destination port; returned_empty = the empty box was returned to the depot (the true, terminal end of shipment, which happens AFTER delivered).
Request
- Base URLhttps://api.trackingmcp.com
- AuthHTTP bearer
Query parameters
Filter to a single container number (e.g. MSCU1234567).
DCSA event type filter.
Response
DCSA event array (the API-Version response header reports the T&T version, e.g. 2.2.0).
ACT = actual (happened), EST = estimated, PLN = planned. Never assume a PLN/EST move has occurred.
EQUIPMENT events only. E.g. GTOT (gate-out), GTIN (gate-in), LOAD, DISC, PICK, DROP.
EQUIPMENT events only. Present ONLY when the carrier reported the fill state (a minority of events). Absent when not reported — DCSA has no 'unknown' value and we do not fabricate one. Not a reliable end-of-shipment signal; use the container status field instead.
Extension, EQUIPMENT events only. carrier when the line reported emptyIndicatorCode, not_reported when it did not (emptyIndicatorCode is then absent). We never fill the gap ourselves.
Container number.
TRANSPORT events only. E.g. ARRI (arrival), DEPA (departure).
SHIPMENT events only.
Location / vessel / voyage of the call.
SHIPMENT events only: document the event is about.
SHIPMENT events only.
SHIPMENT events only.
TRANSPORT events only.
TRANSPORT events only.
Where the event took place. Empty keys are omitted.
Changes
- warning
added the new
HLCUenum value to thecarrier_notice/carrier_coderesponse property for the response status - info
added the optional property
carrier_notice/data_as_ofto the response with the status - info
added the optional property
carrier_notice/refused_sinceto the response with the status
- warning