The UNT segment closes an individual message and carries two values: the total number of segments in the message (including UNH and UNT) and the message reference number matching the UNH. If the segment count does not match, the message is malformed.
UNTHover any part of the segment to see what it is. Open What your system receives to see the JSON or XML CleanEDI delivers.
UNT+36+1'End of message 1. Declares 36 segments.
| 1 | Segment count | 36 |
| 2 | Message reference | 1 |
Closes the message. CleanEDI checks the segment count and reference, then drops it.
Elements are separated by + and their parts by :. Positions match the explainer, so 2.3 is the third part of the second element.
| Position | Element | Parts |
|---|---|---|
| 1 | Segment count | Single value |
| 2 | Message reference | Single value |
Common EANCOM and UN/EDIFACT values. Your trading partner's implementation guide is the final word on which codes they send.
Have a real message with UNT in it? The explainer breaks down every segment and runs in your browser.
Explain my message