Railinc
/
Terminal Operations and Intermodal Ramp Activity
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from Railinc. Contact Railinc for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
Railinc logo

X12 322 Terminal Operations and Intermodal Ramp Activity

X12 Release 8030
Delimiters
  • ~ Segment
  • * Element
  • > Component
  • ^ Repetition
EDI samples
  • None included
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/railinc/terminal-operations-and-intermodal-ramp-activity/01HCDE39Z30AG455GCVDE646MY
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
ST
0100
Transaction Set Header
Max use 1
Required
ZC1
0150
Beginning Segment for Data Correction or Change
Max use 1
Optional
Q5
0160
Status Details
Max use 1
Required
N7 Loop
N7
0200
Equipment Details
Max use 1
Required
DTM
0400
Date/Time Reference
Max use 2
Optional
M7
0500
Seal Numbers
Max use 5
Optional
W09
0600
Equipment and Temperature
Max use 1
Optional
W2
0700
Equipment Identification
Max use 1
Optional
NA
0800
Cross-Reference Equipment
Max use 30
Optional
V1
1100
Vessel Identification
Max use 1
Optional
H3
1400
Special Handling Instructions
Max use 6
Optional
N1 Loop
N9
1700
Extended Reference Information
Max use 30
Optional
L3
3000
Total Weight and Charges
Max use 2
Optional
SE
3100
Transaction Set Trailer
Max use 1
Required
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
I65
Repetition Separator
Required
String (AN)
Min 1Max 1
^
Repetition Separator
ISA-12
I11
Interchange Control Version Number Code
Required
Identifier (ID)
00803
00803 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2021
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
ISA-14
I13
Acknowledgment Requested Code
Required
Identifier (ID)
Min 1Max 1
0
No Interchange Acknowledgment Requested
1
Interchange Acknowledgment Requested (TA1)
2
Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors"
3
Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors" or "Accepted but Errors are Noted"
ISA-15
I14
Interchange Usage Indicator Code
Required
Identifier (ID)
Min 1Max 1
I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Data 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)
SO
Ocean Shipment Information (304, 311, 317, 319, 322, 323, 324, 325, 326, 361)
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)
008030
008030 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2021

Heading

ST
0100
Heading > ST

Transaction Set Header

RequiredMax use 1
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
322
Terminal Operations and Intermodal Ramp Activity
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
ZC1
0150
Heading > ZC1

Beginning Segment for Data Correction or Change

OptionalMax use 1
Example
ZC1-01
145
Shipment Identification Number
Optional
String (AN)
Min 1Max 30
ZC1-02
206
Equipment Initial
Optional
String (AN)
Min 1Max 4
Usage notes
ZC1-03
207
Equipment Number
Required
String (AN)
Min 1Max 15
Usage notes
ZC1-04
244
Transaction Reference Number
Required
String (AN)
Min 1Max 50
ZC1-05
243
Transaction Reference Date
Required
Date (DT)
CCYYMMDD format
ZC1-06
202
Correction Indicator Code
Required
Identifier (ID)
DE
Delete Event
ZC1-07
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4
ZC1-08
91
Transportation Method/Type Code
Required
Identifier (ID)
X
Intermodal (Piggyback)
ZC1-09
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1
Usage notes
Q5
0160
Heading > Q5

Status Details

