START A CONVERSATION

Let’s talk about your next build.

Prepare your brief below, then review and send it in your email app to sales@nextlabsonline.com.

THE FIRST CONVERSATION

Your product idea, AI opportunity or automation challenge—and a useful first milestone.

All fields are required.

A few sentences about the problem, your users and timing are enough.

We’ll use your details to respond to your enquiry. Please don’t include patient records, passwords or confidential information. Privacy Policy · Website Terms.

Logistics & supply chain / EDI & Message Standards

EDI 404 Rail Carrier Shipment Information for Carload Shippers

By Vikasraj YadavPublished 9 min read

For edi and integration analysts, it leads at shippers, 3pls and carriers · Understand the problem

EDI 404 Rail Carrier Shipment Information for Carload Shippers — Two supply chain IT and finance staff sitting at a wooden table with two side-by-side out-of-focus monitors, two closed laptops, a blank ruled clipboard, and a plain cream folder, overlooking a warehouse floor with pallet racking and an orange forklift.

EDI 404 Rail Carrier Shipment Information for Carload Shippers: Illustrative TMS–ERP order and invoice handoff review beside a warehouse floor; not a client facility.

At a glance · Quick answer

Quick answer: edi 404 rail shipment information

An EDI 404 is the X12 Rail Carrier Shipment Information transaction: the consignor's electronic bill of lading tendering a car to a railroad. Its critical fields are the N7 car initial and number, the seven-digit STCC in L5, the BNX weight basis, F9 and D9 stations, R2 route and the N9 bill of lading number that joins the 410 invoice.

TL;DR — what you’ll learn

  • Read the N7 car initial and number from the loaded car and compare it with the placement list; one transposed digit can leave a car unbilled for a day.
  • The seven-digit STCC in L503, qualifier T, picks the tariff item; hazardous loads use 49-series codes repeated in LH105 with the UN number in LH103.
  • BNX01 sets the billing weight: R railroad scale, A weight agreement or N per car. Accrue on the estimate and auto-approve scale variances within a set tolerance, such as 2%.
  • India has no 404: the forwarding note under Railways Act section 64, FOIS demand and the railway receipt carry the data, and the RR number goes into the e-way bill as F, station code, RR number.

Topics: edi 404 rail shipment information · rail waybill data · STCC codes · car initial and number · x12 404 rail bill of lading · railway receipt e-way bill

All quantities, amounts, product codes and events are illustrative teaching examples.

The loaded boxcar sits on the plant siding with seals applied, the shipping clerk has pressed "send", and the translator shows a clean functional acknowledgment from the railroad. The next morning the switch crew leaves the car behind. The 404 carried car number 204471; the car on the track is 204417. The railroad had shipping instructions for a car that did not exist and none for the car it found, so the plant lost a day and the consignee's receiving appointment slipped with it.

The X12 404 is the rail bill of lading in electronic form, and most of its value sits in a handful of fields: the car initial and number, the commodity code, the weight and its basis, the stations and the route. Getting those right before transmission removes most missed pulls, re-rated invoices and freight audit disputes on carload traffic.

  • What this guide explains: the segments a carload 404 carries, what each key field controls downstream in the yard, in freight audit and in tax records, and how a 404 differs from the shipping instructions an Indian rail shipper gives through the forwarding note and FOIS.
  • What you can reuse: an annotated sample transaction, a worked carload in US dollars beside an Indian rake in rupees, a validation table and a go-live checklist for a new railroad partner.

What a 404 tender does when a loaded car is released

A 404 tells the railroad what is in a car, who sent it, where it goes, who pays and by which route. X12 describes the transaction as the consignor's initial tender of a shipment to a rail carrier, which can also serve as notification of equipment release and as a legal bill of lading.

That last point matters. In the US, 49 U.S.C. 11706(a) requires a rail carrier to issue a receipt or bill of lading for property it receives, and the 404 is commonly how the railroad gets the facts it needs to do so. The same section stops a carrier from setting a claim-filing period shorter than nine months, or a lawsuit period shorter than two years from written disallowance, so the 404's data later becomes evidence in any loss or damage claim.

