Stedi maintains this guide based on public documentation from OOCL. Contact OOCL 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
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
010
Transaction Set Header
Max use 1
Required
ZC1
015
Beginning Segment For Data Correction Or Change
Max use 1
Optional
Q5
016
Status Details
Max use 1
Required
N7 Loop
N7
020
Equipment Details
Max use 1
Required
V4
030
Cargo Location Reference
Max use 1
Optional
DTM
040
Date/Time Reference
Max use 2
Optional
M7
050
Seal Numbers
Max use 5
Optional
W09
060
Equipment and Temperature
Max use 1
Optional
W2
070
Equipment Identification
Max use 1
Optional
NA
080
Cross-Reference Equipment
Max use 30
Optional
GR5
085
Loading Details
Max use 10
Optional
Y7
100
Priority
Max use 1
Optional
V1
110
Vessel Identification
Max use 1
Optional
H3
140
Special Handling Instructions
Max use 6
Required
K1
160
Remarks
Max use 2
Optional
N9
170
Reference Identification
Max use 10
Optional
L3
210
Total Weight and Charges
Max use 2
Optional
SE
220
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)
—
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
—
- 00401
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
—
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
—
- SO
- Ocean Shipment Information (304, 306, 309, 311, 317, 319, 321, 322, 323, 324, 325, 350, 352, 353, 354, 355, 356, 357, 358, 361)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
Q5
016
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
If State or Province Code (Q5-07) is present, then City Name (Q5-06) is required
If either Reference Identification Qualifier (Q5-11) or Reference Identification (Q5-12) is present, then the other is required
If Direction Identifier Code (Q5-13) is present, then Reference Identification (Q5-12) is required
If either Reference Identification Qualifier (Q5-14) or Reference Identification (Q5-15) is present, then the other is required
If Direction Identifier Code (Q5-16) is present, then Reference Identification (Q5-15) is required
—
- AE
- Loaded on Vessel—
- AI
- Shipment Has Been Reconsigned
- AL
- Loaded on Rail
- AO
- Loaded on Barge
- AR
- Rail Arrival at Destination Intermodal Ramp
- CA
- Shipment Cancelled
- D
- Completed Unloading at Delivery Location
- I
- In-Gate—
- L
- Loading
- OA
- Out-Gate—
- RL
- Rail Departure from Origin Intermodal Ramp—
- T
- At Terminal; Intra-Terminal Movement
- UR
- Unloaded from a Rail Car—
- UV
- Unloaded From Vessel—
N7 Loop
RequiredMax 1000
N7
020
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
If either Volume (N7-08) or Volume Unit Qualifier (N7-09) is present, then the other is required
If either Tare Weight (N7-05) or Tare Qualifier Code (N7-16) is present, then the other is required
—
- N
- Not Customer Owned or Leased Not shipper-owned
- S
- Customer Owned or Leased Shipper-owned
- T
- Trip Leased
—
- CC
- Container on Chassis
- CH
- Chassis—
- CN
- Container
- GS
- Genset without container or chassis
—
- HH
- House-to-house
- HP
- House-to-pier
- PH
- Pier-to-house
- PP
- Pier-to-pier
DTM
040
Heading > N7 Loop > DTM
Date/Time Reference
OptionalMax use 2
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-05) is required
If either Date Time Period Format Qualifier (DTM-05) or Date Time Period (DTM-06) is present, then the other is required
—
- 007
- Effective
- 140
- Actual Date of Change
- 152
- Effective Date of Change
W09
060
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
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
W2
070
Heading > N7 Loop > W2
Equipment Identification
OptionalMax use 1
—
Example
If either Date (W2-09) or Type of Locomotive Maintenance Code (W2-10) is present, then the other is required
If either Equipment Initial (W2-11) or Equipment Number (W2-12) is present, then the other is required
—
- AI
- Devanned / Stripped and en route to pool from a consignee
- F
- For Stuff indication
NA
080
Heading > N7 Loop > NA
Cross-Reference Equipment
OptionalMax use 30
—
Example
If Reference Identification Qualifier (NA-01) is present, then Reference Identification (NA-02) is required
—
- D
- Chassis Attached to Container
- F
- Flatcar
- H
- Generator Set
GR5
085
Heading > N7 Loop > GR5
Loading Details
OptionalMax use 10
—
Example
At least one of Surface/Layer/Position Code (GR5-02) or Measurement Value (GR5-03) is required
If either Measurement Value (GR5-03) or Unit or Basis for Measurement Code (GR5-04) is present, then the other is required
Y7
100
Heading > N7 Loop > Y7
Priority
OptionalMax use 1
—
Example
If either Priority Code (Y7-02) or Priority Code Qualifier (Y7-03) is present, then the other is required
V1
110
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
—
- C
- Ship's Radio Call Signal
- L
- Lloyd's Register of Shipping
R4 Loop
RequiredMax 20
R4
120
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)—
- 7
- Destination Rail Intermodal Terminal—
- 8
- First optional port of discharge
- 9
- Second optional port of discharge
- A
- Place of Acceptance (Operational)
- D
- Port of Discharge (Operational)—
- E
- Place of Delivery (Contractual)
- I
- Interim Point (Operational)—
- L
- Port of Loading (Operational)—
- N
- Final Destination (Operational)
- O
- Origin (Operational)
- P
- Dispatching Pool (Operational)
- R
- Place of Receipt (Contractual)
- S
- Return Pool (Operational)
- X
- Third optional port of discharge
—
- CS
- Canadian SPLC
- D
- Census Schedule D
- K
- Census Schedule K
- SL
- SPLC—
- UN
- United Nations Location Code (UNLOCODE)
- ZZ
- Facility code of depot to be supplied by OOCL—
DTM
130
Heading > N7 Loop > R4 Loop > DTM
Date/Time Reference
OptionalMax use 15
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-05) is required
If either Date Time Period Format Qualifier (DTM-05) or Date Time Period (DTM-06) is present, then the other is required
R4 Loop end
H3
140
Heading > N7 Loop > H3
Special Handling Instructions
RequiredMax use 6
—
Example
Only one of Special Handling Code (H3-01) or Special Handling Description (H3-02) may be present
—
- DM
- Domestic
- IP
- Import Shipment Inbound
- XP
- Export Outbound
N1 Loop
RequiredMax 10
N1
150
Heading > N7 Loop > N1 Loop > N1
Name
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
—
- BT
- Bill-to-Party
- CA
- Carrier
- CN
- Consignee
- FW
- Forwarder
- MC
- Motor Carrier
- NP
- Notify Party for Shipper’s Order Notify party
- RR
- Railroad
- SH
- Shipper
- ST
- Ship To For store door deliveries
—
- 2
- Standard Carrier Alpha Code (SCAC)
- 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
- ZZ
- Mutually Defined
N4
156
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
—
- D
- Census Schedule D
- K
- Census Schedule K
- PS
- 5 Digit U.S. ZIP
- UN
- United Nations Location Code (UNLOCODE)
N1 Loop end
N9
170
Heading > N7 Loop > N9
Reference Identification
OptionalMax use 10
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
If Time Code (N9-06) is present, then Time (N9-05) is required
—
- 7W
- Interchange Train Identification
- BM
- Bill of Lading Number
- BN
- Booking Number
- BT
- Batch Number
- CD
- Credit Note Number
- CR
- Customer Reference Number
- CT
- Contract Number
- DR
- Dock Receipt Number
- HS
- Harmonized Code System (Canada)
- HW
- High/Wide File Number
- IT
- Internal Customer Number
- LO
- Load Planning Number
- LW
- Location Within Equipment
- OB
- Ocean Bill of Lading
- ON
- Dealer Order Number—
- OW
- Service Order Number
- P8
- Pickup Reference Number
- RE
- Release Number (empty authorization)
- TI
- TIR Number
- TJ
- Federal Taxpayer's Identification Number
- TN
- Transaction Reference Number
- TT
- Terminal Code
- UT
- Unit Train
- VT
- Motor Vehicle ID Number
- WO
- Work Order Number
- WY
- Waybill Number
- ZB
- Ultimate Consignee
L0 Loop
RequiredMax 999
L0
180
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 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 either Quantity (L0-13) or Yes/No Condition or Response Code (L0-15) 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 Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
L5
190
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
200
Heading > N7 Loop > L0 Loop > H1
Hazardous Material
OptionalMax use 3
—
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
L0 Loop end
L3
210
Heading > N7 Loop > L3
Total Weight and Charges
OptionalMax use 2
—
Example
If either Freight Rate (L3-03) or Rate/Value Qualifier (L3-04) is present, then the other is required
If either Volume (L3-09) or Volume Unit Qualifier (L3-10) is present, then the other is required
If Weight Unit Code (L3-12) is present, then Weight (L3-01) is required
If either Declared Value (L3-14) or Rate/Value Qualifier (L3-15) is present, then the other is required
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.