Stedi maintains this guide based on public documentation from Canadian Pacific. Contact Canadian Pacific for official EDI specifications. To report any errors in this guide, please contact us.
X12 410 Rail Carrier Freight Details and Invoice
—
Delimiters
- ~ Segment
- * Element
- > Component
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
B3B
020
Beginning Segment for Carrier's Invoice
Max use 1
Required
C4
030
Alternate Amount Due
Max use 1
Required
N9
040
Reference Identification
Max use 30
Optional
N8
130
Waybill Reference
Max use 499
Required
F9
140
Origin Station
Max use 1
Required
D9
150
Destination Station
Max use 1
Required
R2
400
Route Information
Max use 13
Required
L3
540
Total Weight and Charges
Max use 1
Required
SE
570
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
—
- IR
- Rail Carrier Freight Details and Invoice (410, 980)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
N9
040
Heading > N9
Reference Identification
OptionalMax use 30
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
—
Usage notes
—
- BM
- Bill of Lading Number
- BN
- Booking Number
- CN
- Carrier's Reference Number (PRO/Invoice)
- CO
- Customer Order Number
- CR
- Customer Reference Number
- MB
- Master Bill of Lading
- PO
- Purchase Order Number
- SI
- Shipper's Identifying Number for Shipment (SID)—
- SO
- Shipper's Order (Invoice Number)
- VG
- Vendor Change Procedure Code
- WO
- Work Order Number—
- ZZ
- Mutually Defined
N7 Loop
RequiredMax >1
N7
050
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
N7 Loop end
N8
130
Heading > N8
Waybill Reference
RequiredMax use 499
—
Example
If either City Name (N8-08) or State or Province Code (N8-09) is present, then the other is required
If either Standard Carrier Alpha Code (N8-10) or Freight Station Accounting Code (N8-11) is present, then the other is required
N1 Loop
RequiredMax >1
N1
160
Heading > 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
—
- 11
- Party to be billed(AAR Accounting Rule 11)
- AE
- Additional Delivery Address
- C1
- In Care Of Party no. 1
- CN
- Consignee
- PF
- Party to Receive Freight Bill
- RI
- Remit To
- SH
- Shipper
- UC
- Ultimate Consignee
N1 Loop end
—
- R
- Origin Carrier, Rule 11 Shipment
- S
- Origin Carrier, Shipper's Routing (Rail)
LX Loop
RequiredMax >1
L5
440
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
RequiredMax >1
L0
460
Heading > LX Loop > L0 Loop > L0
Line Item - Quantity and Weight
RequiredMax use 1
—
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
If Weight Unit Code (L0-11) is present, then Weight (L0-04) is required
L1
470
Heading > LX Loop > L0 Loop > L1
Rate and Charges
RequiredMax use 10
—
Example
If either Freight Rate (L1-02) or Rate/Value Qualifier (L1-03) is present, then the other is required
At least one of Charge (L1-04), Advances (L1-05) or Prepaid Amount (L1-06) is required
—
Usage notes
—
- BLC
- Bill of Lading Charge
- CSE
- Customs Entry
- CUS
- Customs Charge
- ENC
- Energy charge
- FUE
- Fuel Charge
- GST
- Goods and Services Tax Charge
- HST
- Harmonized Sales Tax
- MSG
- Miscellaneous Charge
- PST
- Postage
- QST
- Quebec Sales Tax
- SWC
- Switching Charge
L0 Loop end
LX Loop end
L3
540
Heading > L3
Total Weight and Charges
RequiredMax use 1
—
Example
If either Weight (L3-01) or Weight Qualifier (L3-02) is present, then the other is required
Heading end
EDI Samples
Carload
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231102*0348*U*00401*000000001*0*T*>
GS*IR*SENDERGS*RECEIVERGS*20231102*034807*000000001*X*004010
ST*410*0001
B3B*614700000*PP*20181201*345900*20181215*CPRS*R*614700000***CAD
C4*CAD*345900
N9*CR*04029123
N9*CN*614700000**20181201
N9*BM*04021111**20181126
N7*CP*200123*195000*N*******RR****7300*******F483
N8*501000*20181126******DULUTH RICES POINT*MN*CPRS*00821
F9*60667*PERRY*GA
D9*00821*DULUTH RICES POINT*MN
N1*PF*PAYER OF FREIGHT*25*005202000
N3*2211 RIMLAND DRIVE
N4*BELLINGHAM*WA*98226
N1*SH*SHIPPER NAME
N3*2211 RIMLAND DR
N4*BELLINGHAM*WA*98226
N1*CN*CONSIGNEE NAME
N3*1122 PORT TERMINAL RD
N4*DULUTH*MN*55802
N1*11*RULE 11
N3*2211 RIMLAND DR
N4*BELLINGHAM*WA*98226
N1*RI*CANADIAN PACIFIC RAILWAY COMPANY
N3*8000 COLLECTION CENTER DR
N4*CHICAGO*IL*60693
R2*XX*R***********NS CHGO CPRS
LX*1
L5*1*PKG*2421184*T
L5*1*LUMBER*2421184*T
L0*1***195000*B***4640*UNT**L
L1*1*3300*PC*330000**330000******CHICAGO TO DULRICPT
L1*1*.26*PM*14797**14797**FUE****FUEL SURCHARGE 569.1 MI
PI*TS*0002300*TP**CPRS*CPRS**0000100100
PI*TS*0000001*TP**CPRS*FSC
L3*195000*B***345900**345900
SE*36*0001
GE*1*000000001
IEA*1*000000001
GS*IR*SENDERGS*RECEIVERGS*20231102*034807*000000001*X*004010
ST*410*0001
B3B*614700000*PP*20181201*345900*20181215*CPRS*R*614700000***CAD
C4*CAD*345900
N9*CR*04029123
N9*CN*614700000**20181201
N9*BM*04021111**20181126
N7*CP*200123*195000*N*******RR****7300*******F483
N8*501000*20181126******DULUTH RICES POINT*MN*CPRS*00821
F9*60667*PERRY*GA
D9*00821*DULUTH RICES POINT*MN
N1*PF*PAYER OF FREIGHT*25*005202000
N3*2211 RIMLAND DRIVE
N4*BELLINGHAM*WA*98226
N1*SH*SHIPPER NAME
N3*2211 RIMLAND DR
N4*BELLINGHAM*WA*98226
N1*CN*CONSIGNEE NAME
N3*1122 PORT TERMINAL RD
N4*DULUTH*MN*55802
N1*11*RULE 11
N3*2211 RIMLAND DR
N4*BELLINGHAM*WA*98226
N1*RI*CANADIAN PACIFIC RAILWAY COMPANY
N3*8000 COLLECTION CENTER DR
N4*CHICAGO*IL*60693
R2*XX*R***********NS CHGO CPRS
LX*1
L5*1*PKG*2421184*T
L5*1*LUMBER*2421184*T
L0*1***195000*B***4640*UNT**L
L1*1*3300*PC*330000**330000******CHICAGO TO DULRICPT
L1*1*.26*PM*14797**14797**FUE****FUEL SURCHARGE 569.1 MI
PI*TS*0002300*TP**CPRS*CPRS**0000100100
PI*TS*0000001*TP**CPRS*FSC
L3*195000*B***345900**345900
SE*36*0001
GE*1*000000001
IEA*1*000000001
Intermodal
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231102*0348*U*00401*000000001*0*T*>
GS*IR*SENDERGS*RECEIVERGS*20231102*034817*000000001*X*004010
ST*410*0001
B3B*709900000*PP*20181126*347333*20181211*CPRS*R*709900000***CAD
C4*CAD*347333
N9*VG*R100700000 (CPR)*GST
N9*CN*709900000**20181126
N9*BM*104000123**20181121
N7*CPPU*230000*29940*N*******CN****5300
N5*5300********CN
N8*598088*20181121******CALGARY IMS*AB*CPRS*08204
F9*03409*VAUGHAN IMS*ON
D9*08204*CALGARY IMS*AB
N1*PF*PAYER OF FREIGHT*25*0052020000
N3*1234 AVEBURY RD
N4*MISSISSAUGA*ON*L5R 3M3
N1*SH*SHIPPER NAME
N3*1234 AVEBURY RD
N4*MISSISSAUGA*ON*L5R3M3
N1*CN*CONSIGNEE NAME
N3*1212 10TH AVE NE
N4*CALGARY*AB*T2A2M3
N1*UC*ULTIMATE CONSIGNEE
N3*1212 10TH AVE NE
N4*CALGARY*AB*T2A2M3
N1*AE*DELIVERY LOCATION
N3*1212 10TH AVE NE
N4*CALGARY*AB*T2A2M3
N1*RI*CANADIAN PACIFIC RAILWAY COMPANY
N3*PO BOX 111*CA
N4*WINNIPEG*MB*R3C 2K3
R2*XX*S***20********CPRS
LX*1
L5*1*CNT*4611110*T
L5*1*FAK*4611110*T
L0*1***29940*B***1*UNT**L
L1*1*2775*PC*277500**277500
L1*1*17.25*PW*47869**47869**FUE****FUEL SURCHARGE 17.25%
L1*1***425**425**MSG****AB CARBON SURCHARGE
L1*1***5000**5000**BLC****MANUAL ENTRY OF BOL
L1*1*5*PW*16539**16539**GST****TAX GST FED 5%
PI*CT*503000*TP**CPRS
PI*TS*0000000*TP**CPRS*CPRS
PI*TS*0000001*TP**CPRS*FSC
L3*29940*B***325369*5425*325369
SE*44*0001
GE*1*000000001
IEA*1*000000001
GS*IR*SENDERGS*RECEIVERGS*20231102*034817*000000001*X*004010
ST*410*0001
B3B*709900000*PP*20181126*347333*20181211*CPRS*R*709900000***CAD
C4*CAD*347333
N9*VG*R100700000 (CPR)*GST
N9*CN*709900000**20181126
N9*BM*104000123**20181121
N7*CPPU*230000*29940*N*******CN****5300
N5*5300********CN
N8*598088*20181121******CALGARY IMS*AB*CPRS*08204
F9*03409*VAUGHAN IMS*ON
D9*08204*CALGARY IMS*AB
N1*PF*PAYER OF FREIGHT*25*0052020000
N3*1234 AVEBURY RD
N4*MISSISSAUGA*ON*L5R 3M3
N1*SH*SHIPPER NAME
N3*1234 AVEBURY RD
N4*MISSISSAUGA*ON*L5R3M3
N1*CN*CONSIGNEE NAME
N3*1212 10TH AVE NE
N4*CALGARY*AB*T2A2M3
N1*UC*ULTIMATE CONSIGNEE
N3*1212 10TH AVE NE
N4*CALGARY*AB*T2A2M3
N1*AE*DELIVERY LOCATION
N3*1212 10TH AVE NE
N4*CALGARY*AB*T2A2M3
N1*RI*CANADIAN PACIFIC RAILWAY COMPANY
N3*PO BOX 111*CA
N4*WINNIPEG*MB*R3C 2K3
R2*XX*S***20********CPRS
LX*1
L5*1*CNT*4611110*T
L5*1*FAK*4611110*T
L0*1***29940*B***1*UNT**L
L1*1*2775*PC*277500**277500
L1*1*17.25*PW*47869**47869**FUE****FUEL SURCHARGE 17.25%
L1*1***425**425**MSG****AB CARBON SURCHARGE
L1*1***5000**5000**BLC****MANUAL ENTRY OF BOL
L1*1*5*PW*16539**16539**GST****TAX GST FED 5%
PI*CT*503000*TP**CPRS
PI*TS*0000000*TP**CPRS*CPRS
PI*TS*0000001*TP**CPRS*FSC
L3*29940*B***325369*5425*325369
SE*44*0001
GE*1*000000001
IEA*1*000000001
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.