An X12 404 Rail Carrier Shipment Information transaction is the consignor's electronic bill of lading to a railroad; under 49 U.S.C. 11706, the carrier's bill of lading anchors a loss claim that cannot be time-barred in under 9 months, so the car number, commodity and weight must match the loaded car.

The 404 travels inside the usual X12 envelope, with functional group identifier SR in the GS segment. A railroad usually answers with a 997 functional acknowledgment, which proves the file was readable, not that the car is billed. Our guide to reconciling missing 997s covers that control; this page deals with what the 404 must say for the car to move and be invoiced correctly.

Segment by segment: the carload 404 a railroad expects

A basic single-car 404 needs about fifteen segments. Railroads publish their own implementation guides, and Canadian National's generic carload guide, written against version 005050, is a clear public example. Treat any guide as partner-specific and confirm the release your railroad uses before mapping.

ST*404*00410001~
BX*00*R*PP**RRCO*L*B~                     purpose 00 original; R rail; PP prepaid; carrier SCAC; L pounds; B single B/L
BNX*R**S~                                 R = railroad scale weight; S = single shipment billing
M3*R*20261110*1430~                       release with shipment information, date, time
N9*BM*BL2611100417**20261110*1430~        bill of lading number (CN allows 15 characters for BM)
N9*PO*4500918832~                         buyer's purchase order
N7*NELX*204417*190000*E*******RR~         car initial, car number, weight, E = estimated, RR = railcar
F9**MILLTOWN*OH~                          origin station
D9**RIVERBEND*TX~                         destination station
N1*SH*NORTHERN BOARD MILL~                shipper
N1*CN*GULF BUILDING SUPPLY~               consignee
R2*RRCO*S****R~                           one R2 per railroad in the route; S = origin carrier
LX*1~
L5*1*WALLBOARD*3275440*T~                 7-digit STCC, qualifier T
L0*1***190000*E***1*CLD~                  weight, qualifier, quantity 1, CLD = carload
SE*16*00410001~
(illustrative values; station names, SCAC and reporting mark are placeholders)

The X12 standard defines many more optional segments: ZC1 for corrections, M7 seal numbers inside the equipment loop, E1 to E5 for empty car disposition, H3 and PS for special handling and protective service, and the LH1 loop for hazardous materials. Map only what your railroad's guide asks for, and keep a list of which optional segments each partner rejects.

Scroll horizontally to see all columns.

Key 404 segments for a single carload and the downstream process each one drives
SegmentFields that matterDrivesTypical error
BXPurpose code, payment method (PP or CC), carrier SCAC, weight unitWho is invoiced; pounds or kilogramsCollect sent when contract is prepaid
BNXShipment weight code: railroad scale, weight agreement or per carWhich weight the invoice usesWeight agreement code without the agreement number
N9 BMBill of lading number and dateKey that returns on the freight invoice and remittanceReused number on a second car
N7Car initial (up to 4), car number (up to 10), weight, qualifierWhich car the yard pullsTransposed digits
F9, D9Origin and destination station spellingRate lookup and routingCustomer city sent instead of the rail station
R2Each carrier's SCAC and junction, in sequenceInterline handoffsMissing second carrier on a two-road move
L5, L0STCC with qualifier T, weight, quantity, packaging CLDTariff item and commodity rulesDescription changed but STCC left from an old product
EDI 404 carload tender: from the loaded car to a matched rail invoice Step 1, Load and capture: Car marks read from the car. N7 initial and number at loading; Seals and estimated weight recorded; Compared with placement list. Step 2, Build the 404: Master data fills the tender. STCC and hazmat from item master; BNX weight basis per lane; F9, D9 and R2 from contract. Step 3, Transmit and confirm: 997 plus a billed-car check. GS01 SR envelope sent; 997 proves syntax only; Unbilled car alerts checked. Step 4, Invoice match: 410 joined by B/L number. Scale variance within tolerance; Wrong STCC sent to dispute; India: RR, FNR and e-way bill. EDI 404 carload tender: from the loaded car to a matched rail invoice Car, commodity and weight are checked before transmission so the railroad can bill, move and invoice the right car 1 · LOAD AND CAPTURE Car marks read from the car • N7 initial and number at loading • Seals and estimated weight recorded • Compared with placement list 2 · BUILD THE 404 Master data fills the tender • STCC and hazmat from item master • BNX weight basis per lane • F9, D9 and R2 from contract 3 · TRANSMIT AND CONFIRM 997 plus a billed-car check • GS01 SR envelope sent • 997 proves syntax only • Unbilled car alerts checked 4 · INVOICE MATCH 410 joined by B/L number • Scale variance within tolerance • Wrong STCC sent to dispute • India: RR, FNR and e-way bill

