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 417 Rail Carrier Waybill Interchange (8030)
—
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
ZC1
0200
Beginning Segment for Data Correction or Change
Max use 1
Optional
BX
0300
General Shipment Information
Max use 1
Optional
BNX
0400
Rail Shipment Information
Max use 1
Optional
N9
0500
Extended Reference Information
Max use 30
Optional
DTM
0700
Date/Time Reference
Max use 5
Optional
N8
1800
Waybill Reference
Max use 499
Required
F9
2000
Origin Station
Max use 1
Required
D9
2100
Destination Station
Max use 1
Required
R2
4700
Route Information
Max use 13
Required
SE
8100
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
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
ZC1
0200
Heading > ZC1
Beginning Segment for Data Correction or Change
OptionalMax use 1
—
Usage notes
—
Example
—
- CA
- Cancelled Bill
- CO
- Correction
- D1
- Diversion or Reconsignment
N9
0500
Heading > N9
Extended Reference Information
OptionalMax use 30
—
Usage notes
—
Example
If Time Code (N9-06) is present, then Time (N9-05) is required
DTM
0700
Heading > DTM
Date/Time Reference
OptionalMax use 5
—
Usage notes
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
N7 Loop
RequiredMax >1
N7
0800
Heading > N7 Loop > N7
Equipment Details
RequiredMax use 1
—
Usage notes
—
Example
If either Weight (N7-03) or Weight Qualifier (N7-04) 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
N7 Loop end
N1 Loop
RequiredMax >1
N1
2200
Heading > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Usage notes
—
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
—
- C1
- In Care Of Party no. 1
- CN
- Consignee
- PF
- Party to Receive Freight Bill
- SH
- Shipper
PER
2500
Heading > N1 Loop > PER
Administrative Communications Contact
OptionalMax use 2
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
N1 Loop end
LX Loop
RequiredMax >1
L5
5500
Heading > LX Loop > L5
Description, Marks and Numbers
RequiredMax use 15
—
Usage notes
—
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
—
Usage notes
—
Example
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
L0 Loop end
LX Loop end
Heading end
EDI Samples
sample 1
ISA*00* *00* *02*CN *ZZ*GENERIC *230710*1339*U*00803*006298413*0*P*>
GS*WB*CN*GENERIC*20230710*1336*98826*X*008030
ST*417*988260001
ZC1*1257*CN*123456*111111*20230710*CO*CN*R
BX*00*R*PP*1257*CN*L*B*N****N
BNX*R**S
N9*BM*1257**20230710*1336*ET
DTM*168*20230710*1336*ET
N7*CN*123456*213360*N*66700******RR****6711*M****186*128***C214
M7*12345
N8*111111*20230710
F9*70112*WATSON*SK*****071511*S0K4V0
D9*93390*VANCOUVER*BC*****0093900*V5T1E1
N1*SH*GENERIC CARLOAD INC*C5*1111111111111
N3*123 FIRST ROAD
N4*WATSON*SK*S0K 4V0*CA
PER*IC*CONTACT NAME*TE*123-123-1234
N1*CN*GENERIC CONSIGNEE CO*C5*2222222222222
N3*12 SMITH STREET
N4*VANCOUVER*BC*V5K 1P7*CA
N1*PF*GENERIC CARLOAD INC*C5*1111111111111
N3*123 FIRST ROAD
N4*WATSON*SK*S0K 4V0*CA
R2*CN*S****R
LX*1
L5*1*WALLBOARD*3275440*T
L0*1***213360*N***1*CLD
SE*26*988260001
GE*1*98826
IEA*1*006298413
GS*WB*CN*GENERIC*20230710*1336*98826*X*008030
ST*417*988260001
ZC1*1257*CN*123456*111111*20230710*CO*CN*R
BX*00*R*PP*1257*CN*L*B*N****N
BNX*R**S
N9*BM*1257**20230710*1336*ET
DTM*168*20230710*1336*ET
N7*CN*123456*213360*N*66700******RR****6711*M****186*128***C214
M7*12345
N8*111111*20230710
F9*70112*WATSON*SK*****071511*S0K4V0
D9*93390*VANCOUVER*BC*****0093900*V5T1E1
N1*SH*GENERIC CARLOAD INC*C5*1111111111111
N3*123 FIRST ROAD
N4*WATSON*SK*S0K 4V0*CA
PER*IC*CONTACT NAME*TE*123-123-1234
N1*CN*GENERIC CONSIGNEE CO*C5*2222222222222
N3*12 SMITH STREET
N4*VANCOUVER*BC*V5K 1P7*CA
N1*PF*GENERIC CARLOAD INC*C5*1111111111111
N3*123 FIRST ROAD
N4*WATSON*SK*S0K 4V0*CA
R2*CN*S****R
LX*1
L5*1*WALLBOARD*3275440*T
L0*1***213360*N***1*CLD
SE*26*988260001
GE*1*98826
IEA*1*006298413
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.