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 404 Rail Carrier Shipment Information (Carload)
—
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
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
DTM
0900
Date/Time Reference
Max use 5
Optional
N7 Loop
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
PS
5300
Protective Service Instructions
Max use 5
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
LFH
7100
Free-form Hazardous Material Information
Max use 20
Optional
LEP
7200
EPA Required Data
Max use 3
Optional
LH4
7300
Canadian Dangerous Requirements
Max use 4
Optional
LHT
7400
Transborder Hazardous Requirements
Max use 3
Optional
LHR
7500
Hazardous Material Identifying Reference Numbers
Max use 5
Optional
PER
7550
Administrative Communications Contact
Max use 5
Optional
LE
7600
Loop Trailer
Max use 1
Optional
PER
7700
Administrative Communications Contact
Max use 5
Optional
LH2
7800
Hazardous Classification Information
Max use 6
Optional
LHR
7900
Hazardous Material Identifying Reference Numbers
Max use 1
Optional
LH6
8000
Hazardous Certification
Max use 5
Optional
XH
8100
Pro Forma - B13 Information
Max use 1
Optional
X7
8200
Customs Information
Max use 10
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
ZC1
0200
Heading > ZC1
Beginning Segment for Data Correction or Change
OptionalMax use 1
—
Usage notes
—
Example
—
- 11
- Rule 11 Shipment
- CC
- Collect
- NC
- Service Freight, No Charge
- NR
- Non Revenue
- PP
- Prepaid (by Seller)
—
- 1
- Master Bill for Empty Non-Revenue Equipment
- B
- Bill of Lading for Individual Shipment
- E
- Empty Equipment Billing (Non-Revenue)
- M
- Master Bill of Lading for Assembly, Distribution and Volume Shipment—
- S
- Submaster Bill of Lading for Volume Shipment—
- W
- Revenue Empty
—
- A
- Shipper's Weight Agreement
- M
- Manifest Weight
- N
- No Wt. Req., Ship. Moving on Contract or per car rate
- O
- Official Weight
- R
- Carrier Scale Weight
- S
- Shipper Certified Scale Weights
- T
- Tariff Authorized Weight
M3
0500
Heading > M3
Release
RequiredMax use 1
—
Usage notes
—
Example
At least one of Date (M3-02) or Time (M3-03) is required
If Time Code (M3-04) is present, then Time (M3-03) is required
N9
0600
Heading > N9
Extended Reference Information
RequiredMax use 30
—
Example
If Time Code (N9-06) is present, then Time (N9-05) is required
—
Usage notes
—
- 2K
- Food and Drug Administration (FDA) Product Type
- 09
- Customs Bar Code Number
- BL
- Government Bill of Lading
- BM
- Bill of Lading Number
- BN
- Booking Number
- CED
- Canada Border Services Agency (CBSA) Export Declaration Number
- CG
- Consignee's Order Number
- CN
- Carrier's Reference Number (PRO/Invoice)
- CO
- Customer Order Number
- CR
- Customer Reference Number
- CT
- Contract Number
- EB
- Embargo Permit Number
- ED
- Export Declaration
- EN
- Embargo Number
- EP
- Export Permit Number
- GB
- Grain Block Number
- GR
- Grain Order Reference Number
- GT
- Goods and Service Tax Registration Number
- HS
- Harmonized Code System (Canada)
- IB
- In Bond Number
- IL
- Internal Order Number
- ITN
- Census Internal Transaction Number (ITN)
- MB
- Master Bill of Lading
- PN
- Permit Number
- PO
- Purchase Order Number
- SI
- Shipper's Identifying Number for Shipment (SID)—
- SO
- Shipper's Order (Invoice Number)
- UT
- Unit Train
- WO
- Work Order Number—
- ZZ
- Mutually Defined
DTM
0900
Heading > DTM
Date/Time Reference
OptionalMax use 5
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-05) is required
If either Date Time Period Format Qualifier (DTM-05) or Date Time Period (DTM-06) is present, then the other is required
N7 Loop
RequiredMax >1
N7
1000
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 Tare Weight (N7-05) or Tare Qualifier Code (N7-16) is present, then the other is required
—
- A3
- Shippers Weight
- E
- Estimated Net Weight
- G
- Gross Weight
- N
- Actual Net Weight
—
Usage notes
—
- BG
- Bogie
- CA
- Caboose
- ID
- Idler Car
- OT
- Open-top/flatbed trailer
- RR
- Rail Car
- SK
- Stack Car
- TK
- Trailer, Tank (Food Grade-Liquid)
- TN
- Tank Car
VC Loop
OptionalMax >1
N1 Loop
OptionalMax >1
N1
1120
Heading > N7 Loop > VC Loop > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Usage notes
—
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- CN
- Consignee
- N1
- Notify Party no. 1
- OW
- Owner of Property or Unit
- PF
- Party to Receive Freight Bill
- UC
- Ultimate Consignee
H3
1180
Heading > N7 Loop > VC Loop > N1 Loop > H3
Special Handling Instructions
OptionalMax use 1
—
Usage notes
—
Example
N1 Loop end
VC Loop end
M12
1700
Heading > N7 Loop > M12
In-bond Identifying Information
OptionalMax use 2
—
Usage notes
—
Example
Only one of Customs Entry Number (M12-02) or In-bond Control Number (M12-06) may be present
If In-bond Control Number (M12-06) is present, then Reference Identification Qualifier (M12-08) is required
If either Reference Identification Qualifier (M12-08) or Reference Identification (M12-09) is present, then the other is required
If either Transportation Method/Type Code (M12-10) or Vessel Name (M12-11) is present, then the other is required
—
- 61
- Immediate Transportation—
- 62
- Transportation Exportation—
- 63
- Immediate Exportation—
- 69
- Transit—
- 70
- Multi-Transit—
- A2
- Rail In-bond - No Carrier Remanifest—
- A6
- Ocean In-bond - No Carrier Remanifest—
- A8
- Truck In-bond - Carrier Remanifest—
- DP
- Duty Paid - Cleared Customs—
—
- BI
- Bonded Carrier Internal Revenue Service Identification Number—
- S4
- Shippers Bond Number—
- XC
- Cargo Control Number—
GA
1750
Heading > N7 Loop > GA
Canadian Grain Information
OptionalMax use 15
—
Usage notes
—
Example
If either Reference Identification Qualifier (GA-04) or Reference Identification (GA-05) is present, then the other is required
If either Location Identifier (GA-14) or State or Province Code (GA-15) is present, then the other is required
If either Percent Qualifier (GA-16) or Percentage as Decimal (GA-17) is present, then the other is required
—
- BO
- Bin Location Number
- CW
- Canadian Wheat Board Permit Number
- DK
- Dock Number—
- EP
- Export Permit Number
- GB
- Grain Block Number
- GR
- Grain Order Reference Number
- OH
- Origin House—
- PN
- Permit Number
- RB
- Rate code number—
- RN
- Run Number—
- XO
- Sample Number—
- ZT
- Milling in Transit
—
- SD
- Moisture Content
- SE
- Protein Content
- SF
- Percent Dockage—
- SG
- Test Weight—
N7 Loop end
N1 Loop
RequiredMax >1
N1
2100
Heading > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Usage notes
—
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
Usage notes
—
- 11
- Party to be billed(AAR Accounting Rule 11)—
- BN
- Beneficial Owner
- C1
- In Care Of Party no. 1
- CN
- Consignee
- FW
- Forwarder
- IM
- Importer
- N1
- Notify Party no. 1
- PF
- Party to Receive Freight Bill—
- PU
- Party at Pickup Location
- SH
- Shipper
- UC
- Ultimate Consignee
- XQ
- Canadian Customs Broker
- XR
- Mexican Customs Broker
- XU
- United States Customs Broker
REF
2350
Heading > N1 Loop > REF
Reference Information
OptionalMax use 2
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
PER
2400
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
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
—
- EM
- Electronic Mail
- FX
- Facsimile
- TE
- Telephone
—
- EM
- Electronic Mail
- FX
- Facsimile
- TE
- Telephone
—
- EM
- Electronic Mail
- FX
- Facsimile
- TE
- Telephone
BL
2520
Heading > N1 Loop > BL
Billing Information
OptionalMax use 12
—
Example
At least one of Freight Station Accounting Code (BL-02) or City Name (BL-05) is required
If State or Province Code (BL-06) is present, then City Name (BL-05) is required
At least one of Freight Station Accounting Code (BL-03) or City Name (BL-09) is required
If State or Province Code (BL-10) is present, then City Name (BL-09) is required
N1 Loop end
—
- 1
- 1st Carrier after Origin Carrier
- 2
- 2nd Carrier after Origin Carrier
- 3
- 3rd Carrier after Origin Carrier
- 4
- 4th Carrier after Origin Carrier
- 5
- 5th Carrier after Origin Carrier
- 6
- 6th Carrier after Origin Carrier
- D
- DELY (Delivery Switch Carrier)
- I
- Origin Switch Carrier
- R
- Origin Carrier, Rule 11 Shipment
- S
- Origin Carrier, Shipper's Routing (Rail)
PS
5300
Heading > PS
Protective Service Instructions
OptionalMax use 5
—
Example
If Temperature (PS-04) is present, then Unit or Basis for Measurement Code (PS-03) is required
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
If either Commodity Code Qualifier (L5-08) or Commodity Code (L5-09) is present, then the other is required
—
- 3
- Empty Non-hazardous Last Contained (HMRC) Code
- L
- Last Contained Contents STCC
- T
- Standard Transportation Commodity Code (STCC)
—
- T
- Standard Transportation Commodity Code (STCC)
L0 Loop
RequiredMax >1
L0
5700
Heading > LX Loop > L0 Loop > L0
Line Item - Quantity and Weight
RequiredMax use 1
—
Example
If either Billed/Rated-as Quantity (L0-02) or Billed/Rated-as Qualifier (L0-03) is present, then the other 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
—
Usage notes
—
- DM
- Miles
- GL
- Gallon
- ND
- Cord—
- NP
- Piece
- NU
- Unit—
- NV
- Vehicle
—
Usage notes
—
- A3
- Shippers Weight
- B
- Billed Weight
- C
- Actual Net Repeated for Combination
- E
- Estimated Net Weight
- G
- Gross Weight
- J
- Light Weight
- K
- Clean Out
- M
- Minimum Weight (for rate)
- N
- Actual Net Weight
- O
- Excess Weight Over Maximum
- X
- Maximum Weight (for Rate)
PI Loop
OptionalMax >1
PI
5900
Heading > LX Loop > L0 Loop > PI Loop > PI
Price Authority Identification
RequiredMax use 1
—
Example
—
- CT
- Contract Number
- PR
- Price Quote Number
- TS
- Tariff Number
—
- OP
- Other Publication
- TP
- Tariff Publication
PI Loop end
L0 Loop end
Optional
Identifier (ID)
Min 1Max 2
—
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
—
Usage notes
—
- 1P
- Tank Car
- 16
- 115 Kilogram Drum—
- 17
- 100 Pound Drum—
- 18
- 55 Gallon Drum—
- TK
- Tank
—
- 1
- Brake End
- 2
- 2nd from Brake End
- 3
- 3rd from Brake End
- 4
- 4th from Brake End
- 5
- 5th from Brake End
- 6
- 6th from Brake End
—
- G
- Residue Last Contained Description (Small Means of Containment)
- P
- Residue Last Contained Description (Packages)—
- R
- Residue Last Contained Description (Rail Car)—
LH2
6900
Heading > LH1 Loop > LH2
Hazardous Classification Information
OptionalMax use 4
—
Example
If either Unit or Basis for Measurement Code (LH2-06) or Temperature (LH2-07) is present, then the other is required
If either Unit or Basis for Measurement Code (LH2-08) or Temperature (LH2-09) is present, then the other is required
If either Unit or Basis for Measurement Code (LH2-10) or Temperature (LH2-11) is present, then the other is required
If either Weight Unit Code (LH2-12) or Net Explosive Quantity (LH2-13) is present, then the other is required
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
—
- CE
- Centigrade, Celsius
- FA
- Fahrenheit
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
LFH
7100
Heading > LH1 Loop > LFH
Free-form Hazardous Material Information
OptionalMax use 20
—
Example
If either Unit or Basis for Measurement Code (LFH-05) or Quantity (LFH-06) is present, then the other is required
—
Usage notes
—
- ADI
- Additional Descriptive Information Not Required by Regulation but Desired to Accompany the Movement by the Shipper
- CER
- Hazardous Materials Certification
- D13
- "DOT - 113, Do Not Hump or Cut Off Car While in Motion" Declaration
- D20
- "AAR - 204, Do Not Hump or Cut Off Car While in Motion" Declaration
- DRC
- Damaged Car Number
- EQP
- Conveyed Equipment Identification
- FUM
- Fumigation Declaration
- HOT
- Identifies Products in a Heated Molten State
- HZC
- Hazardous Substance Constituents
- INH
- Inhalation Hazard
- LQY
- "Limited Quantity" Declaration
- MOS
- Maximum Operating Speed
- MPI
- Marine Pollutant
- NOD
- Not Odorized Declaration
- PIH
- "Poison - Inhalation Hazard" Declaration
- POI
- "Poison" Declaration
- RAM
- Radioactive Material Data
- TEC
- Technical or Chemical Group Name
- TNM
- Trade Name
- WST
- Waste Declaration
—
Usage notes
—
- A
- Hazard Zone A
- B
- Hazard Zone B
- C
- Hazard Zone C
- D
- Hazard Zone D
—
- 1T
- Terabecquerel
- 4N
- Megabecquerel—
- G4
- Gigabecquerel—
- R2
- Becquerel—
LH4
7300
Heading > LH1 Loop > LH4
Canadian Dangerous Requirements
OptionalMax use 4
—
Example
If either Emergency Response Plan Number (LH4-01) or Communication Number (LH4-02) is present, then the other is required
LHR
7500
Heading > LH1 Loop > LHR
Hazardous Material Identifying Reference Numbers
OptionalMax use 5
—
Example
—
- AH
- Agreement Number
- F3
- Submission Number—
- HA
- Competent Authority
- HD
- Department of Transportation Hazardous Number
- HE
- Hazardous Exemption Number
- MA
- Ship Notice/Manifest Number
- MDN
- Hazardous Waste Manifest Document Number
- PN
- Permit Number
- SO
- Shipper's Order (Invoice Number)
PER
7550
Heading > LH1 Loop > PER
Administrative Communications Contact
OptionalMax use 5
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
—
- CN
- General Contact
- HM
- Hazardous Material Contact
- MX
- Mexican Hazardous Information Contact
N1 Loop
OptionalMax >1
N1
7560
Heading > LH1 Loop > 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
—
- CN
- Consignee
- CT
- Country of Origin
- HW
- Designated Hazardous Waste Facility
- HX
- Transporter of Hazardous Waste
- HZ
- Hazardous Waste Generator
- SH
- Shipper
—
- 38
- Country Code—
- AB
- US Environmental Protection Agency (EPA) Identification Number—
- C5
- Customer Identification File—
PER
7590
Heading > LH1 Loop > N1 Loop > PER
Administrative Communications Contact
OptionalMax use 2
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
N1 Loop end
LH1 Loop end
PER
7700
Heading > PER
Administrative Communications Contact
OptionalMax use 5
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
—
- CN
- General Contact
- HM
- Hazardous Material Contact
- MX
- Mexican Hazardous Information Contact
—
Usage notes
—
- CAD
- Canadian Dollar
- MXP
- Mexican Peso
- USD
- US Dollar
—
- 595
- Proforma Invoice
- FCB
- Freight Charges to Border
- FCD
- Freight Charges to Destination
Heading end
EDI Samples
Sample
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231102*0347*^*00701*000000001*0*T*>
GS*SR*SENDERGS*RECEIVERGS*20231102*034740*000000001*X*007010
ST*404*123456
BX*00*R*PP*0009876543*CPRS*L*B*S
BNX*T**S
M3*R*20181029*1049
N9*BM*0009876543
N7*ABCD*066777*221748*N*******RR
M7*013579
F9**Altona*MB
D9**OGDEN*AB
N1*C1*CARE OF PARTY
N3*1234 ROAD E
N4*OGDEN*AB*T2C 4X9*CA
N1*SH*SHIPPER NAME
N3*101 2nd St
N4*ALTONA*MB*R0G 0B0*CA
N1*CN*CONSIGNEE NAME
N3*4321 ROAD E
N4*OGDEN*AB*T2C 4X9*CA
N1*PF*PAYER OF FREIGHT
N3*101 2nd St
N4*ALTONA*MB*R0G 0B0*CA
R2*CPRS*S
H3*NH
LX*1
L5*1*LUMBER*2421184*T
L0*1***221748*N***35*PKG
PI*CT*123000***CPRS*CPRS
SE*28*123456
GE*1*000000001
IEA*1*000000001
GS*SR*SENDERGS*RECEIVERGS*20231102*034740*000000001*X*007010
ST*404*123456
BX*00*R*PP*0009876543*CPRS*L*B*S
BNX*T**S
M3*R*20181029*1049
N9*BM*0009876543
N7*ABCD*066777*221748*N*******RR
M7*013579
F9**Altona*MB
D9**OGDEN*AB
N1*C1*CARE OF PARTY
N3*1234 ROAD E
N4*OGDEN*AB*T2C 4X9*CA
N1*SH*SHIPPER NAME
N3*101 2nd St
N4*ALTONA*MB*R0G 0B0*CA
N1*CN*CONSIGNEE NAME
N3*4321 ROAD E
N4*OGDEN*AB*T2C 4X9*CA
N1*PF*PAYER OF FREIGHT
N3*101 2nd St
N4*ALTONA*MB*R0G 0B0*CA
R2*CPRS*S
H3*NH
LX*1
L5*1*LUMBER*2421184*T
L0*1***221748*N***35*PKG
PI*CT*123000***CPRS*CPRS
SE*28*123456
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.