Skip to content
EDI 404 — EDI TransactionPublished Nov 7, 2026

EDI 404 Rail Carrier Shipment Information Guide

EDI 404 explained: the rail bill of lading a shipper sends a railroad, its BX, BNX, M3, N7, F9, D9, R2 and L5 segments, a carload sample and common errors.

The EDI 404 is how a shipper tells a railroad "this car is loaded, here is where it goes." A truck shipper offers a load with a 204 load tender and the carrier sends a truck. Rail works differently. The car is already on the shipper's siding, the shipper loads it, and the 404 is the bill of lading that releases the car to the railroad, names the route and declares what is inside. The railroad builds its waybill from the 404, and everything it bills later comes from that waybill.

This guide covers what the 404 carries, how rail shipping differs from truck and ocean, every segment you will map, a live carload sample on a two-railroad route, how the 404 relates to the 417 waybill and the 410 freight invoice, and the errors that hold cars on the siding.

What Is an EDI 404?

An EDI 404 is the Rail Carrier Shipment Information transaction set defined by ASC X12, used to transmit rail-carrier-specific bill of lading information to a railroad. The X12 description of the set calls it the initial tender of a shipment between a consignor and a rail carrier. It travels in functional group SR (the GS01 value).

Authoritative references for 404 work:

Who sends it? The shipper, or a 3PL, transload operator or logistics provider shipping on its behalf.

Who receives it? The origin railroad. On an interline move it is the first railroad in the route that receives the 404; it then passes the waybill to the other carriers.

When is it sent? When the car or container is loaded and ready to be pulled, or ahead of time with a scheduled release. The M3 segment says which.

Why does it matter? The railroad cannot move or bill a loaded car without shipping instructions. A late 404 leaves a loaded car sitting on your track. A wrong station, route, weight or commodity code becomes a wrong waybill, a misrouted car, or a freight bill you have to dispute.

How Rail Shipping Differs From Truck and Ocean

If you already ship by truck or ocean, most of the 404's vocabulary will look familiar. The shape of the move does not.

Truck (204, 211, 214, 210)Rail (404, 417, 410)Ocean (300, 301, 304, 310, 315)
How the move startsShipper tenders a load; carrier accepts and sends a truckShipper loads a car on its siding or at a ramp, then releases it with a 404Shipper books space, then sends shipping instructions
EquipmentTrailer, identified by the carrierRail car or intermodal container, identified by reporting mark and numberContainer, identified by ISO 6346 owner prefix and number
LocationsStreet addresses and stopsRail stations, often coded with an FSAC or SPLCPorts and places coded with UN/LOCODEs
RouteUsually one carrierOften several railroads, each named in R2 with the interchange junctionVessel and voyage, with transshipment ports
CommodityNMFC class for LTLSeven-digit STCCDescription, often with an HS code
Freight bill210410310

Two rail ideas matter most when you map a 404. First, a rail car is identified by its reporting mark (the equipment initial, two to four letters) and number, and that pair is the key railroads use to match your 404 to the physical car. Second, a shipment can pass between railroads at interchange junctions, and the 404 must name every railroad in order, or tell the origin railroad to choose the route.

The Rail Document Flow

A typical carload move between two railroads runs like this:

  1. Car placed. The railroad places an empty car on the shipper's siding, or the shipper picks up an intermodal container.
  2. Car loaded. The shipper loads, seals and weighs it.
  3. Shipper sends the 404. It names the car, seal, weight, stations, parties, route and commodity, and releases the car for movement.
  4. Railroad creates the waybill. The origin railroad turns the 404 into its waybill, with its own waybill number and date.
  5. Waybill passed along the route. The origin railroad sends a 417 Rail Carrier Waybill Interchange to the connecting railroads, and some railroads send it to customers too.
  6. Car moves. It is pulled, interchanged at the junction and delivered to the consignee's track or a team track.
  7. Railroad bills. The party paying the freight receives a 410 Rail Carrier Freight Details and Invoice, or a 210 if the railroad offers it, and returns a 997.