Car initial and number: tying N7 to the railcar on your siding

The car initial and number in N7 must be read from the car, not typed from the order. That single rule prevents the most expensive 404 error, because a car with no matching billing usually stays where it is while the railroad works out what to do with it.

In Canadian National's guide, N701 is the equipment initial, up to four characters, and N702 is the equipment number, up to ten. The pair is the reporting mark and number stencilled on the car. Carry them through the warehouse system as two fields, never one concatenated string, so that a leading zero or a space cannot change the match with the railroad's records.

  • Capture at loading: the loader scans or keys the car marks at the time the first pallet goes in, and the warehouse system locks the load to that car.
  • Compare at release: before the 404 is generated, compare N7 with the car list from the railroad's latest placement notice for the siding.
  • Use a gate reader where one exists: a reader for the car's identification tag at the plant gate gives an independent record that the car left with the load you billed.
  • Carry it to the consignee: put the same car initial and number on the advance ship notice, because the consignee's receiving team books dock time and siding space by car.

Carload shippers should validate the N7 car initial and number in every X12 404 against the railroad's placement list before transmission; a single transposed digit in N702 leaves the loaded car without billing, and a release-time comparison stops the file before it can cost the 24 hours of a missed switch.

The incident at the top of this page shows how a syntax acknowledgment hides a content error. Times and documents are illustrative.

  1. Tuesday 14:30, release: the shipping clerk releases car NELX 204417 in the warehouse system; the translator builds a 404 from the order record, where the car was keyed as 204471.
  2. Tuesday 14:31, acknowledgment: the railroad returns an accepted 997 for the interchange. Nobody checks further.
  3. Wednesday 06:50, switch: the crew finds 204417 loaded with no shipping instructions and leaves it; the railroad's customer service records an unbilled load.
  4. Wednesday 11:20, discovery: the consignee asks why car 204471 shows no movement; the plant compares the siding with the 404 and finds the transposition.
  5. Wednesday 12:05, correction: a corrected 404 goes out; the car moves on Thursday's switch, a day late, and the consignee rebooks its unloading slot.

STCC codes in L5 and the 49-series codes for hazardous loads

The commodity code in L503 decides which tariff item rates the car, so it belongs to master data, not to the shipping clerk. Changing a product description without reviewing its STCC is how a correct shipment ends up with a disputed invoice.

Railinc, which publishes the Standard Transportation Commodity Code, describes it as a seven-digit code used on waybills and shipping documents, with descriptions aligned to the rail and motor freight classifications. In CN's guide the code sits in L503 with qualifier T in L504, and is required only on the first L5 of the line; for example, wallboard is 3275440. Further L5 segments can carry additional description.

Hazardous materials use the 49-series. Railinc's hazardous materials file layout distinguishes 49 codes, for hazardous materials with an associated STCC, from 48 codes for hazardous waste. CN's sample for sodium chlorate puts 4918723 in L503 with qualifier T, repeats it in LH105, and carries UN1495 in LH103, class 5.1 in LH2 and the proper shipping name in LH3, with an emergency contact in the loop.

In the US, 49 CFR 174.24(a) bars a rail carrier from accepting hazardous material without a shipping paper prepared under Part 172, and paragraph (b) requires the recipient to keep a copy or electronic image for one year, or three years for hazardous waste. Before mapping the LH loop, check the segregation and placarding rules for the load; our hazmat segregation table guide covers the loading side.

