Stedi maintains this guide based on public documentation from Canadian National Railway (CN Rail). Contact Canadian National Railway (CN Rail) for official EDI specifications. To report any errors in this guide, please contact us.
X12 404 Intermodal Shipper Rail Carrier Shipment Information
—
Delimiters
- Segment
- * Element
- > Component
- ^ Repetition
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
BX
0300
General Shipment Information
Max use 1
Required
BNX
0400
Rail Shipment Information
Max use 1
Required
M3
0500
Release
Max use 1
Required
N9
0600
Extended Reference Information
Max use 30
Required
F9
1900
Origin Station
Max use 1
Required
D9
2000
Destination Station
Max use 1
Required
R2
4600
Route Information
Max use 13
Required
H3
5200
Special Handling Instructions
Max use 20
Optional
LS
6700
Loop Header
Max use 1
Optional
LH1 Loop
LH1
6800
Hazardous Identification Information
Max use 1
Required
LH2
6900
Hazardous Classification Information
Max use 4
Optional
LH3
7000
Hazardous Material Shipping Name Information
Max use 10
Optional
LH4
7300
Canadian Dangerous Requirements
Max use 4
Optional
PER
7550
Administrative Communications Contact
Max use 5
Optional
LE
7600
Loop Trailer
Max use 1
Optional
LH6
8000
Hazardous Certification
Max use 5
Optional
SE
8400
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)
—
- 00701
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2013
—
- 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
—
- SR
- Rail Carrier Shipment Information (404, 419)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
—
- 30
- Proforma with Broker Port of Exit/B13 Not Required
—
- BM
- Bill of Lading Number
- FRC
- U.S. Customs and Border Protection (CBP) Facility Information Resource Management System (FIRMS) CODE
- HS
- Harmonized Code System (Canada)
- PO
- Purchase Order Number
N7 Loop
RequiredMax >1
—
- CN
- Container
- TL
- Trailer (not otherwise specified)
REF Loop
OptionalMax >1
N10
1780
Heading > N7 Loop > REF Loop > N10
Quantity and Description
RequiredMax use 1
—
Example
If either Weight Unit Code (N10-07) or Weight (N10-08) is present, then the other is required
REF Loop end
N7 Loop end
N1 Loop
RequiredMax >1
N1 Loop end
S1 Loop
OptionalMax >1
S1 Loop end
LX Loop
RequiredMax >1
L5
5500
Heading > LX Loop > L5
Description, Marks and Numbers
RequiredMax use 15
—
Example
If either Commodity Code (L5-03) or Commodity Code Qualifier (L5-04) is present, then the other is required
L0 Loop
OptionalMax >1
L0
5700
Heading > LX Loop > L0 Loop > L0
Line Item - Quantity and Weight
RequiredMax use 1
—
Example
If Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
If either Weight (L0-04) or Weight Qualifier (L0-05) 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
PI Loop
OptionalMax >1
PI
5900
Heading > LX Loop > L0 Loop > PI Loop > PI
Price Authority Identification
RequiredMax use 1
—
Example
PI Loop end
L0 Loop end
LX Loop end
LH1 Loop
OptionalMax >1
LH1
6800
Heading > 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
LH3
7000
Heading > LH1 Loop > LH3
Hazardous Material Shipping Name Information
OptionalMax use 10
—
Example
If either Hazardous Material Shipping Name (LH3-01) or Hazardous Material Shipping Name Qualifier (LH3-02) is present, then the other is required
N1 Loop
OptionalMax >1
N1 Loop end
LH1 Loop end
Heading end
EDI Samples
CN_404_1.txt
ISA*00* *00* *02*GENERIC *02*CN *180116*1454*U*00701*000054913*0*P*^
GS*SR*INTERMSHIP*CN*20180116*1454*0092*X*007010
ST*404*00920001
BX*00*X*PP**CN*K*B
BNX*N**S
M3*R*20180116*1454
N9*BM*495033230**20180116*1454
N9*PO*445927**20180116*1454
N7*CNRU*220411*0020000*A3*******CN****4800
F9**MONTREAL TASCH YARD*PQ
D9**BRAMPTON INTER TER*ON
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*TORONTO*ON*M9W 1R6
N1*N1*INTERMODAL SHIPPER INC
R2*CN*S***25*X
H3*SLC
LX*1
L5*1*FAK*4611110*T
L0*1***0020000*N***0000600*PCS**K
PI*CT*C-05555
SE*23*00920001
GE*1*0092
IEA*1*000054913
GS*SR*INTERMSHIP*CN*20180116*1454*0092*X*007010
ST*404*00920001
BX*00*X*PP**CN*K*B
BNX*N**S
M3*R*20180116*1454
N9*BM*495033230**20180116*1454
N9*PO*445927**20180116*1454
N7*CNRU*220411*0020000*A3*******CN****4800
F9**MONTREAL TASCH YARD*PQ
D9**BRAMPTON INTER TER*ON
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*TORONTO*ON*M9W 1R6
N1*N1*INTERMODAL SHIPPER INC
R2*CN*S***25*X
H3*SLC
LX*1
L5*1*FAK*4611110*T
L0*1***0020000*N***0000600*PCS**K
PI*CT*C-05555
SE*23*00920001
GE*1*0092
IEA*1*000054913
CN_404_2.txt
ISA*00* *00* *02*GENERIC *02*CN *180116*1454*U*00701*000054913*0*P*^
GS*SR*INTERMSHIP*CN*20180116*0040*00001*X*007010
ST*404*00001
BX*00*X*PP**CN*L*B****30**2
BNX*N**S
M3*R*20180116*1454
N9*BM*12050853**20180116*1454
N9*PO*445927**20180116*1454
N7*ABCU*627464*13887*N*******CN****4000
M7*961766
F9**MONTREAL TASCH YAR*PQ
D9**CHICAGO INTER TERM*IL
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*CHICAGO*IL*12345
N1*XU*BROKER NAME INC
N3*123 ROAD
N4*PORT HURON*MI*12345
N1*N1*INTERMODAL SHIPPER
N4*CHICAGO*IL*12345
N1*UC*MACHINE SERVICES
N3*745 DILLON DRIVE
N4*WOOD DALE*IL*12345
N1*BN*SMITH MACHINE INC
N3*ONE STATION GATE
N4*ROMFORD*ON*M9W 1R6
R2*CN*S***15*X
H3*SLC
LX*1
L5*1*VARIABLE SPEED DRIVES*3599990*T
L0*1***13887*N***530*PCS**L
PI*CT*112112
SE*34*00001
GE*1*00001
IEA*1*000054913
GS*SR*INTERMSHIP*CN*20180116*0040*00001*X*007010
ST*404*00001
BX*00*X*PP**CN*L*B****30**2
BNX*N**S
M3*R*20180116*1454
N9*BM*12050853**20180116*1454
N9*PO*445927**20180116*1454
N7*ABCU*627464*13887*N*******CN****4000
M7*961766
F9**MONTREAL TASCH YAR*PQ
D9**CHICAGO INTER TERM*IL
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*CHICAGO*IL*12345
N1*XU*BROKER NAME INC
N3*123 ROAD
N4*PORT HURON*MI*12345
N1*N1*INTERMODAL SHIPPER
N4*CHICAGO*IL*12345
N1*UC*MACHINE SERVICES
N3*745 DILLON DRIVE
N4*WOOD DALE*IL*12345
N1*BN*SMITH MACHINE INC
N3*ONE STATION GATE
N4*ROMFORD*ON*M9W 1R6
R2*CN*S***15*X
H3*SLC
LX*1
L5*1*VARIABLE SPEED DRIVES*3599990*T
L0*1***13887*N***530*PCS**L
PI*CT*112112
SE*34*00001
GE*1*00001
IEA*1*000054913
CN_404_3.txt
ISA*00* *00* *02*GENERIC *02*CN *180116*1454*U*00701*000054913*0*P*^
GS*SR*INTERMSHIP*CN*20180116*0040*00001*X*007010
ST*404*00001
BX*00*X*PP**CN*L*B****30**2
BNX*N**S
M3*R*20180116*1454
N9*BM*12050853**20180116*1454
N9*PO*445927**20180116*1454
N9*HS*123456
N9*FRC*A123
N7*ABCU*627464*13887*N*******CN****4000
M7*961766
M12*61**1234***********A123
N10*18***J*382490*405707*****BE**USD
F9**MONTREAL TASCH YAR*PQ
D9**CHICAGO INTER TERM*IL
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*CHICAGO*IL*12345
N1*XU*BROKER NAME INC
N3*123 ROAD
N4*PORT HURON*MI*12345
N1*N1*INTERMODAL SHIPPER
N4*CHICAGO*IL*12345
N1*UC*MACHINE SERVICES
N3*745 DILLON DRIVE
N4*WOOD DALE*IL*12345
N1*BN*SMITH MACHINE INC
N3*ONE STATION GATE
N4*ROMFORD*ON*M9W 1R6
R2*CN*S***15*X
H3*SLC
LX*1
L5*1*VARIABLE SPEED DRIVES*3599990*T
L0*1***13887*N***530*PCS**L
PI*CT*112112
SE*38*00001
GE*1*00001
IEA*1*000054913
GS*SR*INTERMSHIP*CN*20180116*0040*00001*X*007010
ST*404*00001
BX*00*X*PP**CN*L*B****30**2
BNX*N**S
M3*R*20180116*1454
N9*BM*12050853**20180116*1454
N9*PO*445927**20180116*1454
N9*HS*123456
N9*FRC*A123
N7*ABCU*627464*13887*N*******CN****4000
M7*961766
M12*61**1234***********A123
N10*18***J*382490*405707*****BE**USD
F9**MONTREAL TASCH YAR*PQ
D9**CHICAGO INTER TERM*IL
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*CHICAGO*IL*12345
N1*XU*BROKER NAME INC
N3*123 ROAD
N4*PORT HURON*MI*12345
N1*N1*INTERMODAL SHIPPER
N4*CHICAGO*IL*12345
N1*UC*MACHINE SERVICES
N3*745 DILLON DRIVE
N4*WOOD DALE*IL*12345
N1*BN*SMITH MACHINE INC
N3*ONE STATION GATE
N4*ROMFORD*ON*M9W 1R6
R2*CN*S***15*X
H3*SLC
LX*1
L5*1*VARIABLE SPEED DRIVES*3599990*T
L0*1***13887*N***530*PCS**L
PI*CT*112112
SE*38*00001
GE*1*00001
IEA*1*000054913
CN_404_4.txt
ISA*00* *00* *02*GENERIC *02*CN *180116*1454*U*00701*000054913*0*P*^
GS*SR*INTERMSHIP*CN*20180116*1454*0092*X*007010
ST*404*00920001
BX*00*X*PP**CN*K*B
BNX*M**S
M3*R*20130125*0728
N9*BM*495033230**20180116*1454
N9*PO*445927**20180116*1454
N7*ABCU*620411*0020000*A3*******CN****4000
F9**BRAMPTON INTER TER*ON
D9**MONTREAL TASCH YARD*PQ
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*TORONTO*ON
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*MONTREAL*PQ
N1*N1*INTERMODAL SHIPPER INC
N4*MONTREAL*PQ
R2*CN*S***15*X
H3*SLC
LX*1
L5*1*FAK-HAZARDOUS GOODS*4950150*T
L0*1***20000*N***200*PCS**L
PI*CT*C-05555
LS*LH1
LH1*BX*42*UN2211**4941144*KG*470***III
LH2*9.1*P
LH3*POLYMERIC BEADS,*C
LH3*EXPANDABLE*C
LH3*POLYMERIC BEADS,*D
LH3*EXPANDABLE*D
LH4***III
PER*HM*service provider offerer or contract number*TE*1-613-996-6666
N1*SH*Canadian hazardous materials consignor
N3*165 HARWOOD AVENUE NORTH
N4*AJAX*ON*L1Z1L9
N1*CN*Canadian hazardous materials consignor
N3*5685 RUE CYPIHOT
N4*ST LAURENT*PQ*H4S 1R3
LE*LH1
LH6*JOHN Q. SHIPPER
SE*41*00920001
GE*1*0092
IEA*1*000054913
GS*SR*INTERMSHIP*CN*20180116*1454*0092*X*007010
ST*404*00920001
BX*00*X*PP**CN*K*B
BNX*M**S
M3*R*20130125*0728
N9*BM*495033230**20180116*1454
N9*PO*445927**20180116*1454
N7*ABCU*620411*0020000*A3*******CN****4000
F9**BRAMPTON INTER TER*ON
D9**MONTREAL TASCH YARD*PQ
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*TORONTO*ON
N1*CN*INTERMODAL SHIPPER INC
N3*12 SMITH STREET
N4*MONTREAL*PQ
N1*N1*INTERMODAL SHIPPER INC
N4*MONTREAL*PQ
R2*CN*S***15*X
H3*SLC
LX*1
L5*1*FAK-HAZARDOUS GOODS*4950150*T
L0*1***20000*N***200*PCS**L
PI*CT*C-05555
LS*LH1
LH1*BX*42*UN2211**4941144*KG*470***III
LH2*9.1*P
LH3*POLYMERIC BEADS,*C
LH3*EXPANDABLE*C
LH3*POLYMERIC BEADS,*D
LH3*EXPANDABLE*D
LH4***III
PER*HM*service provider offerer or contract number*TE*1-613-996-6666
N1*SH*Canadian hazardous materials consignor
N3*165 HARWOOD AVENUE NORTH
N4*AJAX*ON*L1Z1L9
N1*CN*Canadian hazardous materials consignor
N3*5685 RUE CYPIHOT
N4*ST LAURENT*PQ*H4S 1R3
LE*LH1
LH6*JOHN Q. SHIPPER
SE*41*00920001
GE*1*0092
IEA*1*000054913
CN_404_5.txt
ISA*00* *00* *02*GENERIC *02*CN *180116*1454*U*00701*000054913*0*P*^
GS*SR*INTERMSHIP*CN*20180116*1454*0092*X*007010
ST*404*00920001
BX*00*X*PP**CN*K*B
BNX*N**S
M3*R*20180116*1454
N9*BM*495033230**20180116*1454
N9*PO*445927**20180116*1454
N7*CNRU*220411*22162*A3*******CN****4800
F9**MONTREAL*PQ
D9**CALGARY*AB
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*123 SMITH STREET
N4*CALGARY*AB* T2G 5S2
N1*N1*INTERMODAL SHIPPER INC
S1*1*Intermodal first delivery****A
S2*1*8030 EXQUESING LINE
S9*1**CALGARY*AB**PU
R2*CN*S***20*X
LX*1
L5*1*FAK*4611110*T
L0*1***22162*N***1738*CAS
LX*2
L5*2*DELY: 1 # PCS: 511 WEIGHT: 8453 POUNDS
L0*1***22162*N***1738*CAS
PI*CT*C-05555
LX*3
L5*3*DELY: 2 # PCS: 1227 WEIGHT: 13709 POUNDS
SE*30*00920001
GE*1*0092
IEA*1*000054913
GS*SR*INTERMSHIP*CN*20180116*1454*0092*X*007010
ST*404*00920001
BX*00*X*PP**CN*K*B
BNX*N**S
M3*R*20180116*1454
N9*BM*495033230**20180116*1454
N9*PO*445927**20180116*1454
N7*CNRU*220411*22162*A3*******CN****4800
F9**MONTREAL*PQ
D9**CALGARY*AB
N1*SH*INTERMODAL SHIPPER INC
N3*123 ROAD
N4*MONTREAL*PQ*H4T 1T1
N1*CN*INTERMODAL SHIPPER INC
N3*123 SMITH STREET
N4*CALGARY*AB* T2G 5S2
N1*N1*INTERMODAL SHIPPER INC
S1*1*Intermodal first delivery****A
S2*1*8030 EXQUESING LINE
S9*1**CALGARY*AB**PU
R2*CN*S***20*X
LX*1
L5*1*FAK*4611110*T
L0*1***22162*N***1738*CAS
LX*2
L5*2*DELY: 1 # PCS: 511 WEIGHT: 8453 POUNDS
L0*1***22162*N***1738*CAS
PI*CT*C-05555
LX*3
L5*3*DELY: 2 # PCS: 1227 WEIGHT: 13709 POUNDS
SE*30*00920001
GE*1*0092
IEA*1*000054913
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.