Railroads differ on how they accept shipping instructions. Most also take them through a customer web portal, and some shippers send rail bills of lading on an 858 Shipment Information instead of a 404. Ask each railroad which it supports before you build a map.

Interactive Example: Prepaid Carload on a Two-Railroad Route

A gypsum wallboard plant in Fort Dodge, Iowa ships one loaded car to a building supply distributor in Joliet, Illinois. The origin railroad (SCAC QPRR) hands the car to a connecting railroad (QSWR) at Des Moines. Freight is prepaid, so the shipper pays.

BX sets rail mode, prepaid terms, the origin railroad, pounds, and a single bill of lading. BNX declares shipper-certified scale weight and single shipment billing. M3 releases the car now. N9 carries the bill of lading number with its date and the customer's PO. N7 names the car (reporting mark QPLX, number 450127) with its net lading weight, and M7 its seal. F9 and D9 give the origin and destination stations. The N1 loops name the shipper with a contact, the consignee and the payer of freight. Two R2 segments give the route and junction, and L5/L0 describe 336 bundles of wallboard with the STCC. All names, SCACs, reporting marks and numbers are fictional.

Use the Plain English tab for a readable summary, or click any segment to break it down element by element.

Live exampleShipperEDI 404

Rail Carrier 404 Shipment Information (Prepaid Carload, Interline)

A shipper's bill of lading to the origin railroad for one rail car of gypsum wallboard: rail mode and prepaid terms in BX, shipper certified scale weight and single shipment billing in BNX, release in M3, bill of lading and PO in N9, the car and seal in N7/M7, origin and destination stations in F9/D9, shipper, consignee and payer of freight, a two-railroad route in R2, and the commodity with its STCC in L5/L0

Document
404 Rail Carrier Shipment Information
From / to
NORTHGATEGYP → QPRR
Segments
28
Interchange date
Nov 6, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*NORTHGATEGYP *02*QPRR *261106*1432*U*00401*000004041*0*P*>~
2
GS*SR*NORTHGATEGYP*QPRR*20261106*1432*4041*X*004010~
3
ST*404*4041~
4
BX*00*R*PP**QPRR*L*B*N~
5
BNX*S**S~
6
M3*R*20261106*1430~
7
N9*BM*NGP-BL-60418**20261106*1430~
8
N9*PO*LBS-778120~
9
N7*QPLX*450127*168000*N*******RR~
10
M7*NG0418827~
11
F9**FORT DODGE*IA~
12
D9**JOLIET*IL~
13
N1*SH*NORTHGATE GYPSUM PRODUCTS~
14
N3*2400 QUARRY RD~
15
N4*FORT DODGE*IA*50501*US~
16
PER*IC*DANA REYES*TE*515-555-0142*EM*SHIPPING@NORTHGATEGYPSUM.EXAMPLE~
17
N1*CN*LAKELINE BUILDING SUPPLY~
18
N3*1800 RAIL SPUR DR~
19
N4*JOLIET*IL*60436*US~
20
N1*PF*NORTHGATE GYPSUM PRODUCTS~
21
R2*QPRR*S*DES MOINES~
22
R2*QSWR*1~
23
LX*1~
24
L5*1*GYPSUM WALLBOARD*3275440*T~
25
L0*1***168000*N***336*BDL~
26
SE*24*4041~
27
GE*1*4041~
28
IEA*1*000004041~

Human-Readable

Interchange

Sender ID(ZZ)NORTHGATEGYP
Receiver ID(02)QPRR
Date261106
Time1432
Standards IDU
Version00401
Control Number000004041
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDSRSR
SenderNORTHGATEGYP
ReceiverQPRR
Date20261106
Time1432
Control Number4041
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 404

Rail Carrier Shipment Information
Transaction Type404
Control Number4041
Segments, ST to SE24
Count in SE0124 (matches)

Segment Detail

