SAP Business Network
/
Ship Notice/Manifest
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from SAP Business Network. Contact SAP Business Network for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
SAP Business Network logo

X12 856 Ship Notice/Manifest

X12 Release 4010Revised
May 10, 3:39 AM
Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI sample
  • Sample Based on Segment Samples
View the latest version of this implementation guide as an interactive webpage
https://portal.stedi.com/app/guides/view/sap-business-network/ship-noticemanifest/01JTKK60K6AH1BDXFR80SVGE97
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
detail
HL Loop Shipment
HL
010
Hierarchical Level
Max use 1
Required
TD5
120
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Optional
TD5
120
Carrier Details (Routing Sequence/Transit Time) Mutually Defined
Max use 1
Optional
TD4
140
Carrier Details (Special Handling, or Hazardous Materials, or Both)
Max use 5
Optional
REF
150
Reference Identification
Max use 1
Optional
FOB
210
F.O.B. Related Instructions
Max use 1
Optional
N1 Loop
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
ISA

Interchange Control Header

RequiredMax use 1
Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)
00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10
ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)
00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10
ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15
ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15
ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format
ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format
ISA-11
I10
Interchange Control Standards Identifier
Required
Identifier (ID)
U
U.S. EDI Community of ASC X12, TDCC, and UCS
ISA-12
I11
Interchange Control Version Number
Required
Identifier (ID)
00401
Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
ISA-14
I13
Acknowledgment Requested
Required
Identifier (ID)
Min 1Max 1
0
No Acknowledgment Requested
1
Interchange Acknowledgment Requested
ISA-15
I14
Usage Indicator
Required
Identifier (ID)
Min 1Max 1
I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Element Separator
Required
String (AN)
Min 1Max 1
>
Component Element Separator

Functional Group Header

RequiredMax use 1
Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)
SH
Ship Notice/Manifest (856)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15
GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15
Required
Date (DT)
CCYYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9
GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2
T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)
004010
Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1997

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
856
Ship Notice/Manifest
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
BSN
020
Heading > BSN

Beginning Segment for Ship Notice

RequiredMax use 1
Usage notes
Example
If Status Reason Code (BSN-07) is present, then Transaction Type Code (BSN-06) is required
BSN-01
353
Transaction Set Purpose Code
Required
Identifier (ID)
Usage notes
00
Original
03
Delete
05
Replace
BSN-02
396
Shipment Identification
Required
String (AN)
Min 2Max 30
Usage notes
Required
Date (DT)
CCYYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
BSN-05
1005
Hierarchical Structure Code
Optional
Identifier (ID)
0004
Shipment, Order, Item
BSN-06
640
Transaction Type Code
Optional
Identifier (ID)
09
Actual
PL
Planned
BSN-07
641
Status Reason Code
Optional
Identifier (ID)
B44
Partial
C20
Complete
DTM
040
Heading > DTM

Date/Time Reference Estimated Delivery

OptionalMax use 1
Usage notes
Example
Variants (all may be used)
DTMDate/Time Reference Shipped
If Time Code (DTM-04) is present, then Time (DTM-03) is required
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
017
Estimated Delivery
Required
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Optional
Identifier (ID)
Usage notes
1
Equivalent to ISO P01
02
Equivalent to ISO P02
03
Equivalent to ISO P03
04
Equivalent to ISO P04
05
Equivalent to ISO P05
06
Equivalent to ISO P06
07
Equivalent to ISO P07
08
Equivalent to ISO P08
09
Equivalent to ISO P09
10
Equivalent to ISO P10
11
Equivalent to ISO P11
12
Equivalent to ISO P12
13
Equivalent to ISO M12
14
Equivalent to ISO M11
15
Equivalent to ISO M10
16
Equivalent to ISO M09
17
Equivalent to ISO M08
18
Equivalent to ISO M07
19
Equivalent to ISO M06
20
Equivalent to ISO M05
21
Equivalent to ISO M04
22
Equivalent to ISO M03
23
Equivalent to ISO M02
24
Equivalent to ISO M01
AD
Alaska Daylight Time
AS
Alaska Standard Time
AT
Alaska Time
CD
Central Daylight Time
CS
Central Standard Time
CT
Central Time
ED
Eastern Daylight Time
ES
Eastern Standard Time
ET
Eastern Time
GM
Greenwich Mean Time
HD
Hawaii-Aleutian Daylight Time
HS
Hawaii-Aleutian Standard Time
HT
Hawaii-Aleutian Time
MD
Mountain Daylight Time
MS
Mountain Standard Time
MT
Mountain Time
ND
Newfoundland Daylight Time
NS
Newfoundland Standard Time
NT
Newfoundland Time
PD
Pacific Daylight Time
PS
Pacific Standard Time
PT
Pacific Time
TD
Atlantic Daylight Time
TS
Atlantic Standard Time
TT
Atlantic Time
UT
Universal Time Coordinate
DTM
040
Heading > DTM

