X12
Inbound

Canadian Pacific Railway X12 404 Rail Carrier Shipment Information

Canadian Pacific Railway
The EDI 404 (Rail Carrier Shipment Information) document is used by Canadian Pacific Railway for electronic data interchange. It enables automated processing and compliance with Canadian Pacific Railway's trading partner requirements.
54segments
9loops
15mandatory

Schema Reference

54 segments · X12 404 Rail Carrier Shipment Information

ISA ISA Interchange Control Header
Mandatory Max: 1
ISA01 Authorization Information Qualifier
M ID 2-2
ISA02 Authorization Information
M AN 10-10
ISA03 Security Information Qualifier
M ID 2-2
ISA04 Security Information
M AN 10-10
ISA05 Interchange ID Qualifier
M ID 2-2
ISA06 Interchange Sender ID
M AN 15-15
ISA07 Interchange ID Qualifier
M ID 2-2
ISA08 Interchange Receiver ID
M AN 15-15
ISA09 Interchange Date
M DT 6-6
ISA10 Interchange Time
M TM 4-4
ISA11 Repetition Separator M MIN 1 MAX 1 ID: I65 Type is not applicable; the repetition separator is a delimiter and not a data element; this field provides the delimiter used to separate repeated occurrences of a simple data element or a composite data structure; this value must be different than the data element separator, component element separator, and the segment terminator ISA12 Interchange Control Version Number Code
M ID 5-5
ISA13 Interchange Control Number
M N0 9-9
ISA14 Acknowledgment Requested Code
M ID 1-1
ISA15 Interchange Usage Indicator Code
M ID 1-1
GS GS Functional Group Header
Mandatory Max: 1
GS01 Functional Identifier Code
M ID 2-2
GS02 Application Sender's Code
M AN 2-15
GS03 Application Receiver's Code
M AN 2-15
GS04 Date
M DT 8-8
GS05 Time
M TM 4-8
GS06 Group Control Number
M N0 1-9
GS07 Responsible Agency Code
M ID 1-2
GS08 Version / Release / Industry Identifier Code
M AN 1-12
ST Transaction Set Header
Mandatory Max: 1
ST01 Transaction Set Identifier Code
M ID 3-3
ST02 Transaction Set Control Number
M AN 4-9
ZC1 Beginning Segment for Data Correction or Change
Optional Max: 1
ZC101 Shipment Identification Number
O AN 1-30
ZC102 Equipment Initial
O AN 1-4
ZC103 Equipment Number
M AN 1-15
ZC104 Transaction Reference Number
M AN 1-50
ZC105 Transaction Reference Date
M DT 8-8
ZC106 Correction Indicator Code
M ID 2-2
ZC107 Standard Carrier Alpha Code
M ID 2-4
ZC108 Transportation Method/Type Code
M ID 1-2
ZC109 Equipment Number Check Digit
O N0 1-1
BX General Shipment Information
Optional Max: 1
BX01 Transaction Set Purpose Code
M ID 2-2
BX02 Transportation Method/Type Code
M ID 1-2
BX03 Shipment Method of Payment Code
M ID 2-2
BX04 Shipment Identification Number
O AN 1-30
BX05 Standard Carrier Alpha Code
O ID 2-4
BX06 Weight Unit Code
O ID 1-1
BX07 Shipment Qualifier
O ID 1-1
BX08 Section Seven Code
O ID 1-1
BX13 Goods and Services Tax Reason Code
O ID 1-1
BNX Rail Shipment Information
Optional Max: 1
BNX01 Shipment Weight Code
O ID 1-1
BNX03 Billing Code
O ID 1-1
M3 Release
Mandatory Max: 1
M301 Release Code
M ID 1-1
M302 Date
C DT 8-8
M303 Time
C TM 4-8
M304 Time Code
O ID 2-2
N9 Extended Reference Information
Mandatory Max: 30
N901 Reference Identification Qualifier
M ID 2-3
N902 Reference Identification
C AN 1-80
N903 Free-form Description
C AN 1-45
N904 Date
O DT 8-8
N905 Time
C TM 4-8
N906 Time Code
O ID 2-2
CM Cargo Manifest
Optional Max: 2
CM01 Flight/Voyage Number
O AN 2-30
CM02 Port or Terminal Function Code
C ID 1-1
CM03 Port Name
O AN 2-24
CM04 Date
O DT 8-8
CM05 Booking Number
O AN 1-17
CM06 Standard Carrier Alpha Code
O ID 2-4
CM07 Standard Carrier Alpha Code
O ID 2-4
CM08 Date
O DT 8-8
CM09 Vessel Name
O AN 2-28
CM10 Pier Number
O AN 1-4
CM11 Pier Name
O AN 2-14
CM12 Terminal Name
O AN 2-30
CM13 State or Province Code
O ID 2-2
CM14 Country Code
O ID 2-3
CM15 Reference Identification
O AN 1-80
DTM Date/Time Reference
Optional Max: 5
DTM01 Date/Time Qualifier
M ID 3-3
DTM02 Date
C DT 8-8
DTM03 Time
C TM 4-8
DTM04 Time Code
O ID 2-2
N7 Loop Repeat: 500
N7 Equipment Details
Mandatory Max: 1
N701 Equipment Initial
O AN 1-4
N702 Equipment Number
M AN 1-15
N703 Weight
C R 1-10
N704 Weight Qualifier
C ID 1-2
N705 Tare Weight
C N0 3-8
N706 Weight Allowance
O N0 2-6
N710 Ownership Code
O ID 1-1
N711 Equipment Description Code
O ID 2-2
N712 Standard Carrier Alpha Code
O ID 2-4
N714 Position
O AN 1-3
N715 Equipment Length
O N0 4-5
N716 Tare Qualifier Code
C ID 1-1
N717 Weight Unit Code
O ID 1-1
N718 Equipment Number Check Digit
O N0 1-1
N720 Height
O R 1-8
N721 Width
O R 1-8
N722 Equipment Type Code
O ID 4-4
M7 Seal Numbers
Optional Max: 5
M701 Seal Number
M AN 2-15
M702 Seal Number
O AN 2-15
M703 Seal Number
O AN 2-15
M704 Seal Number
O AN 2-15
M12 In-bond Identifying Information
Optional Max: 2
M1201 Customs Entry Type Code
M ID 2-3
M1202 Customs Entry Number
C AN 1-50
M1203 Location Identifier
O AN 1-30
M1204 Location Identifier
O AN 1-30
M1205 Customs Shipment Value
O AN 2-8
M1206 In-bond Control Number
C AN 1-50
M1207 Standard Carrier Alpha Code
O ID 2-4
M1208 Reference Identification Qualifier
C ID 2-3
M1209 Reference Identification
C AN 1-80
M1210 Transportation Method/Type Code
C ID 1-2
M1211 Vessel Name
C AN 2-28
GA Canadian Grain Information
Optional Max: 15
GA01 Fumigated/Cleaned Indicator Code
O ID 1-1
GA02 Commodity Code
O AN 1-30
GA03 Inspected/Weighed Indicator Code
O ID 1-2
GA04 Reference Identification Qualifier
C ID 2-3
GA05 Reference Identification
C AN 1-80
GA06 Week
O N0 6-6
GA07 Unload Terminal Elevator Code
O ID 3-4
GA08 Date
O DT 8-8
GA09 Number
O N0 1-9
GA10 Machine Separable Indicator Code
O ID 2-2
GA11 Canadian Wheat Board (CWB) Marketing Class Code
O ID 1-1
GA12 Canadian Wheat Board (CWB) Marketing Class Type Code
O ID 1-1
GA13 Yes/No Condition or Response Code
O ID 1-1
GA14 Location Identifier
C AN 1-30
GA15 State or Province Code
C ID 2-2
GA16 Percent Qualifier
C ID 1-2
GA17 Percentage as Decimal
C R 1-10
REF Loop Repeat: 99
REF Reference Information
Optional Max: 1
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-80
REF03 Description
C AN 1-80
N9 Extended Reference Information
Mandatory Max: 30
N901 Reference Identification Qualifier
M ID 2-3
N902 Reference Identification
C AN 1-80
N903 Free-form Description
C AN 1-45
N904 Date
O DT 8-8
N905 Time
C TM 4-8
N906 Time Code
O ID 2-2
F9 Origin Station
Mandatory Max: 1
F901 Freight Station Accounting Code
O ID 1-5
F902 City Name
M AN 2-30
F903 State or Province Code
M ID 2-2
F904 Country Code
O ID 2-3
F908 Standard Point Location Code
O ID 6-9
D9 Destination Station
Mandatory Max: 1
D901 Freight Station Accounting Code
O ID 1-5
D902 City Name
M AN 2-30
D903 State or Province Code
M ID 2-2
D904 Country Code
O ID 2-3
D908 Standard Point Location Code
O ID 6-9
N1 Loop Repeat: 15
N1 Party Identification
Mandatory Max: 1
N101 Entity Identifier Code
M ID 2-3
N102 Name
C AN 1-60
N103 Identification Code Qualifier
C ID 1-2
N104 Identification Code
C AN 2-80
N3 Party Location
Optional Max: 2
N301 Address Information
M AN 1-55
N302 Address Information
O AN 1-55
N4 Geographic Location
Optional Max: 1
N401 City Name
O AN 2-30
N402 State or Province Code
C ID 2-2
N403 Postal Code
C ID 3-15
N404 Country Code
C ID 2-3
REF Reference Information
Optional Max: 1
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-80
REF03 Description
C AN 1-80
PER Administrative Communications Contact
Optional Max: 2
PER01 Contact Function Code
M ID 2-2
PER02 Name
O AN 1-60
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-2048
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-2048
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-2048
BL Billing Information
Optional Max: 12
BL01 Rebill Reason Code
M ID 2-2
BL02 Freight Station Accounting Code
C ID 1-5
BL03 Freight Station Accounting Code
C ID 1-5
BL04 Standard Point Location Code
O ID 6-9
BL05 City Name
C AN 2-30
BL06 State or Province Code
O ID 2-2
BL09 City Name
C AN 2-30
BL10 State or Province Code
O ID 2-2
BL11 Country Code
O ID 2-3
BL12 Standard Carrier Alpha Code
O ID 2-4
BL13 Standard Carrier Alpha Code
O ID 2-4
R2 Route Information
Mandatory Max: 13
R201 Standard Carrier Alpha Code
M ID 2-4
R202 Routing Sequence Code
M ID 1-2
R203 City Name
O AN 2-30
R204 Standard Point Location Code
O ID 6-9
R205 Intermodal Service Code
O ID 1-2
R206 Transportation Method/Type Code
O ID 1-2
H3 Special Handling Instructions
Optional Max: 20
H301 Special Handling Code
C ID 2-3
PS Protective Service Instructions
Optional Max: 5
PS01 Protective Service Rule Code
M ID 3-9
PS02 Protective Service Code
M ID 1-4
PS03 Unit or Basis for Measurement Code
C ID 2-2
PS04 Temperature
C R 1-4
LX Loop Repeat: 25
LX Transaction Set Line Number
Mandatory Max: 1
LX01 Assigned Number
M N0 1-6
L5 Description, Marks and Numbers
Mandatory Max: 15
L501 Lading Line Item Number
O N0 1-6
L502 Lading Description
O AN 1-50
L503 Commodity Code
C AN 1-30
L504 Commodity Code Qualifier
C ID 1-1
L508 Commodity Code Qualifier
C ID 1-1
L509 Commodity Code
C AN 1-30
L510 Compartment ID Code
O ID 1-1
L0 Loop Repeat: 25
L0 Line Item - Quantity and Weight
Optional Max: 1
L001 Lading Line Item Number
O N0 1-6
L002 Billed/Rated-as Quantity
C R 1-11
L003 Billed/Rated-as Qualifier
C ID 2-2
L004 Weight
C R 1-10
L005 Weight Qualifier
C ID 1-2
L008 Lading Quantity
C N0 1-7
L009 Packaging Form Code
C ID 3-3
PI Loop Repeat: 30
PI Price Authority Identification
Optional Max: 1
PI01 Reference Identification Qualifier
M ID 2-3
PI02 Reference Identification
M AN 1-80
PI03 Primary Publication Authority Code
O ID 2-2
PI04 Regulatory Agency Code
O ID 3-5
PI05 Tariff Agency Code
O ID 1-4
PI06 Issuing Carrier Identifier
O AN 1-10
PI07 Contract Suffix
O AN 1-2
PI08 Tariff Item Number
O AN 1-16
PI09 Tariff Supplement Identifier
O AN 1-4
PI10 Tariff Section Number
O AN 1-2
PI11 Contract Suffix
O AN 1-2
X1 Export License
Optional Max: 6
X101 Code For Licensing, Certification, Registration, or Accreditation Agency
O ID 1-2
X102 Export License Number
O AN 6-35
X103 Export License Status Code
O ID 1-1
X104 Date
O DT 8-8
X105 Export License Symbol Code
O ID 1-2
X106 Export License Control Code
O ID 1-1
X107 Country Code
O ID 2-3
X108 Schedule B Code
O ID 7-10
X109 International/Domestic Code
O ID 1-1
X110 Lading Quantity
O N0 1-7
X111 Lading Value
O R 2-9
X112 Export Filing Key Code
O ID 1-1
X113 Unit or Basis for Measurement Code
O ID 2-2
X114 Unit Price
O R 1-17
X115 U.S. Government License Type
O AN 1-1
X116 Identification Code
O AN 2-80
X117 Location Identifier
O AN 1-30
LS Loop Repeat: 1
LS Loop Header
Optional Max: 1
LS01 Loop Identifier Code
M AN 1-6
LH1 Loop Repeat: 1,000
LH1 Hazardous Identification Information
Optional Max: 1
LH101 Unit or Basis for Measurement Code
M ID 2-2
LH102 Lading Quantity
M N0 1-7
LH103 UN/NA Identification Code
O ID 6-6
LH104 Hazardous Materials Page
O AN 1-6
LH105 Commodity Code
O AN 1-30
LH106 Unit or Basis for Measurement Code
C ID 2-2
LH107 Quantity
C R 1-15
LH108 Compartment ID Code
O ID 1-1
LH109 Residue Indicator Code
O ID 1-1
LH110 Packing Group Code
O ID 1-3
LH112 Industry Code
O AN 1-30
LH2 Hazardous Classification Information
Optional Max: 4
LH201 Hazardous Classification Code
O ID 1-30
LH202 Hazardous Class Qualifier
O ID 1-1
LH203 Hazardous Placard Notation Code
O ID 14-40
LH205 Reportable Quantity Code
O ID 2-2
LH206 Unit or Basis for Measurement Code
C ID 2-2
LH207 Temperature
C R 1-4
LH208 Unit or Basis for Measurement Code
C ID 2-2
LH209 Temperature
C R 1-4
LH210 Unit or Basis for Measurement Code
C ID 2-2
LH211 Temperature
C R 1-4
LH212 Weight Unit Code
C ID 1-1
LH213 Net Explosive Quantity
C N0 1-10
LH3 Hazardous Material Shipping Name Information
Optional Max: 10
LH301 Hazardous Material Shipping Name
C AN 1-25
LH302 Hazardous Material Shipping Name Qualifier
C ID 1-1
LFH Free-form Hazardous Material Information
Optional Max: 20
LFH01 Hazardous Material Shipment Information Qualifier
M ID 3-3
LFH02 Hazardous Material Shipment Information
M AN 1-25
LFH03 Hazardous Material Shipment Information
O AN 1-25
LFH04 Hazard Zone Code
O ID 1-1
LFH05 Unit or Basis for Measurement Code
C ID 2-2
LFH06 Quantity
C R 1-15
LFH07 Quantity
O R 1-15
LFH08 Date
O DT 8-8
LEP EPA Required Data
Optional Max: 3
LEP01 EPA Waste Stream Number Code
O ID 4-6
LH4 Canadian Dangerous Requirements
Optional Max: 4
LH401 Emergency Response Plan Number
C AN 1-12
LH402 Communication Number
C AN 1-2048
LHT Transborder Hazardous Requirements
Optional Max: 3
LHT01 Hazardous Classification Code
O ID 1-30
LHR Hazardous Material Identifying Reference Numbers
Optional Max: 5
LHR01 Reference Identification Qualifier
M ID 2-3
LHR02 Reference Identification
M AN 1-80
LHR03 Date
O DT 8-8
PER Administrative Communications Contact
Optional Max: 2
PER01 Contact Function Code
M ID 2-2
PER02 Name
O AN 1-60
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-2048
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-2048
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-2048
N1 Loop Repeat: 15
N1 Party Identification
Mandatory Max: 1
N101 Entity Identifier Code
M ID 2-3
N102 Name
C AN 1-60
N103 Identification Code Qualifier
C ID 1-2
N104 Identification Code
C AN 2-80
N3 Party Location
Optional Max: 2
N301 Address Information
M AN 1-55
N302 Address Information
O AN 1-55
N4 Geographic Location
Optional Max: 1
N401 City Name
O AN 2-30
N402 State or Province Code
C ID 2-2
N403 Postal Code
C ID 3-15
N404 Country Code
C ID 2-3
PER Administrative Communications Contact
Optional Max: 2
PER01 Contact Function Code
M ID 2-2
PER02 Name
O AN 1-60
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-2048
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-2048
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-2048
LE Loop Trailer
Optional Max: 1
LE01 Loop Identifier Code
M AN 1-6
PER Administrative Communications Contact
Optional Max: 2
PER01 Contact Function Code
M ID 2-2
PER02 Name
O AN 1-60
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-2048
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-2048
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-2048
LH2 Hazardous Classification Information
Optional Max: 4
LH201 Hazardous Classification Code
O ID 1-30
LH202 Hazardous Class Qualifier
O ID 1-1
LH203 Hazardous Placard Notation Code
O ID 14-40
LH205 Reportable Quantity Code
O ID 2-2
LH206 Unit or Basis for Measurement Code
C ID 2-2
LH207 Temperature
C R 1-4
LH208 Unit or Basis for Measurement Code
C ID 2-2
LH209 Temperature
C R 1-4
LH210 Unit or Basis for Measurement Code
C ID 2-2
LH211 Temperature
C R 1-4
LH212 Weight Unit Code
C ID 1-1
LH213 Net Explosive Quantity
C N0 1-10
LHR Hazardous Material Identifying Reference Numbers
Optional Max: 5
LHR01 Reference Identification Qualifier
M ID 2-3
LHR02 Reference Identification
M AN 1-80
LHR03 Date
O DT 8-8
LH6 Hazardous Certification
Optional Max: 5
LH601 Name
O AN 1-60
XH Pro Forma - B13 Information
Optional Max: 1
XH01 Currency Code
M ID 3-3
XH02 Related Company Indication Code
O ID 1-1
XH03 Special Charge or Allowance Code
O ID 3-3
XH04 Amount
O N2 1-15
XH05 Block 20 Code
O ID 1-1
XH06 Chemical Analysis Percentage
O N2 2-9
XH07 Unit Price
O R 1-17
X7 Customs Information
Optional Max: 10
X701 Free-form Information
M AN 1-30
X702 Free-form Information
O AN 1-30
SE Transaction Set Trailer
Mandatory Max: 1
SE01 Number of Included Segments
M N0 1-10
SE02 Transaction Set Control Number
M AN 4-9
How It Works

