Practical guide

How to validate ISO 6346 container numbers in a TMS

Validate the structure and check digit first, then match the container to its booking, leg and latest observation. A valid number does not prove which container was loaded or who is carrying it now.

Validate the identifier

Separate equipment identity from shipment and seal references.

An ISO 6346 container number combines a three-letter owner code, an equipment category letter, a six-digit serial and a final check digit. The BIC check-digit calculator can help check transcription. Preserve leading zeroes and store the raw source value alongside a consistent comparison value.

Do not use the owner code as the operating carrier, or treat a container as a shipment identifier. A container may move on several legs and carry multiple consignments. The seal number should have its own field and observation history.

Worked example

The booking and gate scan refer to different valid containers.

A synthetic booking lists one container, but the terminal records a replacement at the gate. If both numbers pass the checksum, the issue is assignment, not formatting. Retain the booked reference, capture the observed equipment and record when the replacement took effect. Send the mismatch to the booking owner before updating downstream documents.

Acceptance checks

Test format and equipment assignment independently.

Related resources

Continue with a scoped check.

Keep equipment references consistent across eCMR systems

Bind documents to the correct movement

Software direction

Make transport data issues visible before the handoff.

Explore the public demo and compare proposed software plans. Paid access is not open yet.

Compare plans