Date/Time Reference Shipped

OptionalMax use 10
Usage notes
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
011
Shipped
Required
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Optional
Identifier (ID)
Usage notes
1
Equivalent to ISO P01
02
Equivalent to ISO P02
03
Equivalent to ISO P03
04
Equivalent to ISO P04
05
Equivalent to ISO P05
06
Equivalent to ISO P06
07
Equivalent to ISO P07
08
Equivalent to ISO P08
09
Equivalent to ISO P09
10
Equivalent to ISO P10
11
Equivalent to ISO P11
12
Equivalent to ISO P12
13
Equivalent to ISO M12
14
Equivalent to ISO M11
15
Equivalent to ISO M10
16
Equivalent to ISO M09
17
Equivalent to ISO M08
18
Equivalent to ISO M07
19
Equivalent to ISO M06
20
Equivalent to ISO M05
21
Equivalent to ISO M04
22
Equivalent to ISO M03
23
Equivalent to ISO M02
24
Equivalent to ISO M01
AD
Alaska Daylight Time
AS
Alaska Standard Time
AT
Alaska Time
CD
Central Daylight Time
CS
Central Standard Time
CT
Central Time
ED
Eastern Daylight Time
ES
Eastern Standard Time
ET
Eastern Time
GM
Greenwich Mean Time
HD
Hawaii-Aleutian Daylight Time
HS
Hawaii-Aleutian Standard Time
HT
Hawaii-Aleutian Time
MD
Mountain Daylight Time
MS
Mountain Standard Time
MT
Mountain Time
ND
Newfoundland Daylight Time
NS
Newfoundland Standard Time
NT
Newfoundland Time
PD
Pacific Daylight Time
PS
Pacific Standard Time
PT
Pacific Time
TD
Atlantic Daylight Time
TS
Atlantic Standard Time
TT
Atlantic Time
UT
Universal Time Coordinate
Heading end

Detail

HL Loop Shipment
RequiredMax >1
Usage notes
HL
010
Detail > HL Loop Shipment > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
S
Shipment
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
1
Additional Subordinate HL Data Segment in This Hierarchical Structure.
TD5
120
Detail > HL Loop Shipment > TD5

Carrier Details (Routing Sequence/Transit Time)

OptionalMax use 12
Usage notes
Example
TD5-02
66
Identification Code Qualifier
Required
Identifier (ID)
Usage notes
1
D-U-N-S Number, Dun & Bradstreet
2
Standard Carrier Alpha Code (SCAC)
4
International Air Transport Association (IATA)
TD5-03
67
Identification Code
Required
String (AN)
Min 2Max 80
TD5-04
91
Transportation Method/Type Code
Optional
Identifier (ID)
A
Air
J
Motor
R
Rail
S
Ocean
TD5-05
387
Routing
Required
String (AN)
Min 1Max 35
Usage notes
TD5-07
309
Location Qualifier
Required
Identifier (ID)
ZZ
Mutually Defined
TD5-08
310
Location Identifier
Required
String (AN)
Min 1Max 30
Usage notes
TD5-12
284
Service Level Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
TD5
120
Detail > HL Loop Shipment > TD5