RequiredMax use 1
Example
If either Time (Q5-03) or Time Code (Q5-04) is present, then the other is required
Q5-01
157
Shipment Status Code
Optional
Identifier (ID)
A
Arrived
AE
Loaded on Vessel
AI
Shipment Has Been Reconsigned
AL
Loaded on Rail
AO
Loaded on Barge
AR
Rail Arrival at Destination Intermodal Ramp
B
Bad Order (Inoperative or Damaged)
BO
Rail Conveying Car Bad Ordered
CA
Shipment Cancelled
CB
Chassis Tie
CC
Chassis Un-Tie
CS
Container Sealed
CT
Customs Released
D
Completed Unloading at Delivery Location
DA
Repair Authorization Requested
DC
Unit Cleaned
DP
Unit Pre-Tripped
DR
Repair Authorization Received
DS
Damage Survey Requested
DT
Damage Survey Completed
EA
Estimate Approved
ER
Estimate Received
G
Repaired and/or Released from Bad Order
GI
Terminal Gate Inspection
I
In-Gate
J
Delivered to Connecting Line
K
Arrived at Customs
L
Loading
LE
Locked Estimated Time of Notification (ETN)
MA
Mexican Customs, Arrival at In-bond Facility
MD
Mexican Customs, Departure from In-bond Facility
ME
Mexican Customs, De-Ramp at In-bond Facility
MI
Mexican Customs, Ingate at In-bond Facility
MO
Mexican Customs, Outgate from In-bond Facility
MR
Mexican Customs, Ramp at In-bond Facility
MT
Empty Committed
N
No Paperwork Received with Shipment or Equipment
NC
Confirmation of Notification
ND
Technical Charges Due
NF
Free Time to Expire
NG
Non-Gate Inspection
NH
No Hazardous Material Document Received
NO
Ocean Charges Paid
NP
Terminal Charges Paid
NS
No Seal on Load
NT
Notification
O
Paperwork Received- Did Not Receive Shipment or Equipment
OA
Out-Gate
OH
On Hand
P
Departed Terminal Location
PA
U.S. Customs and Border Protection (CBP) Hold, Intensive Examination
PB
U.S. Customs and Border Protection (CBP) Hold, Insufficient Paperwork
PC
U.S. Customs and Border Protection (CBP) Hold, Discrepancy in Paperwork
PD
U.S. Customs and Border Protection (CBP) Hold, Discrepancy in Piece Count
PE
U.S. Customs and Border Protection (CBP) Hold, Hold by Coast Guard
PF
U.S. Customs and Border Protection (CBP) Hold, Hold by F.B.I.
PG
U.S. Customs and Border Protection (CBP) Hold, Hold by Local Law Enforcement
PH
U.S. Customs and Border Protection (CBP) Hold, Hold by Court Imposed Lien
PI
U.S. Customs and Border Protection (CBP) Hold, Hold by Food and Drug
PJ
U.S. Customs and Border Protection (CBP) Hold, Hold by Fish and Wildlife
PK
U.S. Customs and Border Protection (CBP) Hold, Hold by Drug Enforcement
PL
US Dept. Agr, Hold for Intensive Investigation
PM
US Dept. Agr, Hold for Unregistered Producer
PN
US Dept. Agr, Hold for Restricted Commodity
PO
US Dept. Agr, Hold for Insect Infestation
PP
US Dept. Agr, Hold for Bacterial Contamination
R
Received from Prior Carrier
RF
Rail Conveying Car Released from Bad Order
RL
Rail Departure from Origin Intermodal Ramp
RN
Renotification
RY
Movement from Intermodal Facility to Rail Yard
SC
Seals Altered
SF
Move off Spot
SO
Move on Spot
T
At Terminal; Intra-Terminal Movement
TE
Tactical Estimated Time of Notification (ETN)
UR
Unloaded from a Rail Car
UV
Unloaded From Vessel
WH
Weight Too Heavy - Highway
WR
Weight Too Heavy - Rail
YR
Movement from Rail Yard to Intermodal Facility
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
Q5-04
623
Time Code
Optional
Identifier (ID)
CT
Central Time
ET
Eastern Time
LT
Local Time
MT
Mountain Time
NT
Newfoundland Time
PT
Pacific Time
TT
Atlantic Time
UT
Universal Time Coordinate
N7 Loop
RequiredMax 1000
N7
0200
Heading > N7 Loop > N7

Equipment Details

