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.
X12 322 Terminal Operations and Intermodal Ramp Activity
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
EDI samples
- None included
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
N9
1700
Extended Reference Information
Max use 30
Optional
L0 Loop
L0
1800
Line Item - Quantity and Weight
Max use 1
Required
L5
1900
Description, Marks and Numbers
Max use 1
Optional
H1
2000
Hazardous Material
Max use 3
Optional
LH1 Loop
LH1
2100
Hazardous Identification Information
Max use 1
Required
LH2
2200
Hazardous Classification Information
Max use 4
Optional
LH3
2300
Hazardous Material Shipping Name Information
Max use 10
Optional
LFH
2400
Free-form Hazardous Material Information
Max use 25
Optional
LEP
2500
EPA Required Data
Max use 3
Optional
LH4
2600
Canadian Dangerous Requirements
Max use 4
Optional
LHT
2700
Transborder Hazardous Requirements
Max use 3
Optional
LHR
2800
Hazardous Material Identifying Reference Numbers
Max use 10
Optional
PER
2900
Administrative Communications Contact
Max use 5
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
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- 00803
- 00803 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2021
—
- 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"
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- SO
- Ocean Shipment Information (304, 311, 317, 319, 322, 323, 324, 325, 326, 361)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
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
—
- 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
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
—
- E
- Estimated Net Weight
- G
- Gross Weight
- N
- Actual Net Weight
—
- 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
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
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
—
- CJ
- Container, Insulated/Ventilated
- CZ
- Refrigerated Container
- TW
- Trailer, Refrigerated
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
—
- 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
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
—
- 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
—
- 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
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
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
—
- 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)
—
- 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 Loop end
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
—
- 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
—
- 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
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
—
Usage notes
—
- CA
- Canada
- MX
- Mexico
- US
- United States of America (the)
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
—
- 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
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
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
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
—
- I
- Intergovernmental Maritime Organization (IMO) Code
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
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
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
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
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
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
LHT
2700
Heading > N7 Loop > L0 Loop > LH1 Loop > LHT
Transborder Hazardous Requirements
OptionalMax use 3
—
Usage notes
—
Example
LHR
2800
Heading > N7 Loop > L0 Loop > LH1 Loop > LHR
Hazardous Material Identifying Reference Numbers
OptionalMax use 10
—
Usage notes
—
Example
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
LH1 Loop end
L0 Loop end
N7 Loop end
Heading end
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.