BXGeneral Shipment Information
BX01Transaction Set Purpose Code00
BX02Transportation Method/Type CodeR
BX03Shipment Method of PaymentPP
BX05Standard Carrier Alpha Code (SCAC)QPRR
BX06Weight Unit CodeL
BX07Shipment QualifierB
BX08Section Seven CodeN
BNXRail Shipment Information
BNX01Shipment Weight CodeS
BNX03Billing CodeS
M3Release
M301Release CodeR
M302Date20261106
M303Time1430
N9Reference Identification
N901Reference Identification QualifierBM
N902Reference IdentificationNGP-BL-60418
N904Date20261106
N905Time1430
N9Reference Identification
N901Reference Identification QualifierPO
N902Reference IdentificationLBS-778120
N7Equipment Details
N701Equipment InitialQPLX
N702Equipment Number450127
N703Weight168000
N704Weight QualifierN
N711Equipment Description CodeRR
M7Seal Numbers
M701Seal NumberNG0418827
F9Origin Station
F902City NameFORT DODGE
F903State or Province CodeIA
D9Destination Station
D902City NameJOLIET
D903State or Province CodeIL
N1Party Identification
N101Entity CodeSH
N102NameNORTHGATE GYPSUM PRODUCTS
N3Party Location
N301Address2400 QUARRY RD
N4Geographic Location
N401CityFORT DODGE
N402State/ProvinceIA
N403Postal Code50501
N404CountryUS
PERAdministrative Communications Contact
PER01Contact FunctionIC
PER02NameDANA REYES
PER03Comm QualifierTE
PER04Comm Number515-555-0142
PER05Comm QualifierEM
PER06Comm NumberSHIPPING@NORTHGATEGYPSUM.EXAMPLE
N1Party Identification
N101Entity CodeCN
N102NameLAKELINE BUILDING SUPPLY
N3Party Location
N301Address1800 RAIL SPUR DR
N4Geographic Location
N401CityJOLIET
N402State/ProvinceIL
N403Postal Code60436
N404CountryUS
N1Party Identification
N101Entity CodePF
N102NameNORTHGATE GYPSUM PRODUCTS
R2Route Information
R201Standard Carrier Alpha CodeQPRR
R202Routing Sequence CodeS
R203City NameDES MOINES
R2Route Information
R201Standard Carrier Alpha CodeQSWR
R202Routing Sequence Code1
LXAssigned Number
LX01Assigned Number1
L5Description, Marks and Numbers
L501Lading Line Item Number1
L502Lading DescriptionGYPSUM WALLBOARD
L503Commodity Code3275440
L504Commodity Code QualifierT
L0Line Item - Quantity and Weight
L001Lading Line Item Number1
L004Weight168000
L005Weight QualifierN
L008Lading Quantity336
L009Packaging Form CodeBDL
1 functional group1 transactionControl #000004041Valid

404 Structure at a Glance

The table follows X12 release 004010 and lists the segments most 404s use. The standard has many more: motor vehicle control (VC) for finished vehicles, intermodal chassis and movement detail (IC, IM), empty car disposition (E1 loop), transit (T1 loop), export (X1), customs (X7, XH) and a full hazardous materials loop (LS/LH1/LE).

AreaSegmentNameUsage in the standardNotes
HeadingSTTransaction Set HeaderMandatoryST01 = 404
HeadingZC1Beginning Segment for Data Correction or ChangeOptionalCorrections to an earlier 404
HeadingBXGeneral Shipment InformationOptionalPurpose, mode, payment, SCAC, weight unit
HeadingBNXRail Shipment InformationOptionalWeight basis and billing type
HeadingM3ReleaseMandatoryRelease now, later, or billing only
HeadingN9Reference IdentificationMandatory, up to 30Bill of lading, PO and other references
HeadingDTMDate/Time ReferenceOptional, up to 5Other dates
Heading loopN7Equipment DetailsMandatory, up to 500One per car or container
N7 loopM7Seal NumbersOptionalSeals on the car
HeadingF9Origin StationMandatoryWhere the car starts
HeadingD9Destination StationMandatoryWhere it is delivered
Heading loopN1 / N2 / N3 / N4 / REF / PER / BLName, address and billingMandatory, up to 10Shipper, consignee, payer and others
Heading loopS1 / S2 / S9Stop-off detailsOptionalStop-off for partial loading or unloading
HeadingR2Route InformationOptional, up to 13One per railroad in the route
HeadingH3 / PSSpecial handling, protective serviceOptionalHandling and temperature instructions
Detail loopLXAssigned NumberMandatory, up to 25One per lading line
LX loopL5Description, Marks and NumbersMandatoryDescription and STCC
LX loopL0 / MEA / L1 / PIQuantity, weight, measurements, ratesOptionalWeight and packages; rates if the shipper sends them
SummaryL3Total Weight and ChargesOptionalTotals
SummarySETransaction Set TrailerMandatorySegment count and control number

