EDIFACT UNZ segment: interchange trailer.

The UNZ segment closes an interchange and carries the number of messages in the interchange and the control reference matching the UNB. UNZ+1+CTRL-001 means one message in the interchange with control reference CTRL-001.

Tag
UNZ
Full name
Interchange trailer
Part of the message
Summary and trailers
Data elements
2

A UNZ segment, explained

Hover any part of the segment to see what it is. Open What your system receives to see the JSON or XML CleanEDI delivers.

  1. UNZ+1+CTRL-001'
    UNZInterchange trailer

    End of interchange CTRL-001. Declares 1 message.

    UNZ
    Interchange trailer
    • Check: Declares 1 messages but the interchange has 0.

UNZ structure

Elements are separated by + and their parts by :. Positions match the explainer, so 2.3 is the third part of the second element.

PositionElementParts
1Message countSingle value
2Interchange control referenceSingle value

Common EANCOM and UN/EDIFACT values. Your trading partner's implementation guide is the final word on which codes they send.

UNZ segment FAQ

Have a real message with UNZ in it? The explainer breaks down every segment and runs in your browser.

Explain my message

What is the UNZ segment in EDIFACT?

UNZ is the Interchange Trailer segment. The UNZ segment closes an interchange and carries the number of messages in the interchange and the control reference matching the UNB. UNZ+1+CTRL-001 means one message in the interchange with control reference CTRL-001.

Where does UNZ appear in an EDIFACT message?

UNZ belongs to the summary and trailers part of a message, alongside UNS, CNT, UNT.

How do I read a UNZ segment in my own message?

Paste the message into the free CleanEDI explainer. It breaks every UNZ segment into its elements, translates the codes and shows the JSON and XML your system would receive. Nothing you paste leaves your browser.

Related segments in summary and trailers