Carrier Details (Routing Sequence/Transit Time) Mutually Defined

OptionalMax use 1
Usage notes
Example
If Location Qualifier (TD5-07) is present, then Location Identifier (TD5-08) is required
TD5-02
66
Identification Code Qualifier
Required
Identifier (ID)
ZZ
Mutually Defined
TD5-03
67
Identification Code
Required
String (AN)
Min 2Max 80
TD5-04
91
Transportation Method/Type Code
Optional
Identifier (ID)
A
Air
J
Motor
R
Rail
S
Ocean
TD5-07
309
Location Qualifier
Optional
Identifier (ID)
ZZ
Mutually Defined
TD5-08
310
Location Identifier
Optional
String (AN)
Min 1Max 30
Usage notes
TD4
140
Detail > HL Loop Shipment > TD4

Carrier Details (Special Handling, or Hazardous Materials, or Both)

OptionalMax use 5
Usage notes
Example
At least one of Special Handling Code (TD4-01) or Description (TD4-04) is required
TD4-01
152
Special Handling Code
Optional
Identifier (ID)
ZZZ
Mutually Defined
TD4-04
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
REF
150
Detail > HL Loop Shipment > REF

Reference Identification

OptionalMax use >1
Usage notes
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
0L
Referenced By
AEC
Government Registration Number
D2
Supplier Document Identification Number
DD
Document Identification Code
REF-02
127
Reference Identification
Optional
String (AN)
FOB05
Used to specify custom value for Transport terms
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
FOB
210
Detail > HL Loop Shipment > FOB

F.O.B. Related Instructions

OptionalMax use 1
Usage notes
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
If Transportation Terms Qualifier Code (FOB-04) is present, then Transportation Terms Code (FOB-05) is required
If Description (FOB-07) is present, then Location Qualifier (FOB-06) is required
If Risk of Loss Code (FOB-08) is present, then Description (FOB-09) is required
FOB-01
146
Shipment Method of Payment
Required
Identifier (ID)
BP
Paid By Buyer
CA
Advance Collect
CC
Collect
CD
Collect On Delivery
CF
Collect Freight Credited To Payment Customer
DE
Per Contract
DF
Defined by Buyer and Seller
FO
Fob Port Of Call
HP
Half Prepaid
MX
Mixed
NC
Service Freight-No Charge
NR
Non Revenue
PA
Advance Prepaid
PB
Customer Pick-Up Or Backhaul
PC
Prepaid But Charged To Customer
PD
Prepaid By Processor
PE
Prepaid And Summary Bill
PL
Prepaid Local Collect Outstate
PO
Prepaid Only
PP
Prepaid-By Seller
PS
Paid By Supplier Or Seller
PU
Pickup
RC
Return Container Freight Paid By Customer
RF
Return Container Freight Free
RS
Return Container Freight Paid By Supplier
TP
Third Party Pay
WC
Weight Condition
FOB-02
309
Location Qualifier
Optional
Identifier (ID)
OF
Other Unlisted Free On Board (FOB) Point
ZZ
Mutually Defined
FOB-03
352
Description
Optional
String (AN)
Min 1Max 80
FOB-04
334
Transportation Terms Qualifier Code
Optional
Identifier (ID)
ZZ
Mutually Defined
FOB-05
335
Transportation Terms Code
Optional
Identifier (ID)
CAF
Cost And Freight
CIF
Cost-Insurance And Freight
CIP
Carriage-Insurance Paid To
CPT
Carriage Paid To
DAF
Delivered At Frontier
DDP
Delivered Duty Paid
DDU
Delivered Duty Unpaid
DEQ
Delivered Ex-Quay
DES
Delivered Ex-Ship
EXW
Ex-Works
FAS
Free Alongside Ship
FCA
Free-Carrier
FOB
Free On Board
ZZZ
Other
FOB-06
309
Location Qualifier
Optional
Identifier (ID)
ZZ
Mutually Defined
FOB-07
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
FOB-08
54
Risk of Loss Code
Optional
Identifier (ID)
ZZ
Mutually Defined
FOB-09
352
Description
Optional
String (AN)
Min 1Max 80
N1 Loop
OptionalMax >1
Variants (all may be used)
N1 Loop Delivery Address
N1
220
Detail > HL Loop Shipment > N1 Loop > N1