Hazardous carload 404 transactions carry a 49-series code in L503 and LH105, the UN number in LH103 and the class in LH2; 49 CFR 174.24(b) then requires the rail carrier to keep the shipping paper or its electronic image for 1 year, or 3 years for hazardous waste.

Estimated weight, scale weight and the BNX weight code

The weight you send is rarely the weight you are billed. BNX01 tells the railroad which weight governs the invoice, and N703 with N704 says what kind of weight you sent, so freight audit must know both before it compares the invoice with the accrual.

CN's guide lists three BNX01 codes: R for rail carrier scale, A for a weight agreement number and N for a per-car charge. With code R, the shipper's figure in N703 is only an estimate, qualifier E, and the invoice will use the railroad's scale. With code A, CN also expects an N9 with qualifier WM carrying the agreement number. With a per-car rate, weight matters less to the charge but still matters to the car's load limit.

  • Railroad scale: accrue on the estimate, then expect a variance; set a tolerance, such as 2% of weight, inside which the invoice auto-approves.
  • Weight agreement: the agreed weight per package or car replaces weighing; a missing WM reference can push the car to the scale.
  • Per car: the charge is flat; audit checks the car count and the STCC, not the weight.
  • Units: BX07 and L011 carry L for pounds or K for kilograms; a unit mismatch makes every comparison wrong by a factor of 2.2.

Origin, destination and route segments that decide the tariff

F9, D9 and R2 decide the rate as much as the commodity does. Send rail station names spelt the way the railroad's tables spell them, and send a route only when the shipper is entitled to choose one.

CN's guide asks for station spellings that follow the Standard Point Location Code standard, published by the National Motor Freight Traffic Association in the US, and offers to supply them. The customer's street address belongs in N3 and N4 under the N1 party loops. Mixing the two is a common reason a car is rated from the wrong point.

  • One R2 per railroad: each segment carries the carrier's SCAC, its routing sequence and, where the car changes hands, the junction point.
  • Interline gaps: a missing second carrier on a two-road move leaves the origin road to route the car itself, which may not match the rate you contracted.
  • Shipper routing: send R2 only where the contract lets the shipper choose the route; otherwise follow the railroad's guide on omitting it.

From the 404 tender to the 410 rail freight invoice

X12 defines the 410 Rail Carrier Freight Details and Invoice as itemised charges sent by the rail carrier to the party paying the freight. The bill of lading number from the 404's N9 is the key that joins tender, invoice and payment, so audit should match on it before it matches on anything else.

The worked example compares one US carload with one Indian rake. Rates are illustrative, not tariff quotes. The US car moves under BNX01 code R; the Indian rake is weighed on a railway weighbridge and the railway receipt records the chargeable weight.

Scroll horizontally to see all columns.

One carload in dollars and one rake in rupees: tender weight, billed weight and audit result
LineUS carload (wallboard)India rake (bagged cement, 42 covered wagons)
Shipper's declared weight190,000 lb in N703, qualifier E2,730 t on the forwarding note
Carrier weight used for billing193,400 lb railroad scale2,756.4 t railway weighbridge, shown on the RR
Illustrative rate$1.42 per hundredweight₹1,150 per tonne
Accrual at tender$2,698.00₹31,39,500
Freight billed$2,746.28 on the 410₹31,69,860
Variance$48.28, 1.79%: within 2% tolerance, approve₹30,360, 0.97%: within tolerance, approve
Tax on freightNo federal VAT or GST on rail freightGST 5% under serial 9 item (i), Notification 11/2017: ₹1,58,493
If the commodity code were wrongRated at an illustrative $1.71 per cwt: $3,307.14, 22.6% over accrual, disputeWrong commodity classification changes the per-tonne rate; dispute against the forwarding note
Record that joins the documentsN9 BM number on 404, 410 and remittanceRR number and FNR on RR, e-way bill and freight voucher

