
Canadian Pacific 322 Terminal Operations and Intermodal Ramp Activity
Canadian Pacific · X12 004010
The Canadian Pacific 322 is the terminal operations message reporting container gate and yard activity.
Canadian Pacific’s published 322 specification, rendered as an interactive guide. Expand any segment to see its elements, data types, lengths and accepted codes — then validate your own document against it below.
Specification
33 of 33 segments
HEADING
ST
Transaction Set Header ST
pos 010
Optional
max —
Q5
Status Details Q5
pos 016
Required
max —
N7 Looprequired
N7
Equipment Details N7
pos 020
Required
max —
M7
Seal Numbers M7
pos 050
Optional
max 5
W09
Equipment And Temperature W09
pos 060
Optional
max —
W2
Equipment Identification W2
pos 070
Optional
max —
NA
Cross Reference Equipment NA
pos 080
Optional
max 30
V1
Vessel Identification V1
pos 110
Optional
max —
R4 LoopActivity Location (Operational)variant 1 of 5
R4
Activity Location Operational R4
pos 120
Required
max —
R4 LoopDestination Rail Intermodal Terminalvariant 2 of 5required
R4
Port Or Terminal R4
pos 120
Required
max —
DTM
Actual Arrival Datevariant 1 of 3
pos 130
Optional
max 15
DTM
Estimated Arrival Datevariant 2 of 3
pos 130
Optional
max 15
DTM
Expirationvariant 3 of 3
pos 130
Optional
max 15
R4 LoopOrigin Rail Intermodal Terminalvariant 3 of 5required
R4
Port Or Terminal R4
pos 120
Required
max —
DTM
Date Time Reference DTM
pos 130
Optional
max 15
R4 LoopPort of Discharge (Operational)variant 4 of 5
R4
Port Or Terminal R4
pos 120
Required
max —
R4 LoopPort of Loading (Operational)variant 5 of 5
R4
Port Or Terminal R4
pos 120
Required
max —
H3
Special Handling Instructions H3
pos 140
Optional
max 6
N1 LoopConsigneevariant 1 of 3
N1
Name N1
pos 150
Required
max —
N3
Address Information N3
pos 153
Optional
max 2
N4
Geographic Location N4
pos 156
Optional
max —
N1 LoopMotor Carriervariant 2 of 3
N1
Name N1
pos 150
Required
max —
N3
Address Information N3
pos 153
Optional
max 2
N4
Geographic Location N4
pos 156
Optional
max —
N1 LoopShippervariant 3 of 3
N1
Name N1
pos 150
Required
max —
N3
Address Information N3
pos 153
Optional
max 2
N4
Geographic Location N4
pos 156
Optional
max —
K1
Remarks K1
The Dangerous Goods Segment H1 can only be repeated 3 times. For Mixed Hazardous Shipments, if more hazardous lading is present in the shipment that exceeds the maximum number of repetitions of the H1 Segment, the K1 Segment will be used to identify the remaining hazardous UN/NA Numbers included in the Shipment.
pos 160
Optional
max 2
N9
Reference Identification N9
pos 170
Optional
max 10
L0 Loop
L0
Line Item Quantity And Weight L0
pos 180
Required
max —
L5
Description Marks And Numbers L5
pos 190
Optional
max —
H1
Hazardous Material H1
pos 200
Optional
max 3
SE
Transaction Set Trailer SE
pos 220
Optional
max —
Validate your 322
Paste or upload a document and check it against Canadian Pacific’s published rules — segment order and repetition, required elements, field lengths, data types and accepted codes. Nothing is stored.
Go live on Canadian Pacific’s 322 in days, not months
Connect this guide to your accounting system and test with Canadian Pacific yourself, or leave the mapping and the test cycle to us, at no extra charge.