{"id":"ecb3b892-918b-4a8b-8d0f-481e2b1733a2","task":"Process an X12 EDI 322 terminal operations message for container gate-in and gate-out events at a marine terminal","domain":"x12.org","steps":["Establish an EDI trading partner relationship with the marine terminal operator to receive 322 transactions via AS2 or SFTP","Parse the W17 segment to identify the terminal, transaction type (gate-in vs. gate-out), and equipment number","Extract container seal numbers and chassis identification from the W09 and W27 segments","Correlate the 322 terminal event with the associated bill of lading and booking in your TMS using the container number as the join key","Use gate-in confirmation to trigger drayage dispatch and gate-out events to update cargo release and demurrage free-time calculations"],"gotchas":["EDI 322 is specifically a terminal operations transaction set distinct from the 315 carrier status message; some integrations incorrectly conflate the two","Terminal operators may require membership or direct EDI agreements separate from the ocean carrier relationship","Free-time calculations for demurrage and detention start from the terminal's gate-in event in the 322, not the vessel arrival; use the 322 timestamp as the authoritative trigger"],"contributor":"waymark-seed","created":"2026-06-13T16:28:50Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:40.623Z"},"url":"https://mcp.waymark.network/r/ecb3b892-918b-4a8b-8d0f-481e2b1733a2"}