Railroads often run later releases. CN's current 404 guides, for example, use release 008050. The core segments in this guide keep their meaning across releases, but check GS08 and the railroad's guide before you reuse a map.

Key Segments Explained

BX: General Shipment Information

BX*00*R*PP**QPRR*L*B*N~
ElementNameExampleWhat it means
BX01Transaction Set Purpose Code0000 original. Railroads list the codes they accept for changes and cancellations
BX02Transportation Method/Type CodeRR rail. Intermodal guides may use other codes, such as X intermodal (piggyback)
BX03Shipment Method of PaymentPPPP prepaid, CC collect, 11 Rule 11 shipment, TP third party pay
BX04Shipment Identification NumberA shipper's shipment number, when the railroad asks for one
BX05Standard Carrier Alpha CodeQPRRThe railroad receiving the 404
BX06Weight Unit CodeLL pounds, K kilograms
BX07Shipment QualifierBHow this shipment relates to others; CN's guide uses B for a bill of lading for an individual shipment
BX08Section Seven CodeNWhether Section 7 of the bill of lading terms is in effect; N not in effect

Later BX elements cover customs documentation handling and confidential billing. Send them only when the railroad's guide asks for them.

BNX: Rail Shipment Information

BNX*S**S~
ElementNameExampleWhat it means
BNX01Shipment Weight CodeSWhere the weight comes from: S shipper certified scale weight, R carrier scale weight, A shipper's weight agreement, E estimated weight
BNX03Billing CodeSThe type of bill: S single shipment billing, M multiple shipment billing, U unit train billing

The weight code matters at billing time. If you declare shipper scale weights, you are telling the railroad to rate on your weights. If the railroad weighs the car, its weight wins.

M3: Release

M3*R*20261106*1430~
ElementNameExampleWhat it means
M301Release CodeRR released with billing data, S scheduled future release, U unscheduled release, B not released (billing data only), H hold a previously released shipment
M302Date20261106Date of release, or the estimated release date on U
M303Time1430Time of release

M3 is the switch that lets the railroad pull the car. A 404 sent with B gives the railroad billing data only, and the car stays put until it is released.

N9: Reference Identification

N9*BM*NGP-BL-60418**20261106*1430~
N9*PO*LBS-778120~
ElementNameExampleWhat it means
N901Reference Identification QualifierBMBM bill of lading, PO purchase order
N902Reference IdentificationNGP-BL-60418The reference value
N904Date20261106The bill of lading date
N905Time1430The bill of lading time

Most railroads require at least one N9*BM. CN's guide notes that the bill of lading number is carried onto its freight invoice and remittance documents, so it is the number your accounts payable team will match on later. Send your PO numbers here too if you want to see them on the 410.

N7 and M7: Equipment and Seals

N7*QPLX*450127*168000*N*******RR~
M7*NG0418827~
ElementNameExampleWhat it means
N701Equipment InitialQPLXThe car's reporting mark. A mark ending in X is a privately owned car
N702Equipment Number450127The car number
N703Weight168000Lading weight
N704Weight QualifierNN actual net weight
N711Equipment Description CodeRRRR rail car. The code list also has specific car types, such as BX boxcar, HC covered hopper and TN tank car
M701Seal NumberNG0418827The seal applied after loading

The reporting mark and number are how the railroad ties your 404 to the car it is about to pull. A single transposed digit means the railroad holds a car with no bill, and a bill with no car.

