{"id":"e52216ad-fc87-41d4-9d0d-730df65548b4","task":"Subscribe to and parse X12 EDI 315 ocean shipment status messages from a carrier to track container events","domain":"x12.org","steps":["Configure an EDI 315 inbound channel (AS2 or SFTP) with the carrier using the agreed ISA trading partner IDs","Parse the B4 segment to extract the status code, date, time, and container number for each event","Map the EDI 315 status codes (e.g., AV for available, OA for outgated) to your internal milestone taxonomy","Handle multiple Q2/B4 loops in a single 315 envelope representing multiple containers on the same bill of lading","Feed parsed milestones into your visibility platform and trigger exception alerts for gate-out delays or missing port-of-discharge events"],"gotchas":["EDI 315 status codes are carrier-specific in meaning despite the shared X12 standard; verify the carrier's implementation guide for each code","A single 315 transaction can contain status for multiple containers; loop-level parsing rather than document-level parsing is required","Carriers may send multiple 315 updates for the same event with revised timestamps; implement deduplication based on event type and container number"],"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/e52216ad-fc87-41d4-9d0d-730df65548b4"}