RequiredMax use 1
Example
If either Weight (N7-03) or Weight Qualifier (N7-04) is present, then the other is required
N7-01
206
Equipment Initial
Optional
String (AN)
Min 1Max 4
Usage notes
N7-02
207
Equipment Number
Required
String (AN)
Min 1Max 15
Usage notes
N7-03
81
Weight
Optional
Decimal number (R)
Min 1Max 10
Usage notes
N7-04
187
Weight Qualifier
Optional
Identifier (ID)
E
Estimated Net Weight
G
Gross Weight
N
Actual Net Weight
N7-11
40
Equipment Description Code
Optional
Identifier (ID)
CC
Container resting on a Chassis
CH
Chassis
CJ
Container, Insulated/Ventilated
CN
Container
CZ
Refrigerated Container
TL
Trailer (not otherwise specified)
TW
Trailer, Refrigerated
N7-12
140
Standard Carrier Alpha Code
Optional
Identifier (ID)
Min 2Max 4
Usage notes
N7-15
567
Equipment Length
Optional
Numeric (N0)
Min 4Max 5
Usage notes
N7-17
188
Weight Unit Code
Optional
Identifier (ID)
K
Kilograms
L
Pounds
N7-18
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1
Usage notes
N7-20
65
Height
Optional
Decimal number (R)
Min 1Max 8
Usage notes
Optional
Decimal number (R)
Min 1Max 8
Usage notes
N7-22
24
Equipment Type Code
Optional
Identifier (ID)
Min 4Max 4
Usage notes
N7-23
140
Standard Carrier Alpha Code
Optional
Identifier (ID)
Min 2Max 4
Usage notes
DTM
0400
Heading > N7 Loop > DTM

Date/Time Reference

OptionalMax use 2
Example
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
371
Estimated Arrival Date
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Optional
Identifier (ID)
AT
Alaska Time
CT
Central Time
ET
Eastern Time
LT
Local Time
MT
Mountain Time
NT
Newfoundland Time
PT
Pacific Time
TT
Atlantic Time
M7
0500
Heading > N7 Loop > M7

Seal Numbers

OptionalMax use 5
Example
M7-01
225
Seal Number
Required
String (AN)
Min 1Max 15
M7-02
225
Seal Number
Optional
String (AN)
Min 1Max 15
M7-03
225
Seal Number
Optional
String (AN)
Min 1Max 15
M7-04
225
Seal Number
Optional
String (AN)
Min 1Max 15
W09
0600
Heading > N7 Loop > W09

Equipment and Temperature

OptionalMax use 1
Example
If either Temperature (W09-02) or Unit or Basis for Measurement Code (W09-03) is present, then the other is required
If either Temperature (W09-04) or Unit or Basis for Measurement Code (W09-05) is present, then the other is required
W09-01
40
Equipment Description Code
Required
Identifier (ID)
CJ
Container, Insulated/Ventilated
CZ
Refrigerated Container
TW
Trailer, Refrigerated
W09-02
408
Temperature
Optional
Decimal number (R)
Min 1Max 4
Usage notes
W09-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CE
Centigrade, Celsius
FA
Fahrenheit
W09-04
408
Temperature
Optional
Decimal number (R)
Min 1Max 4
W09-05
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CE
Centigrade, Celsius
FA
Fahrenheit
W09-06
3
Free-form Message
Optional
String (AN)
Min 1Max 60
Usage notes
W09-07
1122
Vent Setting Code
Optional
Identifier (ID)
A
Vent 25% Open
B
Vent 50% Open
C
Vent 75% Open
D
Vent 100% Open
E
Closed
F
Vent 10% Open
Z
Carrier to Set Based on Commodity Type
W09-08
488
Percent, Integer Format
Optional
Numeric (N0)
Min 1Max 3
Usage notes
W2
0700
Heading > N7 Loop > W2

Equipment Identification