F9 and D9: Origin and Destination Stations

F9**FORT DODGE*IA~
D9**JOLIET*IL~
ElementNameExampleWhat it means
F901 / D901Freight Station Accounting CodeThe railroad's code for the station (FSAC), when you know it
F902 / D902City NameFORT DODGEThe station name
F903 / D903State or Province CodeIAState or province
F908 / D908Standard Point Location CodeThe SPLC for the station

Rail stations are not street addresses. Railroads expect the station name spelled the way their station list spells it, and some want the FSAC or SPLC as well. Get the spellings from each railroad and store them as master data, rather than typing them per shipment.

N1 Loop: Shipper, Consignee and Payer

N1*SH*NORTHGATE GYPSUM PRODUCTS~
PER*IC*DANA REYES*TE*515-555-0142*EM*SHIPPING@NORTHGATEGYPSUM.EXAMPLE~
N1*CN*LAKELINE BUILDING SUPPLY~
N1*PF*NORTHGATE GYPSUM PRODUCTS~

N101 gives each party's role: SH shipper, CN consignee, PF party to receive freight bill. Cross-border guides add customs parties, such as XU for a US customs broker in CN's transborder guide. Railroads often ask for a PER contact on the shipper so they can call about a bill that will not process.

R2: Route Information

R2*QPRR*S*DES MOINES~
R2*QSWR*1~
ElementNameExampleWhat it means
R201Standard Carrier Alpha CodeQPRRThe railroad
R202Routing Sequence CodeSIts place in the route: S origin carrier on the shipper's routing, R origin carrier on a Rule 11 shipment, 1 first carrier after origin, 2 second, and so on
R203City NameDES MOINESThe junction where this railroad hands the car to the next one

Send one R2 per railroad, in order. CN's guide requires the junction on every R2 except the last. If you want the origin railroad to choose the route, its guide will say how to ask.

LX, L5 and L0: Lading

LX*1~
L5*1*GYPSUM WALLBOARD*3275440*T~
L0*1***168000*N***336*BDL~
ElementNameExampleWhat it means
L502Lading DescriptionGYPSUM WALLBOARDThe commodity description
L503Commodity Code3275440The seven-digit STCC
L504Commodity Code QualifierTT STCC
L004 / L005Weight, Weight Qualifier168000 / NNet weight of the line
L008 / L009Lading Quantity, Packaging Form Code336 / BDL336 bundles

The STCC drives the rate. Railinc maintains the code list, and each railroad's price authority (tariff or contract) is tied to STCCs. A code that does not match your contract rates the car at a different price, so take the STCC from your rail contract and keep it on the item master. Hazardous materials have their own STCCs and also need the hazardous materials loop (LS, LH1 to LH4, LE).

404 vs 858, 204, 211 and 417

DocumentModeSent bySent toPurpose
404 Rail Carrier Shipment InformationRailShipperOrigin railroadRail bill of lading and release
858 Shipment InformationAnyShipperCarrierGeneral bill of lading data; some rail shippers use it instead of a 404
204 Motor Carrier Load TenderTruckShipperMotor carrierOffers a load for the carrier to accept or decline
211 Motor Carrier Bill of LadingTruckShipperMotor carrierTruck bill of lading
417 Rail Carrier Waybill InterchangeRailRailroadOther railroads or customersThe railroad's waybill built from the 404
410 Rail Carrier Freight Details and InvoiceRailRailroadFreight payerFreight bill for the move

The 404 has no accept-or-decline step. A truck carrier can refuse a 204 with a 990, but a car on a railroad's network is already in the railroad's hands once it is released. Problems come back as rejected bills, holds and calls, not as a declined tender.

Common 404 Errors and How to Prevent Them

