EDIFACT UNB Segment: Interchange Header

Marks the start of an interchange and contains sender/receiver identification, date/time, and interchange reference.

Segment Code: UNB
Mandatory: Yes
Position: Start of interchange

UNB Syntax Example

UNB - Interchange Header
UNB+UNOA:2+SENDER001+RECEIVER001+240101:1200+1'

Data Elements

PositionNameDescription
S001Syntax identifierSyntax version (e.g., UNOA:2)
S002Interchange senderSender identification
S003Interchange recipientRecipient identification
S004Date and timePreparation date and time (YYMMDD:HHMM)
0020Interchange control referenceUnique interchange identifier

Common Mistakes

  • Wrong syntax version
  • Date/time format errors
  • Non-unique interchange reference

Other EDIFACT Segments

Related Resources

Format Your EDIFACT Messages

See the UNB segment in context. Paste any EDIFACT message to format and analyze instantly.

Open EDIFACT Formatter →