Name

RequiredMax use 1
Usage notes
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
60
Salesperson
A9
Sales Office
BY
Buying Party (Purchaser)
CA
Carrier
KY
Technical Office
SF
Ship From
ST
Ship To
SU
Supplier/Manufacturer
Required
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
Usage notes
1
D-U-N-S Number, Dun & Bradstreet
2
Standard Carrier Alpha Code (SCAC)
4
International Air Transport Association (IATA)
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
N2
230
Detail > HL Loop Shipment > N1 Loop > N2

Additional Name Information

OptionalMax use 2
Usage notes
Example
Required
String (AN)
Min 1Max 60
Optional
String (AN)
Min 1Max 60
N3
240
Detail > HL Loop Shipment > N1 Loop > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
250
Detail > HL Loop Shipment > N1 Loop > N4

Geographic Location

OptionalMax use 1
Usage notes
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Optional
Identifier (ID)
Usage notes
AB
Alberta
AK
Alaska
AL
Alabama
AR
Arkansas
AS
American Samoa
AZ
Arizona
BC
British Columbia
CA
California
CO
Colorado
CT
Connecticut
DC
District of Columbia
DE
Delaware
FL
Florida
FM
Federated States of Micronesia
GA
Georgia
GU
Guam
HI
Hawaii
IA
Iowa
ID
Idaho
IL
Illinois
IN
Indiana
KS
Kansas
KY
Kentucky
LA
Louisiana
MA
Massachusetts
MB
Manitoba
MD
Maryland
ME
Maine
MH
Marshall Islands
MI
Michigan
MN
Minnesota
MO
Missouri
MP
Northern Mariana Islands
MS
Mississippi
MT
Montana
NB
New Brunswick
NC
North Carolina
ND
North Dakota
NE
Nebraska
NF
Newfoundland
NH
New Hampshire
NJ
New Jersey
NM
New Mexico
NS
Nova Scotia
NT
Northwest Territories
NU
Nunavut
NV
Nevada
NY
New York
OH
Ohio
OK
Oklahoma
ON
Ontario
OR
Oregon
PA
Pennsylvania
PE
Prince Edward Island
PR
Puerto Rico
PW
Palau
QC
Quebec
RI
Rhode Island
SC
South Carolina
SD
South Dakota
SK
Saskatchewan
TN
Tennessee
TX
Texas
UT
Utah
VA
Virginia
VI
Virgin Islands
VT
Vermont
WA
Washington
WI
Wisconsin
WV
West Virginia
WY
Wyoming
YT
Yukon
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
Usage notes
N4-04
26
Country Code
Required
Identifier (ID)
Min 2Max 3
Usage notes
PER
270
Detail > HL Loop Shipment > N1 Loop > PER

Administrative Communications Contact

OptionalMax use 3
Usage notes
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
PER-01
366
Contact Function Code
Required
Identifier (ID)
CN
General Contact
Optional
String (AN)
Min 1Max 60
Usage notes
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
UR
Uniform Resource Locator (URL)
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
UR
Uniform Resource Locator (URL)
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-07
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
UR
Uniform Resource Locator (URL)
PER-08
364
Communication Number
Optional
String (AN)
Min 1Max 80
N1 Loop end
N1 Loop Delivery Address
OptionalMax 1
Variants (all may be used)
N1 Loop
N1
220
Detail > HL Loop Shipment > N1 Loop Delivery Address > N1

Name

RequiredMax use 1
Usage notes
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
DA
Delivery Address
Required
String (AN)
Min 1Max 60
N3
240
Detail > HL Loop Shipment > N1 Loop Delivery Address > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N4
250
Detail > HL Loop Shipment > N1 Loop Delivery Address > N4