ErrorWhat happensPrevention
Car initial or number wrongThe railroad cannot match the bill to the car; the car sitsScan or pick the car from the railroad's placement list instead of typing it
Station spelled differently from the railroad's listBill rejected or set aside for manual reviewStore each railroad's station names, FSACs and SPLCs as master data
Route missing a junctionRailroad cannot build the interline waybillSend R203 on every R2 except the last, unless the guide says otherwise
Wrong STCCCar rated at the wrong price, or rejected for no price authorityKeep the contract STCC on the item master; never derive it from the description
Weight basis not what you expectYou are billed on carrier scale weight you did not plan forSet BNX01 to match your weight agreement with the railroad
404 sent with a hold or billing-only codeLoaded car is not pulledCheck M301 before sending; alert on any car not pulled by the next switch
Duplicate 404 for the same carTwo waybills, two billsSend corrections with the purpose code or ZC1 the railroad specifies, not a second original
Missing transborder dataCross-border car held at the borderFollow the railroad's customs requirements for parties, value, origin country and seals

404 Implementation Checklist

Before your first live 404 with a railroad:

  • Get the railroad's 404 guide and confirm the X12 version in GS08 and the ISA qualifiers it expects
  • Confirm the references it requires in N9, starting with the bill of lading number and date
  • Load its station spellings, FSACs and SPLCs for every origin and destination you use
  • Map the STCC for every product you ship by rail, from your rail contract
  • Agree on weight basis (BNX01) and billing type (BNX03)
  • Decide how you send corrections and cancellations, and test them
  • Store reporting mark, number, seal and bill of lading number against the order so the 410 can be matched later
  • If you ship hazardous materials or cross a border, test those 404s separately
  • Confirm the 997 the railroad will return for each 404
  • Test an original, a correction, a cancellation, a multi-car bill and an interline route

For how rail sets fit next to retail documents, see our EDI document types reference. For the paper document the 404 replaces, see the bill of lading glossary entry.

Where OrderSync Fits

A carload ships because a customer ordered it. The PO in your 404's N9, the consignee in N1 and the quantity in L0 all come from that order, whether it arrived as an EDI 850, a PDF, an email or a spreadsheet.

OrderSync reads inbound orders in any format, matches customers, items and units to your catalog, and outputs clean ERP data or valid X12. Paste any 404 into the free EDI inspector to see it parsed segment by segment with a plain-English summary and any structural errors explained, or book a 15-minute walkthrough to see your own orders processed.

Frequently Asked Questions

What is an EDI 404?

The EDI 404 Rail Carrier Shipment Information is the X12 transaction a shipper sends to a railroad to tender a rail shipment. It works as the electronic rail bill of lading and carries the car, release instruction, bill of lading number, stations, parties, route and commodity.

Is the EDI 404 a rail bill of lading?

Yes. X12 describes it as rail-carrier-specific bill of lading information and as the initial tender of a shipment between a consignor and a rail carrier. The railroad builds its waybill from it.

What is the difference between EDI 404 and EDI 204?

The 204 offers a load to a motor carrier, which can accept or decline it with a 990. The 404 releases a car that is already loaded on the railroad's network and gives the railroad the bill of lading data it needs to move and bill it.

What is the difference between EDI 404 and EDI 417?

The shipper sends the 404 to the origin railroad. The railroad turns it into a waybill and sends the 417 Rail Carrier Waybill Interchange to the other railroads in the route, and in some cases to customers.

What is an STCC code in a 404?

The Standard Transportation Commodity Code is a seven-digit commodity code maintained by Railinc. It goes in L503 with qualifier T in L504, and railroads use it to find the price that applies to the shipment.

What are the F9 and D9 segments?

F9 is the origin station and D9 the destination station. Each carries a city and state or province, and can carry the railroad's Freight Station Accounting Code (FSAC) and the Standard Point Location Code (SPLC).

How do I list more than one railroad in a 404?

Send one R2 segment per railroad in route order. R201 is the railroad's SCAC, R202 its place in the route (S for the origin carrier on the shipper's routing, then 1, 2 and so on), and R203 the junction where it hands the car to the next railroad.

Which X12 version does the 404 use?

It depends on the railroad. Many guides use 004010, and some railroads run much later releases; CN's current 404 guides use 008050. The version is named in GS08 of each functional group.

James Darby
Last updated: 11/7/2026

Related Resources