1. DCSA-aligned data elements
FreightLens.io Public API
  • FreightLens Track & Trace API
    • Authentication
      • Get an access token
    • Shipments
      • Look up a shipment by reference
    • Schemas
      • Transmission
      • TransmissionHeader
      • ShipmentTracking
      • Location
      • Vessel
      • TransportCall
      • DocumentReference
      • ShipmentEvent
      • TransportEvent
      • EquipmentEvent
      • Container
      • Exception
      • Impact
      • SubscriptionRequest
      • Subscription
      • TokenResponse
      • Error
  • Getting Started
    • Getting Started with the FreightLens.io Track & Trace API
  • Authentication
    • Authentication
  • DCSA-aligned data elements
    • Data Elements & Enumerations (DCSA-aligned)
  1. DCSA-aligned data elements

Data Elements & Enumerations (DCSA-aligned)

This page documents the coded values used throughout the FreightLens Track & Trace API.
FreightLens normalizes every carrier's data into these DCSA-aligned code lists, so the same
codes mean the same thing regardless of the underlying carrier. Codes marked with a DCSA
lineage follow the DCSA Track & Trace standard; a few (exceptions, trigger types) are
FreightLens extensions layered on top.

Event model overview#

Every shipment carries three categories of event. Each event has an eventClassifierCode
telling you how firm its timestamp is, and a type code specific to its category.
Event groupWhere it appearsType field
Shipment eventsshipmentTracking.shipmentEvents[]shipmentEventTypeCode
Transport eventsshipmentTracking.transportEvents[]transportEventTypeCode
Equipment eventseach container's latestEvent and eventHistory[]equipmentEventTypeCode

Event classifier — eventClassifierCode#

Tells you whether an event has happened, is estimated, or is planned. This is the single
most important field for interpreting a timeline: when a code moves from EST/PLN to
ACT, the milestone has actually occurred.
CodeMeaningNotes
ACTActualThe event has happened. The timestamp is confirmed.
ESTEstimatedA forward-looking prediction. The timestamp may still move.
PLNPlannedTaken from the carrier's schedule; not yet estimated or actualized.

Shipment event types — shipmentEventTypeCode#

Document and booking milestones.
CodeMeaning
RECEReceived — booking request received.
DRFTDrafted — document drafted.
PENAPending approval.
CONFConfirmed — booking confirmed by the carrier.
APPRApproved.
SUBMSubmitted.
ISSUIssued — e.g. Bill of Lading issued.
SURRSurrendered — B/L surrendered.
REJERejected.

Transport event types — transportEventTypeCode#

Vessel movements at a port call.
CodeMeaning
ARRIArrived — vessel arrived at the port call.
DEPADeparted — vessel departed the port call.

Equipment event types — equipmentEventTypeCode#

Container movements.
CodeMeaning
GTINGate in — container entered a facility.
GTOTGate out — container left a facility.
LOADLoaded — container loaded onto a vessel.
DISCDischarged — container discharged from a vessel.
STUFStuffed — cargo stuffed into the container.
STRPStripped — cargo stripped from the container.
PICKPicked up.
DROPDropped off.
INSPInspected.
RSEAResealed.
RMVDRemoved.

Empty indicator — emptyIndicatorCode#

CodeMeaning
LADENThe container holds cargo.
EMPTYThe container is empty.

Location & transport attributes#

Mode of transport — modeOfTransport#

CodeMeaning
VESSELOcean vessel.
BARGEBarge / feeder.
RAILRail.
TRUCKRoad / truck.

Facility type — facilityTypeCode#

CodeMeaning
POTEPort terminal.
DEPOContainer depot.
INTEInland terminal.
COFSContainer freight station.
OFFDOff-dock storage.

Facility code-list provider — facilityCodeListProvider#

Identifies which coding scheme a facilityCode belongs to.
CodeProvider
BICBureau International des Containers.
SMDGSMDG terminal code list.

Location codes#

Every location (portOfLoading, portOfDischarge, placeOfReceipt, placeOfDelivery,
and event locations) carries a unLocationCode — the five-character UN/LOCODE (e.g.
USNYC = New York, VNVUT = Vung Tau) — alongside a human-readable locationName.

Service type — serviceType#

The scope of carriage FreightLens is tracking.
CodeMeaning
PORT_TO_PORTOrigin port to destination port.
PORT_TO_DOOROrigin port to consignee door.
DOOR_TO_PORTShipper door to destination port.
DOOR_TO_DOORShipper door to consignee door.

Transmission attributes#

Trigger type — transmissionHeader.triggerType#

Why a transmission was generated. Read-only GET lookups always return
MANUAL_TRIGGER; the remaining values apply to roadmap webhook delivery.
CodeMeaning
MANUAL_TRIGGERA full current snapshot — what GET /v2/shipments returns.
SCHEDULED_TRIGGERA periodic refresh of the shipment state (webhook, roadmap).
EVENT_TRIGGERA new milestone arrived (webhook, roadmap).
EXCEPTION_DETECTEDA new exception was raised (webhook, roadmap).
EXCEPTION_RESOLVEDA previously raised exception cleared (webhook, roadmap).

Exceptions (FreightLens extension)#

Exceptions are a FreightLens layer on top of DCSA — DCSA does not define them. They appear
in shipmentTracking.exceptions[] when triggerType is EXCEPTION_DETECTED or
EXCEPTION_RESOLVED.

Exception category — exceptionCategory#

CodeMeaningIn the app
SCHEDULETiming problems — ETA/ETD slips, missed connections.Amber
OPERATIONALAction-required problems — rollovers, demurrage/detention risk, holds.Red

Exception type — exceptionType#

CodeCategoryMeaning
ETA_DELAYSCHEDULEEstimated arrival pushed later.
ETD_DELAYSCHEDULEEstimated departure pushed later.
MISSED_CONNECTIONSCHEDULEA transshipment connection was missed.
VESSEL_CHANGESCHEDULEThe assigned vessel changed.
ROUTE_CHANGESCHEDULEThe routing changed.
ROLLOVEROPERATIONALContainer rolled to a later sailing.
DEMURRAGE_RISKOPERATIONALContainer at risk of demurrage charges.
DETENTION_RISKOPERATIONALContainer at risk of detention charges.
HOLDOPERATIONALA hold (customs, carrier, or other) is in place.

Severity — severity#

CodeMeaning
WARNINGAttention advised; not yet critical.
CRITICALImmediate attention required.

Status — status#

CodeMeaning
DETECTEDThe exception is currently active.
RESOLVEDThe exception has cleared.

Resolution type — resolutionType (present when status is RESOLVED)#

CodeMeaning
SCHEDULE_RECOVEREDThe carrier recovered the schedule.
REBOOKEDThe shipment was rebooked onto another sailing.
EVENT_ACTUALIZEDThe awaited event actually occurred, clearing the risk.
MANUAL_CLEARCleared manually by an operator.

Schema version 1.2. New codes may be added over time; treat unknown codes defensively
rather than assuming the list is fixed.
Modified at 2026-09-03 21:18:22
Previous
Authentication
Built with