Geographic Location

OptionalMax use 1
Usage notes
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Optional
Identifier (ID)
Usage notes
AB
Alberta
AK
Alaska
AL
Alabama
AR
Arkansas
AS
American Samoa
AZ
Arizona
BC
British Columbia
CA
California
CO
Colorado
CT
Connecticut
DC
District of Columbia
DE
Delaware
FL
Florida
FM
Federated States of Micronesia
GA
Georgia
GU
Guam
HI
Hawaii
IA
Iowa
ID
Idaho
IL
Illinois
IN
Indiana
KS
Kansas
KY
Kentucky
LA
Louisiana
MA
Massachusetts
MB
Manitoba
MD
Maryland
ME
Maine
MH
Marshall Islands
MI
Michigan
MN
Minnesota
MO
Missouri
MP
Northern Mariana Islands
MS
Mississippi
MT
Montana
NB
New Brunswick
NC
North Carolina
ND
North Dakota
NE
Nebraska
NF
Newfoundland
NH
New Hampshire
NJ
New Jersey
NM
New Mexico
NS
Nova Scotia
NT
Northwest Territories
NU
Nunavut
NV
Nevada
NY
New York
OH
Ohio
OK
Oklahoma
ON
Ontario
OR
Oregon
PA
Pennsylvania
PE
Prince Edward Island
PR
Puerto Rico
PW
Palau
QC
Quebec
RI
Rhode Island
SC
South Carolina
SD
South Dakota
SK
Saskatchewan
TN
Tennessee
TX
Texas
UT
Utah
VA
Virginia
VI
Virgin Islands
VT
Vermont
WA
Washington
WI
Wisconsin
WV
West Virginia
WY
Wyoming
YT
Yukon
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
Usage notes
N4-04
26
Country Code
Required
Identifier (ID)
Min 2Max 3
Usage notes
N1 Loop Delivery Address end
HL Loop Order
RequiredMax >1
Usage notes
HL
010
Detail > HL Loop Shipment > HL Loop Order > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-02
734
Hierarchical Parent ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
O
Order
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
1
Additional Subordinate HL Data Segment in This Hierarchical Structure.
PRF
050
Detail > HL Loop Shipment > HL Loop Order > PRF

Purchase Order Reference

RequiredMax use 1
Usage notes
Example
PRF-01
324
Purchase Order Number
Required
String (AN)
Min 1Max 22
Usage notes
Required
Date (DT)
CCYYMMDD format
Usage notes
REF
150
Detail > HL Loop Shipment > HL Loop Order > REF

Reference Identification

OptionalMax use >1
Usage notes
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
IL
Internal Order Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
DTM
200
Detail > HL Loop Shipment > HL Loop Order > DTM

Date/Time Reference

OptionalMax use 10
Example
At least one of Date (DTM-02) or Time (DTM-03) is required
If Time Code (DTM-04) is present, then Time (DTM-03) is required
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
004
Purchase Order
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Optional
Identifier (ID)
Usage notes
01
Equivalent to ISO P01
02
Equivalent to ISO P02
03
Equivalent to ISO P03
04
Equivalent to ISO P04
05
Equivalent to ISO P05
06
Equivalent to ISO P06
07
Equivalent to ISO P07
08
Equivalent to ISO P08
09
Equivalent to ISO P09
10
Equivalent to ISO P10
11
Equivalent to ISO P11
12
Equivalent to ISO P12
13
Equivalent to ISO M12
14
Equivalent to ISO M11
15
Equivalent to ISO M10
16
Equivalent to ISO M09
17
Equivalent to ISO M08
18
Equivalent to ISO M07
19
Equivalent to ISO M06
20
Equivalent to ISO M05
21
Equivalent to ISO M04
22
Equivalent to ISO M03
23
Equivalent to ISO M02
24
Equivalent to ISO M01
AD
Alaska Daylight Time
AS
Alaska Standard Time
AT
Alaska Time
CD
Central Daylight Time
CS
Central Standard Time
CT
Central Time
ED
Eastern Daylight Time
ES
Eastern Standard Time
ET
Eastern Time
GM
Greenwich Mean Time
HD
Hawaii-Aleutian Daylight Time
HS
Hawaii-Aleutian Standard Time
HT
Hawaii-Aleutian Time
MD
Mountain Daylight Time
MS
Mountain Standard Time
MT
Mountain Time
ND
Newfoundland Daylight Time
NS
Newfoundland Standard Time
NT
Newfoundland Time
PD
Pacific Daylight Time
PS
Pacific Standard Time
PT
Pacific Time
TD
Atlantic Daylight Time
TS
Atlantic Standard Time
TT
Atlantic Time
UT
Universal Time Coordinate
N1 Loop
OptionalMax >1
N1
220
Detail > HL Loop Shipment > HL Loop Order > N1 Loop > N1