OptionalMax use 1
Usage notes
Example
If either Equipment Initial (W2-11) or Equipment Number (W2-12) is present, then the other is required
W2-01
206
Equipment Initial
Required
String (AN)
Min 1Max 4
Usage notes
W2-02
207
Equipment Number
Required
String (AN)
Min 1Max 15
Usage notes
W2-04
40
Equipment Description Code
Required
Identifier (ID)
CC
Container resting on a Chassis
CH
Chassis
CJ
Container, Insulated/Ventilated
CN
Container
CZ
Refrigerated Container
TL
Trailer (not otherwise specified)
TW
Trailer, Refrigerated
W2-05
578
Equipment Status Code
Required
Identifier (ID)
Usage notes
AK
Out of Service
E
Empty
L
Load
W2-07
177
Intermodal Service Code
Optional
Identifier (ID)
Min 1Max 2
Usage notes
W2-11
206
Equipment Initial
Optional
String (AN)
Min 1Max 4
Usage notes
W2-12
207
Equipment Number
Optional
String (AN)
Min 1Max 15
Usage notes
W2-13
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1
Usage notes
W2-16
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)
N
No
Y
Yes
W2-17
1554
Tag Status Code
Optional
Identifier (ID)
Min 1Max 1
W2-18
1543
Equipment Orientation Code
Optional
Identifier (ID)
Min 1Max 1
NA
0800
Heading > N7 Loop > NA

Cross-Reference Equipment

OptionalMax use 30
Usage notes
Example
NA-03
206
Equipment Initial
Required
String (AN)
Min 1Max 4
Usage notes
NA-04
207
Equipment Number
Required
String (AN)
Min 1Max 15
Usage notes
NA-05
231
Cross Reference Type Code
Optional
Identifier (ID)
B
Basket Attached to Chassis (to hold generator set)
F
Conveying Flat Car
H
Generator Set
K
Clip-on Front-Mounted Generator Unit For Container
S
Saddle to Conveying Flatcar
NA-06
219
Position
Optional
String (AN)
Min 1Max 3
Usage notes
NA-11
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)
N
No
Y
Yes
NA-12
761
Equipment Number Check Digit
Optional
Numeric (N0)
Min 1Max 1
Usage notes
V1
1100
Heading > N7 Loop > V1

Vessel Identification

OptionalMax use 1
Example
At least one of Vessel Code (V1-01) or Vessel Name (V1-02) is required
If Vessel Code Qualifier (V1-08) is present, then Vessel Code (V1-01) is required
V1-01
597
Vessel Code
Optional
Identifier (ID)
Min 1Max 8
Usage notes
V1-02
182
Vessel Name
Optional
String (AN)
Min 2Max 28
V1-04
55
Flight/Voyage Number
Optional
String (AN)
Min 2Max 30
V1-08
897
Vessel Code Qualifier
Optional
Identifier (ID)
C
Ship's Radio Call Signal
L
Lloyd's Register of Shipping
R4 Loop
RequiredMax 20
R4
1200
Heading > N7 Loop > R4 Loop > R4

Port or Terminal

RequiredMax use 1
Example
If either Location Qualifier (R4-02) or Location Identifier (R4-03) is present, then the other is required
R4-01
115
Port or Terminal Function Code
Required
Identifier (ID)
1
Final Port of Discharge (Operational)
5
Activity Location (Operational)
6
Origin Rail Intermodal Terminal
7
Destination Rail Intermodal Terminal
D
Port of Discharge (Operational)
E
Place of Delivery (Contractual)
I
Interim Point (Operational)
L
Port of Loading (Operational)
M
Destination (Operational)
P
Dispatching Pool (Operational)
R
Place of Receipt (Contractual)
R4-02
309
Location Qualifier
Optional
Identifier (ID)
CS
Canadian SPLC
D
Census Schedule D
K
Census Schedule K
OL
Open and Prepay Station List Code(SCAC & Number)
SL
U.S. SPLC
UN
United Nations Location Code (UNLOCODE)
R4-03
310
Location Identifier
Optional
String (AN)
Min 1Max 30
R4-04
114
Port Name
Optional
String (AN)
Min 2Max 24
Usage notes
R4-08
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
R4 Loop end
H3
1400
Heading > N7 Loop > H3

Special Handling Instructions

OptionalMax use 6
Example
H3-01
152
Special Handling Code
Optional
Identifier (ID)
DM
Domestic
HM
Endorsed as Hazardous Material
IP
Import Shipment
XP
Export
N1 Loop
OptionalMax 10
N1
1500
Heading > N7 Loop > N1 Loop > N1

Party Identification

