EDIFACT UNH Segment: Message Header

Identifies the start of a message and specifies the message type, version, and other identification information.

Segment Code: UNH
Mandatory: Yes
Position: Start of message

UNH Syntax Example

UNH - Message Header
UNH+1+ORDERS:D:96A:UN'

Data Elements

PositionNameDescription
0062Message reference numberUnique reference assigned by the sender
S009Message identifierComposite identifying the message type (e.g., ORDERS:D:96A:UN)

Common Mistakes

  • Missing message reference number
  • Incorrect version/release format
  • Mismatch with UNT trailer reference

Other EDIFACT Segments

Related Resources

Format Your EDIFACT Messages

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

Open EDIFACT Formatter →