Automating Canadian Pacific Railway EDI 404

Stacksync validates, transforms, and delivers your 404 transactions automatically — so your team can focus on operations, not EDI compliance.

Validate
Transform
Route
Monitor
Stacksync processes Canadian Pacific Railway EDI 404 (Rail Carrier Shipment Information) documents automatically — syncing data to your system in real time with no manual intervention required.

Canadian Pacific Railway EDI 404 FAQ

Common questions about 404 Rail Carrier Shipment Information transactions with Canadian Pacific Railway.

How long does it take to set up Canadian Pacific Railway EDI with Stacksync?

Most suppliers are fully connected and processing live Canadian Pacific Railway EDI transactions within 3–5 business days. Stacksync's no-code setup means you don't need developers or EDI consultants — configure your field mappings through our visual interface, run a test cycle, and go live.

Do I need an existing VAN or AS2 connection to trade with Canadian Pacific Railway?

No. Stacksync handles the entire EDI transport layer. We connect directly to Canadian Pacific Railway's trading partner network through our certified connections. You don't need to manage a separate VAN subscription, AS2 certificates, or SFTP configurations.

How does Stacksync help with Canadian Pacific Railway compliance?

Stacksync improves compliance scores by eliminating manual processing delays. Purchase Orders sync to your system in real time, ASNs are generated automatically when you ship, and invoices are validated with three-way matching before submission. Real-time monitoring alerts you to issues before they become chargebacks.

What EDI document types does Stacksync support for Canadian Pacific Railway?

Stacksync supports all EDI document types required by Canadian Pacific Railway — including Purchase Orders (850), Invoices (810), ASNs (856), PO Acknowledgments (855), and more. Our platform handles the full lifecycle from order to payment automatically.

Can I connect Canadian Pacific Railway EDI to my existing ERP or WMS?

Yes. Stacksync integrates with any system that has a database or API — including SAP, Oracle, NetSuite, Microsoft Dynamics, and custom-built ERPs. Data flows bidirectionally between Canadian Pacific Railway's EDI network and your system in real time.

What happens when Canadian Pacific Railway updates their EDI specifications?

Stacksync monitors Canadian Pacific Railway's EDI spec changes and updates our mappings proactively. When a change affects your integration, we notify you and apply updates — so you stay compliant without scrambling to decode new implementation guides.

Ready to automate Canadian Pacific Railway EDI?

a blue checkmark icon
14-day free trial
a blue checkmark icon
No-code EDI setup
a blue checkmark icon
Real-time compliance monitoring
a blue checkmark icon
White-glove onboarding