RequiredMax use 1
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
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)
AG
Agent/Agency
BN
Beneficial Owner
BT
Bill-to-Party
CB
Customs Broker
CN
Consignee
II
Issuer of Invoice
MC
Motor Carrier
N1
Notify Party no. 1
N2
Notify Party no. 2
PA
Party to Receive Inspection Report
PR
Payer
PV
Party performing certification
RT
Returned to
SF
Ship From
SH
Shipper
SS
Steamship Company
ST
Ship To
VN
Vendor
XB
In-land Mexican Broker
XQ
Canadian Customs Broker
XR
Mexican Customs Broker
XU
United States Customs Broker
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
2
Standard Carrier Alpha Code (SCAC)
12
Telephone Number (Phone)
17
Automated Broker Interface (ABI) Routing Code
93
Code assigned by the organization originating the transaction set
94
Code assigned by the organization that is the ultimate destination of the transaction set
BF
Broker Filer ID
C5
Customer Identification File
ZZ
Mutually Defined
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
Usage notes
N4
1560
Heading > N7 Loop > N1 Loop > N4

Geographic Location

OptionalMax use 1
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
N4-01
19
City Name
Optional
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
Optional
Identifier (ID)
Usage notes
CA
Canada
MX
Mexico
US
United States of America (the)
N4-05
309
Location Qualifier
Optional
Identifier (ID)
Min 1Max 2
N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30
N1 Loop end
N9
1700
Heading > N7 Loop > N9

Extended Reference Information

OptionalMax use 30
Example
If Time Code (N9-06) is present, then Time (N9-05) is required
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
01
American Bankers Assoc. (ABA) Transit/Routing Number (Including Check Digit, 9 Digits)
5J
Driver's License
7W
Interchange Train Identification
BL
Government Bill of Lading
BM
Bill of Lading Number
BN
Booking Number
BO
Bin Location Number
CK
Check Number
CR
Customer Reference Number
CT
Contract Number
FI
File Identifier
FR
Freight Bill Number
HW
High/Wide File Number
IE
Interchange Agreement Number
IV
Seller's Invoice Number
LO
Load Planning Number
M0
Mexican Pedimento Number
OB
Ocean Bill of Lading
ON
Dealer Order Number
OR
Order/Paragraph Number
OW
Service Order Number
PB
Payer's Financial Institution Account Number for Check, Draft, or Wire Payments; Originating Company Account Number for ACH Transfers
PO
Purchase Order Number
RE
Release Number
S4
Shippers Bond Number
SI
Shipper's Identifying Number for Shipment (SID)
TI
TIR Number
VT
Motor Vehicle ID Number
VV
Voucher
WY
Waybill Number
X3
Defect Code Number
XC
Cargo Control Number
YS
Yard Position
ZB
Ultimate Consignee
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 80
Usage notes
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
N9-06
623
Time Code
Optional
Identifier (ID)
CT
Central Time
ET
Eastern Time
LT
Local Time
MT
Mountain Time
NT
Newfoundland Time
PT
Pacific Time
TT
Atlantic Time
UT
Universal Time Coordinate
L0 Loop
OptionalMax 999
L0
1800
Heading > N7 Loop > L0 Loop > L0

Line Item - Quantity and Weight

RequiredMax use 1
Example
If either Billed/Rated-as Quantity (L0-02) or Billed/Rated-as Qualifier (L0-03) is present, then the other is required
If either Weight (L0-04) or Weight Qualifier (L0-05) is present, then the other is required
If either Volume (L0-06) or Volume Unit Qualifier (L0-07) is present, then the other is required
If either Lading Quantity (L0-08) or Packaging Form Code (L0-09) is present, then the other is required
If Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
If either Quantity (L0-13) or Yes/No Condition or Response Code (L0-15) is present, then the other is required
L0-01
213
Lading Line Item Number
Optional
Numeric (N0)
Min 1Max 6
L0-02
220
Billed/Rated-as Quantity
Optional
Decimal number (R)
Min 1Max 11
L0-03
221
Billed/Rated-as Qualifier
Optional
Identifier (ID)
Min 2Max 2
L0-04
81
Weight
Optional
Decimal number (R)
Min 1Max 10
L0-05
187
Weight Qualifier
Optional
Identifier (ID)
Min 1Max 2
L0-06
183
Volume
Optional
Decimal number (R)
Min 1Max 8
L0-07
184
Volume Unit Qualifier
Optional
Identifier (ID)
Min 1Max 1
L0-08
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7
L0-09
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3
L0-10
458
Dunnage Description
Optional
String (AN)
Min 2Max 25
L0-11
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1
L0-12
56
Type of Service Code
Optional
Identifier (ID)
Min 2Max 2
L0-13
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
L0-14
211
Packaging Form Code
Optional
Identifier (ID)
Min 3Max 3
L0-15
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)
N
No
Y
Yes
L5
1900
Heading > N7 Loop > L0 Loop > L5

