How to map CODECO container gate reports into a TMS
Use CODECO to capture what the reporting terminal or depot says about the container movement. Keep the report separate from the planned appointment, vessel loading and delivery to the consignee.
Pin the partner profile before interpreting the message.
The UNECE CODECO directory describes the container gate-in/gate-out report. Agree with each partner which report functions and movement codes they use. Map container reference, reporting facility, applicable event time, message identity and booking reference if present. Store the time the report arrived separately from the reported event time.
A gate-in is not evidence that the container is on board.
A synthetic container gates in at Terminal A at 09:12. The booking lists a vessel departure at 17:00. Mark arrival at the terminal as reported; leave vessel loading unconfirmed until the relevant event arrives. If the identical report is redelivered, keep one operational event without losing the audit record of the replay.
Test ambiguity without inventing a shipment match.
- Test the same container at two facilities and keep both facility observations distinct.
- Hold an event with an ambiguous booking association for reconciliation instead of attaching it to the most recent shipment.
- Replay an older gate event after a newer one. Keep the history without moving the latest projection backwards.