The weight variance is normal and should pass silently. The commodity variance is not, and it shows why audit needs the STCC from the 404 on file: the 410 will rate whatever code was tendered, so the error is in your data, not the railroad's arithmetic. Fix the master record and file a correction before the next car ships.

India has no 404: forwarding note, e-Demand and the railway receipt

Indian Railways does not take X12 404 transactions. The same facts move through the forwarding note, demand registration in FOIS and the railway receipt, and the GST e-way bill links the receipt number back to the tax record. Treat the comparison as functional, not as a format mapping.

Section 64 of the Railways Act, 1989 requires every person entrusting goods to a railway for carriage to execute a forwarding note, and makes the consignor responsible for the correctness of its particulars. Section 65 requires the railway to issue a railway receipt, on completion of loading where the consignor loads, and makes it prima facie evidence of the weight and number of packages it states, with exceptions for unchecked wagon-load or train-load consignments.

  • Demand and allotment: RailSAHAY lists the sequence as demand registration at the terminal or through e-Demand, payment of the wagon registration fee, allotment and supply of the rake, loading, weighment, freight payment and railway receipt generation.
  • Tracking reference: the 11-digit Freight Number Record on the RR is the number used to track the consignment, much as the car initial and number track a US carload.
  • Electronic receipt: registered customers can opt for the eT-RR, emailed to them and transferable to the consignee digitally through the e-Demand application.
  • Tax link: rail freight carries GST at 5% under serial 9 item (i) of Notification 11/2017-Central Tax (Rate); the RR and freight documents support the recipient's credit claim.

The e-way bill is where a wrong RR number now gets caught. Rule 138(2A) of the CGST Rules puts generation on the registered supplier or recipient for rail movements and bars the railways from delivering goods unless the e-way bill is produced. GSTN's advisory of 18 December 2024 says FOIS is integrated with the e-way bill system and that RR numbers are validated against FOIS data, raising an alert on a mismatch.

Rail consignments booked through FOIS must carry the railway receipt number in the e-way bill as F, the origin station code and the RR number, such as FSJWT123456789, under GSTN's 18 December 2024 advisory; the e-way bill system validates each entry against FOIS data under CGST Rule 138(2A).

Our page on keeping rail demand, allotment and railway receipts connected covers the Indian record chain from indent to receipt. This article stays with the 404 and uses the Indian process only as the comparison an India-and-US shipper needs when one team runs both rail desks.

Validations to automate and decisions the rail desk keeps

Every field in a 404 can be checked by a fixed rule before transmission, except the few that depend on judgment about the commodity or the commercial route. Put the rules in the translator or the warehouse system, not in a clerk's checklist.

Scroll horizontally to see all columns.

404 checks: rules applied before transmission and tasks where software only assists the rail desk
TaskHandled byHowHuman step
Matching N7 car marks to the railroad's placement listFixed ruleBlock transmission on any mismatchClerk rechecks the car on the siding
Rejecting a reused N9 BM bill of lading numberFixed ruleUnique key across the last 24 monthsNone
Pulling STCC and hazardous fields from the item masterFixed ruleNo free-text entry at shippingNone at shipping
Proposing an STCC for a newly created item from its descriptionText-matching software suggests codesSuggestion with similar itemsTraffic manager approves the code
Checking unit, weight code and WM agreement consistencyFixed ruleBNX A requires N9 WM; units match BX07None
Reading a railroad's PDF guide change notice and flagging affected segmentsDocument software summarises changesDraft list of affected mapsEDI analyst decides what to change
Choosing a route in R2 against contract termsPersonContract table shown on screenRail traffic manager

Ownership follows the same split. The data in a 404 comes from four teams, and the person who approves each source should be named before go-live, so that a failed car can be traced to a record and an owner within minutes.

Scroll horizontally to see all columns.