Description, Marks and Numbers

OptionalMax use 1
Example
If either Commodity Code (L5-03) or Commodity Code Qualifier (L5-04) is present, then the other is required
If Marks and Numbers Qualifier (L5-07) is present, then Marks and Numbers (L5-06) is required
If either Commodity Code Qualifier (L5-08) or Commodity Code (L5-09) is present, then the other is required
L5-01
213
Lading Line Item Number
Optional
Numeric (N0)
Min 1Max 6
Usage notes
L5-02
79
Lading Description
Optional
String (AN)
Min 1Max 50
L5-03
22
Commodity Code
Optional
String (AN)
Min 1Max 30
L5-04
23
Commodity Code Qualifier
Optional
Identifier (ID)
Min 1Max 2
L5-05
103
Packaging Code
Optional
String (AN)
Min 3Max 5
L5-06
87
Marks and Numbers
Optional
String (AN)
Min 1Max 48
Usage notes
L5-07
88
Marks and Numbers Qualifier
Optional
Identifier (ID)
Min 1Max 2
L5-08
23
Commodity Code Qualifier
Optional
Identifier (ID)
Min 1Max 2
L5-09
22
Commodity Code
Optional
String (AN)
Min 1Max 30
L5-10
595
Compartment ID Code
Optional
Identifier (ID)
Min 1Max 1
H1
2000
Heading > N7 Loop > L0 Loop > H1

Hazardous Material

OptionalMax use 3
Usage notes
Example
If either Flashpoint Temperature (H1-07) or Unit or Basis for Measurement Code (H1-08) is present, then the other is required
H1-01
62
Hazardous Material Code
Required
String (AN)
Min 4Max 10
Usage notes
H1-02
209
Hazardous Material Class Code
Optional
String (AN)
Min 1Max 4
Usage notes
H1-03
208
Hazardous Material Code Qualifier
Optional
Identifier (ID)
I
Intergovernmental Maritime Organization (IMO) Code
H1-04
64
Hazardous Material Description
Optional
String (AN)
Min 2Max 30
Usage notes
H1-05
63
Hazardous Material Contact
Optional
String (AN)
Min 1Max 24
H1-06
200
Hazardous Materials Page
Optional
String (AN)
Min 1Max 6
Usage notes
H1-07
77
Flashpoint Temperature
Optional
Numeric (N)
Min 1Max 3
H1-08
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CE
Centigrade, Celsius
FA
Fahrenheit
H1-09
254
Packing Group Code
Optional
Identifier (ID)
Min 1Max 3
LH1 Loop
OptionalMax 1000
Usage notes
LH1
2100
Heading > N7 Loop > L0 Loop > LH1 Loop > LH1

Hazardous Identification Information

