UNB Interchange header

To start, identify and specify an interchange.

Position
Element
Name
Type
Requirement
Min
Max
Repeat
010
Syntax identifier
Composite (composite)
Mandatory
1
010
Syntax identifier
A
Mandatory
4
4
-
Coded identification of the agency controlling a syntax and syntax level used in an interchange.
a3, upper case, Controlling Agency (e.g. UNO=UN/ECE) and a1 stating level (e.g. A) (which together give UNOA).
020
Syntax version number
Numeric (N)
Mandatory
1
1
-
Version number of the syntax identified in the syntax identifier (0001)
Increments 1 for each version.
020
Interchange sender
Composite (composite)
Mandatory
1
010
Sender identification
String (AN)
Mandatory
1
35
-
Name or coded representation of the sender of a data interchange.
Code or name as specified in IA.
020
Partner identification code qualifier
String (AN)
Conditional
1
4
-
Qualifier referring to the source of codes for the identifiers of interchanging partners.
Used with sender/recipient identification code.
030
Address for reverse routing
String (AN)
Conditional
1
14
-
Address specified by the sender of an interchange to be included by the recipient in the response interchanges to facilitate internal routing.
030
Interchange recipient
Composite (composite)
Mandatory
1
010
Recipient identification
String (AN)
Mandatory
1
35
-
Name or coded representation of the recipient of a data interchange.
Code or name as specified in IA.
020
Partner identification code qualifier
String (AN)
Conditional
1
4
-
Qualifier referring to the source of codes for the identifiers of interchanging partners.
Used with sender/recipient identification code.
030
Routing address
String (AN)
Conditional
1
14
-
Address specified by the recipient of an interchange to be included by the sender and used by the recipient for routing of received interchanges inside his organization.
If used, normally coded sub-address for onward routing.
040
Date/time of preparation
Composite (composite)
Mandatory
1
010
Date of preparation
Numeric (N)
Mandatory
6
6
-
Local date when an interchange or a functional group was prepared.
YYMMDD
020
Time of preparation
Numeric (N)
Mandatory
4
4
-
Local time of day when an interchange or a functional group was prepared.
HHMM
050
Interchange control reference
String (AN)
Mandatory
1
14
1
Unique reference assigned by the sender to an interchange.
Shall be identical in UNB and UNZ.
060
Recipient's reference, password
Composite (composite)
Conditional
1
010
Recipient's reference/password
String (AN)
Mandatory
1
14
-
Unique reference assigned by the recipient to the data interchange or a password to the recipient's system or to a third party network as specified in the partners interchange agreement.
As specified in IA. May be password to recipient's system or to third party network.
020
Recipient's reference/password qualifier
String (AN)
Conditional
2
2
-
Qualifier for the recipient's reference or password.
Used if specified in IA.
070
Application reference
String (AN)
Conditional
1
14
1
Identification of the application area assigned by the sender, to which the messages in the interchange relate e.g. the message identifier if all the messages in the interchange are of the same type.
Optionally message identification if the message interchange contains only one type of message.
080
Processing priority code
A
Conditional
1
1
1
Code determined by the sender requesting processing priority for the interchange.
Used if specified in IA.
090
Acknowledgement request
Numeric (N)
Conditional
1
1
1
Code determined by the sender for acknowledgement of the interchange.
Set = 1 if sender requests acknowledgement, i.e. UNB and UNZ segments received and identified.
100
Communications agreement ID
String (AN)
Conditional
1
35
1
Identification by name or code of the type of agreement under which the interchange takes place.
If used, to identify type of communication agreement controlling the interchange, e.g. Customs or ECE agreement. Code or name as specified in IA.
110
Test indicator
Numeric (N)
Conditional
1
1
1
Indication that the interchange is a test.
Set = 1 if the interchange is a test. Otherwise not used.

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference is provided for marketing purposes and is free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.