Who owns each block of 404 data and who signs off the source before go-live
404 dataSource recordOwnerSigns off
Car initial and number, sealsWarehouse loading record and siding placement listShipping supervisorPlant logistics manager
STCC, hazardous codes and descriptionsItem masterMaster data teamTraffic manager and dangerous goods adviser
Payment terms, SCAC, route and weight agreementRail contract registerRail traffic managerProcurement lead
Stations and partiesCustomer and location masterCustomer serviceTraffic manager
Envelope, control numbers and partner mapsEDI translatorEDI analystIntegration lead

Go-live checklist for a new 404 trading partner

Most 404 failures at go-live are master data failures, not EDI syntax failures. Run the checklist with the railroad's own test process and do not switch to production until test cars have matched end to end, from tender to invoice.

Scroll horizontally to see all columns.

Go-live checks for a carload 404 connection with a new railroad
CheckPass conditionOwner
Partner guide and versionMap built to the railroad's current guide and GS08 versionEDI analyst
Envelope and acknowledgmentsGS01 SR; control numbers unique; 997 reconciled dailyEDI analyst
Station spellingsEvery F9 and D9 value confirmed by the railroadTraffic manager
STCC coverageEvery shippable item has an approved code; hazardous items have 49-series codes and LH dataMaster data team
Car captureN7 taken from the loaded car and compared with the placement listShipping supervisor
Weight basisBNX code, units and WM references agreed per laneRail traffic manager
Invoice matchTest car's 410 joins to its 404 by BM number; variance rules setFreight audit lead
Correction pathProcess agreed for corrected 404s and the railroad's responseEDI analyst
India desk, if anyRR, FNR and e-way bill entry format reconciled in the same freight registerIndirect tax manager

For the envelope layer itself, our guide to ISA, GS and ST control numbers explains how to stop duplicate transmissions. More rail, road and EDI topics are in the logistics and supply chain library, and if you want a 404 connection, car-number validation and 410 matching built around your plant and railroads, describe the setup in our request for proposal form.

Discuss this workflow

Describe your current systems, the recurring exception and the outcome you need. Keep shipment, customer and financial records out of the initial message.

START A CONVERSATION

Let’s talk about your next build.

Prepare your brief below, then review and send it in your email app to sales@nextlabsonline.com.

SELECTED INDUSTRYLogistics & supply chain

Article: EDI 404 Rail Carrier Shipment Information for Carload Shippers · EDI & Message Standards

THE FIRST CONVERSATION

Your product idea, AI opportunity or automation challenge—and a useful first milestone.

All fields are required.

A few sentences about the problem, your users and timing are enough.

We’ll use your details to respond to your enquiry. Please don’t include patient records, passwords or confidential information. Privacy Policy · Website Terms.

Common operational questions

Practical answers for operations, engineering, and finance teams working on edi 404 rail shipment information in logistics & supply chain.

What is the difference between an EDI 404 and an EDI 410?
The 404 goes from the shipper to the railroad and tenders a car with its commodity, weight, parties and route. The 410 goes from the rail carrier to the party paying the freight and itemises the charges. The bill of lading number in the 404's N9 segment is the usual key that joins the two.
Where do the car initial and car number go in a 404?
In the N7 equipment details segment. In Canadian National's implementation guide, N701 holds the equipment initial of up to four characters and N702 the equipment number of up to ten. N703 and N704 carry the weight and whether it is estimated or net, and N711 code RR identifies a railcar.
What is an STCC code and where is it sent in the 404?
The Standard Transportation Commodity Code is a seven-digit commodity code published by Railinc and used on waybills and shipping documents. In a 404 it goes in L503 of the L5 segment, with qualifier T in L504. Hazardous materials use 49-series codes, which are repeated in the LH1 hazardous identification segment.
Does Indian Railways accept EDI 404 transactions?
No. Indian rail shippers register demand through FOIS or at the terminal, execute a forwarding note under section 64 of the Railways Act, 1989, and receive a railway receipt or eT-RR under section 65. The RR number is then entered in the GST e-way bill and validated against FOIS data.

References

Sources checked 13 November 2026. US and India statutory authorities and vendor documentation support platform facts; the worked examples and diagrams are original.

About the author

Vikasraj Yadav writes about operational decisions, software and automation for NextEdge Labs.