RequiredMax use 1
Example
If either Unit or Basis for Measurement Code (LH1-06) or Quantity (LH1-07) is present, then the other is required
LH1-01
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Min 2Max 2
LH1-02
80
Lading Quantity
Required
Numeric (N0)
Min 1Max 7
LH1-03
277
UN/NA Identification Code
Optional
Identifier (ID)
Min 6Max 6
LH1-04
200
Hazardous Materials Page
Optional
String (AN)
Min 1Max 6
LH1-05
22
Commodity Code
Optional
String (AN)
Min 1Max 30
LH1-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LH1-07
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
LH1-08
595
Compartment ID Code
Optional
Identifier (ID)
Min 1Max 1
LH1-09
665
Residue Indicator Code
Optional
Identifier (ID)
Min 1Max 1
LH1-10
254
Packing Group Code
Optional
Identifier (ID)
Min 1Max 3
LH1-11
1375
Interim Hazardous Material Regulatory Number
Optional
String (AN)
Min 1Max 5
LH1-12
1271
Industry Code
Optional
String (AN)
Min 1Max 30
LH2
2200
Heading > N7 Loop > L0 Loop > LH1 Loop > LH2

Hazardous Classification Information

OptionalMax use 4
Usage notes
Example
If either Unit or Basis for Measurement Code (LH2-06) or Temperature (LH2-07) is present, then the other is required
If either Unit or Basis for Measurement Code (LH2-08) or Temperature (LH2-09) is present, then the other is required
If either Unit or Basis for Measurement Code (LH2-10) or Temperature (LH2-11) is present, then the other is required
If either Weight Unit Code (LH2-12) or Net Explosive Quantity (LH2-13) is present, then the other is required
LH2-01
215
Hazardous Classification Code
Optional
Identifier (ID)
Min 1Max 30
LH2-02
983
Hazardous Class Qualifier
Optional
Identifier (ID)
Min 1Max 1
LH2-03
218
Hazardous Placard Notation Code
Optional
Identifier (ID)
Min 14Max 40
LH2-04
222
Hazardous Endorsement Code
Optional
Identifier (ID)
Min 4Max 25
LH2-05
759
Reportable Quantity Code
Optional
Identifier (ID)
Min 2Max 2
LH2-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LH2-07
408
Temperature
Optional
Decimal number (R)
Min 1Max 4
LH2-08
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LH2-09
408
Temperature
Optional
Decimal number (R)
Min 1Max 4
LH2-10
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LH2-11
408
Temperature
Optional
Decimal number (R)
Min 1Max 4
LH2-12
188
Weight Unit Code
Optional
Identifier (ID)
Min 1Max 1
LH2-13
267
Net Explosive Quantity
Optional
Numeric (N0)
Min 1Max 10
LH3
2300
Heading > N7 Loop > L0 Loop > LH1 Loop > LH3

Hazardous Material Shipping Name Information

OptionalMax use 10
Usage notes
Example
If either Hazardous Material Shipping Name (LH3-01) or Hazardous Material Shipping Name Qualifier (LH3-02) is present, then the other is required
LH3-01
224
Hazardous Material Shipping Name
Optional
String (AN)
Min 1Max 25
LH3-02
984
Hazardous Material Shipping Name Qualifier
Optional
Identifier (ID)
Min 1Max 1
LH3-03
985
N.O.S. Indicator Code
Optional
Identifier (ID)
Min 3Max 3
LH3-04
1073
Yes/No Condition or Response Code
Optional
Identifier (ID)
N
No
Y
Yes
LFH
2400
Heading > N7 Loop > L0 Loop > LH1 Loop > LFH

Free-form Hazardous Material Information

OptionalMax use 25
Usage notes
Example
If either Unit or Basis for Measurement Code (LFH-05) or Quantity (LFH-06) is present, then the other is required
LFH-01
808
Hazardous Material Shipment Information Qualifier
Required
Identifier (ID)
Min 3Max 3
LFH-02
809
Hazardous Material Shipment Information
Required
String (AN)
Min 1Max 25
LFH-03
809
Hazardous Material Shipment Information
Optional
String (AN)
Min 1Max 25
LFH-04
1023
Hazard Zone Code
Optional
Identifier (ID)
Min 1Max 1
LFH-05
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LFH-06
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
LFH-07
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
Optional
Date (DT)
CCYYMMDD format
LEP
2500
Heading > N7 Loop > L0 Loop > LH1 Loop > LEP

EPA Required Data

