
Canadian National Railway (CN Rail) 404 Rail Carrier Shipment Information
Canadian National Railway (CN Rail) · X12 008030
Canadian National Railway (CN Rail)’s published 404 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
32 of 32 segments
HEADING
ST
Transaction Set Header ST
pos 0100
Optional
max —
BX
General Shipment Information BX
Examples:
BX*00*X*PP*1234*CN*K*B
BX*00*X*PP*1234*CN*K*B*N
pos 0300
Optional
max —
BNX
Rail Shipment Information BNX
Example: BNX*N**S
pos 0400
Optional
max —
M3
Release M3
Indicates whether shipment is to be released for movement when the transmission is received or will be released through other means.
Example: M3*R*20231116*1454
pos 0500
Required
max —
N9
Extended Reference Information Bill of Lading Numbervariant 1 of 2
Allows Reference Numbers to be sent to CN. At least one N9 containing a Bill of Lading number must be included. This number will be included on all other documents such as Freight Invoice and Remittance/Payment.
Example: N9*BM*1234**20231116*1454
pos 0600
Required
max 30
N9
Extended Reference Information Purchase Order Numbervariant 2 of 2
Allows Reference Numbers to be sent to CN. At least one N9 containing a Bill of Lading number must be included. This number will be included on all other documents such as Freight Invoice and Remittance/Payment.
Examples:
N9*PO*12345**20231116*1454
N9*PO*12345**2031116*1454
pos 0600
Optional
max —
N7 Looprepeats 500required
N7
Equipment Details N7
Example: N7*CNRU*222111*20000*A3*******CN****4000
pos 1000
Required
max —
M7
Seal Numbers M7
Example: M7*123456
pos 1300
Optional
max 5
F9
Origin Station F9
Indicates the origin of the shipment, the point from which it is shipped. Spelling should be in accordance with that listed in the Standard Point Location Code (SPLC) standard available from the National Motor Freight Tariff Association (USA) or the National Transportation Agency (Canada). CN Intermodal terminal listing can be found at end of this document.
Examples:
F9**MONTREAL TASCH YARD*PQ
F9**MONTREAL*PQ
F9** BRAMPTON INTER TER*ON
F9**TORONTO*ON
pos 1900
Required
max —
D9
Destination Station D9
Indicates the destination of the shipment, the point at which it will be unloaded or where the transportation responsibility reverts to the consignee. Spelling should be in accordance with that listed in the Standard Point Location Code (SPLC) standard available from the National Motor Freight Tariff Association (USA) or the National Transportation Agency (Canada). CN Intermodal terminal listing can be found at end of this document.
Examples:
D9**BRAMPTON INTER TER*ON
D9**CALGARY*AB
D9** MONTREAL TASCH YARD*PQ
D9**MONTREAL*PQ
pos 2000
Required
max —
N1 Looprepeats 15required
N1
Party Identification N1
Associated to the N3 and N4 segments below. N1, N3 and N4 segments are repeated for the Consignee and any other Additional Parties to the shipment.
Examples:
N1*SH*INTERMODAL SHIPPER INC
N3*123 MAIN ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL CONSIGNEE INC
N3*12 SMITH STREET
N4*TORONTO*ON*M9W 1R6
N1*N1*INTERMODAL SHIPPER INC
N1*SH*INTERMODAL SHIPPER INC
N3*123 MAIN ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL CONSIGNEE INC
N3*123 SMITH STREET
N4*CALGARY*AB*T2G 5S2
N1*N1*INTERMODAL SHIPPER INC
N1*SH*INTERMODAL SHIPPER INC
N3*123 MAIN ROAD
N4*TORONTO*ON
N1*CN*INTERMODAL CONSIGNEE INC
N3*12 SMITH STREET
N4*MONTREAL*PQ
N1*N1*INTERMODAL CONSIGNEE INC
N4*MONTREAL*PQ
pos 2100
Required
max —
N3
Party Location N3
pos 2200
Optional
max 2
N4
Geographic Location N4
pos 2300
Optional
max —
S1 Looprepeats 12
S1
Stop Off Name S1
Example:
S1*1*ABCD CO****P
S2*1*123 MAIN ST
S9*1**CALGARY*AB**PU
pos 4300
Required
max —
S2
Stop Off Address S2
pos 4400
Optional
max 2
S9
Stop Off Station S9
pos 4480
Optional
max —
R2
Route Information R2
One R2 segment for each railroad in the route. CN can provide route information for your shipments (i.e.: Railroad SCAC's and junctions).
Examples:
R2*CN*S***25
R2*CN*S***20
pos 4600
Required
max 13
LX Looprepeats 25required
LX
Transaction Set Line Number LX
Examples:
LX*1
LX*2
LX*3
pos 5400
Required
max —
L5
Description Marks And Numbers L5
CN can provide Standard Transportation Commodity Codes (STCC) for your commodities. The commodity code is required only on the first L5 segment. Additional L5 segments can be used to provide additional description of lading.
Examples:
L5*1*FAK*4611110*T
L5*1* FREIGHT ALL KINDS, (FAK)*4611110*T
L5*2*DELY: 1 # PCS: 511 WEIGHT: 5000 KGS
L5*3*DELY: 2 # PCS: 1227 WEIGHT: 15000 KGS
L5*1*FAK-HAZARDOUS GOODS*4950150*T
pos 5500
Required
max 15
L0 Looprepeats 25
L0
Line Item Quantity And Weight L0
Examples:
L0*1***20000*N***600*PCS**K
L0*1***20000*N***1738*CAS
L0*1***20000*N***200*PCS**L
pos 5700
Required
max —
LH1 Looprepeats 1000
LH1
Hazardous Identification Information LH1
Example: LH1*PC*19*UN3481**4966481*KG*470
pos 6800
Required
max —
LH2
Hazardous Classification Information LH2
Example: LH2*9*P
pos 6900
Optional
max 4
LH3
Hazardous Material Shipping Name Information LH3
Example: LH3*LITHIUM ION BATTERIES*C
pos 7000
Optional
max 10
PER
Administrative Communications Contact PER
Example:
PER*CN*offeror company name or contract number*TE*1-613-996-6666
pos 7550
Optional
max 5
N1 LoopN1 Loop Consigneevariant 1 of 2
N1
Party Identification N1
Used to identify the Canadian ‘consignor’ (‘SH’ shipper or ‘CN’ consignee) as required by Transport Canada regulations (TDG 3.5 (1)(a)).
pos 7560
Required
max —
N3
Party Location N3
pos 7570
Optional
max 2
N4
Geographic Location N4
pos 7580
Optional
max —
N1 LoopN1 Loop Shippervariant 2 of 2repeats 10
N1
Party Identification N1
Used to identify the Canadian ‘consignor’ (‘SH’ shipper or ‘CN’ consignee) as required by Transport Canada regulations (TDG 3.5 (1)(a)).
Example:
N1*SH*INTERMODAL SHIPPER INC
N3*123 MAIN ROAD
N4*TORONTO*ON
pos 7560
Required
max —
N3
Party Location N3
pos 7570
Optional
max 2
N4
Geographic Location N4
pos 7580
Optional
max —
LH6
Hazardous Certification LH6
Provides the name of the person who prepared, and certifies to its accuracy, the documentation of the regulated commodity.
Example: LH6*JOHN Q SHIPPER
pos 8000
Optional
max 5
SE
Transaction Set Trailer SE
pos 8400
Optional
max —
Validate your 404
Paste or upload a document and check it against Canadian National Railway (CN Rail)’s published rules — segment order and repetition, required elements, field lengths, data types and accepted codes. Nothing is stored.
Go live on Canadian National Railway (CN Rail)’s 404 in days, not months
Connect this guide to your accounting system and test with Canadian National Railway (CN Rail) yourself, or leave the mapping and the test cycle to us, at no extra charge.