Name

RequiredMax use 1
Usage notes
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
60
Salesperson
A9
Sales Office
BT
Bill-to-Party
BY
Buying Party (Purchaser)
KY
Technical Office
RI
Remit To
SF
Ship From
ST
Ship To
SU
Supplier/Manufacturer
Required
String (AN)
Min 1Max 60
N2
230
Detail > HL Loop Shipment > HL Loop Order > N1 Loop > N2

Additional Name Information

OptionalMax use 2
Example
Required
String (AN)
Min 1Max 60
Optional
String (AN)
Min 1Max 60
N3
240
Detail > HL Loop Shipment > HL Loop Order > N1 Loop > N3

Address Information

OptionalMax use 2
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
250
Detail > HL Loop Shipment > HL Loop Order > N1 Loop > N4

Geographic Location

OptionalMax use 1
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15
N4-04
26
Country Code
Required
Identifier (ID)
Min 2Max 3
PER
270
Detail > HL Loop Shipment > HL Loop Order > N1 Loop > PER

Administrative Communications Contact

OptionalMax use 3
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
PER-01
366
Contact Function Code
Required
Identifier (ID)
CN
General Contact
Optional
String (AN)
Min 1Max 60
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
UR
Uniform Resource Locator (URL)
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
UR
Uniform Resource Locator (URL)
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-07
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
UR
Uniform Resource Locator (URL)
PER-08
364
Communication Number
Optional
String (AN)
Min 1Max 80
N1 Loop end
HL Loop Item
RequiredMax >1
Usage notes
HL
010
Detail > HL Loop Shipment > HL Loop Order > HL Loop Item > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-02
734
Hierarchical Parent ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
I
Item
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
0
No Subordinate HL Segment in This Hierarchical Structure.
SN1
030
Detail > HL Loop Shipment > HL Loop Order > HL Loop Item > SN1

Item Detail (Shipment)

RequiredMax use 1
Usage notes
Example
SN1-01
350
Assigned Identification
Required
String (AN)
Min 1Max 20
Usage notes
SN1-02
382
Number of Units Shipped
Required
Decimal number (R)
Min 1Max 10
SN1-03
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Min 2Max 2
PO4
060
Detail > HL Loop Shipment > HL Loop Order > HL Loop Item > PO4

Item Physical Details