OptionalMax use 3
Usage notes
Example
If either State or Province Code (LEP-03) or Reference Identification (LEP-04) is present, then the other is required
LEP-01
806
EPA Waste Stream Number Code
Optional
Identifier (ID)
Min 4Max 6
LEP-02
807
Waste Characteristics Code
Optional
Identifier (ID)
Min 12Max 16
LEP-03
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
LEP-04
127
Reference Identification
Optional
String (AN)
Min 1Max 80
LH4
2600
Heading > N7 Loop > L0 Loop > LH1 Loop > LH4

Canadian Dangerous Requirements

OptionalMax use 4
Usage notes
Example
If either Net Explosive Quantity (LH4-08) or Unit or Basis for Measurement Code (LH4-12) is present, then the other is required
If either Hazardous Material Shipment Information Qualifier (LH4-13), Quantity (LH4-14) or Unit or Basis for Measurement Code (LH4-15) are present, then the others are required
LH4-01
238
Emergency Response Plan Number
Optional
String (AN)
Min 1Max 12
LH4-02
364
Communication Number
Optional
String (AN)
Min 1Max 2048
LH4-03
254
Packing Group Code
Optional
Identifier (ID)
Min 1Max 3
LH4-04
230
Subsidiary Classification Code
Optional
Identifier (ID)
Min 1Max 3
LH4-05
230
Subsidiary Classification Code
Optional
Identifier (ID)
Min 1Max 3
LH4-06
230
Subsidiary Classification Code
Optional
Identifier (ID)
Min 1Max 3
LH4-07
271
Subsidiary Risk Indicator Code
Optional
Identifier (ID)
Min 1Max 2
LH4-08
267
Net Explosive Quantity
Optional
Numeric (N0)
Min 1Max 10
LH4-09
805
Canadian Hazardous Notation
Optional
String (AN)
Min 1Max 25
LH4-10
986
Special Commodity Indicator Code
Optional
Identifier (ID)
Min 1Max 1
LH4-11
364
Communication Number
Optional
String (AN)
Min 1Max 2048
LH4-12
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LH4-13
808
Hazardous Material Shipment Information Qualifier
Optional
Identifier (ID)
Min 3Max 3
LH4-14
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
LH4-15
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
LHT
2700
Heading > N7 Loop > L0 Loop > LH1 Loop > LHT

Transborder Hazardous Requirements

OptionalMax use 3
Usage notes
Example
LHT-01
215
Hazardous Classification Code
Optional
Identifier (ID)
Min 1Max 30
LHT-02
218
Hazardous Placard Notation Code
Optional
Identifier (ID)
Min 14Max 40
LHT-03
222
Hazardous Endorsement Code
Optional
Identifier (ID)
Min 4Max 25
LHR
2800
Heading > N7 Loop > L0 Loop > LH1 Loop > LHR

Hazardous Material Identifying Reference Numbers

OptionalMax use 10
Usage notes
Example
LHR-01
128
Reference Identification Qualifier
Required
Identifier (ID)
Min 2Max 3
LHR-02
127
Reference Identification
Required
String (AN)
Min 1Max 80
Optional
Date (DT)
CCYYMMDD format
PER
2900
Heading > N7 Loop > L0 Loop > LH1 Loop > PER

Administrative Communications Contact

OptionalMax use 5
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)
Min 2Max 2
Optional
String (AN)
Min 1Max 60
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 2048
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 2048
PER-07
365
Communication Number Qualifier
Optional
Identifier (ID)
Min 2Max 2
PER-08
364
Communication Number
Optional
String (AN)
Min 1Max 2048
PER-09
443
Contact Inquiry Reference
Optional
String (AN)
Min 1Max 20
LH1 Loop end
L0 Loop end
L3
3000
Heading > N7 Loop > L3

Total Weight and Charges

OptionalMax use 2
Usage notes
Example
L3-05
58
Amount Charged
Optional
Numeric (N2)
Min 1Max 15
L3-07
117
Prepaid Amount
Optional
Numeric (N2)
Min 1Max 15
L3-08
150
Special Charge or Allowance Code
Optional
Identifier (ID)
Min 3Max 3
Usage notes
N7 Loop end
SE
3100
Heading > 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
Heading 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

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.