OptionalMax use 1
Usage notes
Example
If either Size (PO4-02) or Unit or Basis for Measurement Code (PO4-03) is present, then the other is required
If either Gross Weight per Pack (PO4-06) or Unit or Basis for Measurement Code (PO4-07) is present, then the other is required
If either Gross Volume per Pack (PO4-08) or Unit or Basis for Measurement Code (PO4-09) is present, then the other is required
If Unit or Basis for Measurement Code (PO4-13) is present, then at least one of Length (PO4-10), Width (PO4-11) or Height (PO4-12) is required
If Length (PO4-10) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Width (PO4-11) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Height (PO4-12) is present, then Unit or Basis for Measurement Code (PO4-13) is required
Optional
Numeric (N0)
Min 1Max 6
Optional
Decimal number (R)
Min 1Max 8
PO4-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
PO4-04
103
Packaging Code
Optional
String (AN)
Min 3Max 5
PO4-06
384
Gross Weight per Pack
Optional
Decimal number (R)
Min 1Max 9
PO4-07
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
PO4-08
385
Gross Volume per Pack
Optional
Decimal number (R)
Min 1Max 9
PO4-09
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
PO4-10
82
Length
Optional
Decimal number (R)
Min 1Max 8
Optional
Decimal number (R)
Min 1Max 8
PO4-12
65
Height
Optional
Decimal number (R)
Min 1Max 8
PO4-13
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
REF
150
Detail > HL Loop Shipment > HL Loop Order > HL Loop Item > REF

Reference Identification

OptionalMax use >1
Usage notes
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
Min 2Max 3
REF-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
composite
Composite
item
Item
MAN
190
Detail > HL Loop Shipment > HL Loop Order > HL Loop Item > MAN

Marks and Numbers

OptionalMax use >1
Usage notes
Example
If either Marks and Numbers Qualifier (MAN-04) or Marks and Numbers (MAN-05) is present, then the other is required
If Marks and Numbers (MAN-06) is present, then Marks and Numbers (MAN-05) is required
MAN-01
88
Marks and Numbers Qualifier
Required
Identifier (ID)
L
Line Item Only
MAN-02
87
Marks and Numbers
Required
String (AN)
Usage notes
AT
Tag Number
SN
Serial Number
MAN-03
87
Marks and Numbers
Optional
String (AN)
Min 1Max 48
MAN-04
88
Marks and Numbers Qualifier
Optional
Identifier (ID)
L
Line Item Only
MAN-05
87
Marks and Numbers
Optional
String (AN)
Usage notes
AT
Tag Number
SN
Serial Number
MAN-06
87
Marks and Numbers
Optional
String (AN)
Min 1Max 48
HL Loop Item end
HL Loop Order end
HL Loop Shipment end
Detail end

Summary

CTT
010
Summary > CTT

Transaction Totals

OptionalMax use 1
Usage notes
Example
CTT-01
354
Number of Line Items
Required
Numeric (N0)
Min 1Max 6
SE
020
Summary > SE

Transaction Set Trailer

RequiredMax use 1
Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10
SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
Summary end

Functional Group Trailer

RequiredMax use 1
Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6
GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Interchange Control Trailer

RequiredMax use 1
Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5
IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
EDI Samples

Sample Based on Segment Samples

ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *250510*0339*U*00401*000000001*0*T*>~
GS*SH*SENDERGS*RECEIVERGS*20250510*033926*1*X*004010~
ST*856*0001~
BSN*00*843-2187-5193*20010903*121844*0004~
DTM*011*20010903*0830*ED~
DTM*017*20010904*0900*20~
HL*1**S*1~
TD5**2*NSTY*J*Nasty Express**ZZ*DEA24597281772****ND~
TD4*ZZZ***UPS@domainXYZ~
REF*AEC**US12345~
FOB*MX*ZZ*CollectedByCustomer*ZZ*FAS*ZZ*@TPTransport description@TODDelivery at the doorstep*ZZ*Mixed~
N1*CA*Nasty Express*2*NSTY~
N2*Shipping Dept.~
N3*123 Anywhere St.*Suite C~
N4*Dallas*TX*75216*US~
PER*CN*Lucille Winters*TE*18005551212*EM*lucyw@thesupplier.org~
HL*2*1*O*1~
PRF*ORD6592***20010829~
REF*IL*1234567~
HL*3*2*I*0~
SN1*1*8*DZ~
PO4*12*1*JR*CAS**32.8*KG*0.16*CR*0.8*0.5*0.4*MR~
REF*FL*2*item~
MAN*L*SN*123-4*L*AT*t435-4~
CTT*4~
SE*24*0001~
GE*1*1~
IEA*1*000000001~

Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page 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. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.