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

EDI 410 Rail Freight Invoice: Complete Guide

EDI 410 rail freight invoice explained: the B3B, N7, N8, L0, L1 and L3 segments, rail charge codes, a live carload invoice and how to audit it.

The EDI 410 is a railroad's freight bill as data. Once a car moves, the railroad that bills the shipment sends a 410 to the party paying the freight: the shipper on prepaid, the consignee on collect, or a third party. It looks a lot like the motor carrier 210, with one big difference. A rail invoice is built from a waybill, so it carries the car, the waybill number, the rail stations and the railroads in the route, and those are what you match it on.

This guide covers what the 410 bills, every segment you will map, a live carload invoice that continues our 404 and 417 examples, how the 410 compares with the 210 and the ocean 310, and the checks that catch rail billing errors.

What Is an EDI 410?

An EDI 410 is the Rail Carrier Freight Details and Invoice transaction set defined by ASC X12, which can be used to provide detailed information of charges associated with a rail movement. It travels in functional group IR (the GS01 value).

Authoritative references for 410 work:

Who sends it? The railroad billing the shipment. On an interline move under a through rate, one railroad usually bills the payer and the railroads divide the revenue among themselves through interline settlement.

Who receives it? The party paying the freight: the shipper on prepaid, the consignee on collect, or a third party such as a 3PL or freight payment provider.

When is it sent? After the railroad rates the waybill. CN's guide, for example, says it collects the day's invoices and transmits them overnight.

Why does it matter? Rail freight is billed from the waybill: the car, the weight basis, the STCC, the route and the price authority. The 410 is where any difference between what you tendered on the 404 and what the railroad recorded turns into money.

What the 410 Bills

  • Line haul. The base charge for the move, often per car on carload freight, or per hundredweight or per ton under some price authorities.
  • Fuel surcharge. Often a rate per mile on the route miles, or a percentage, depending on the railroad's fuel program.
  • Accessorials. Switching, storage in transit, diversion and reconsignment, and similar services. CN's guide notes that it invoices some optional services outside the 410, so ask each railroad which charges come on the 410 and which come another way.
  • Taxes. Cross-border and Canadian moves can carry tax lines, such as GST, as separate charges.
  • References. The waybill number and date, the bill of lading number, and any PO or contract numbers the shipper put on the bill of lading.
  • Price authority. The tariff or contract the charge is rated under, in the PI segment, when the railroad sends it.

CN's guide makes a point worth repeating for every railroad: if you need a reference on the invoice to reconcile it, put it on the shipping instructions. The railroad can only copy what it received.

Interactive Example: Prepaid Carload Invoice

The car from our 404 and 417 examples, QPLX 450127, has been delivered to Joliet. The origin railroad (QPRR) bills the shipper, who paid the freight.

B3B gives the invoice number, prepaid terms, the billing date, the net amount due (6,936.52), the payment due date, the SCAC, rail mode, the shipper's bill of lading number as the shipment ID, pounds and US dollars. N9 carries the bill of lading and PO, N7 the car, N8 the waybill, and F9/D9 the stations. The N1 loops name the payer (with the railroad's customer code), shipper and consignee, and R2 the two-railroad route. In the LX loop, the first L0/L1 pair bills the line haul at 6,850.00 per car, and the second bills a fuel surcharge of 0.21 per mile on 412 miles (86.52). L3 totals the invoice. The sample follows the layout of CN's 004010 invoice sample. All names, SCACs, codes, rates 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 exampleRailroadEDI 410

Rail Carrier 410 Freight Details and Invoice (Prepaid Carload)

The origin railroad's freight bill for the wallboard carload: invoice number, terms, billing date, amount due, due date and SCAC in B3B, references in N9, the car in N7, the waybill in N8, stations in F9/D9, payer, shipper and consignee, the route in R2, a per-car line haul and a per-mile fuel surcharge in L1, totalled in L3

Document
410 Rail Carrier Freight Details and Invoice
From / to
QPRR → NORTHGATEGYP
Segments
30
Interchange date
Nov 10, 2026

Raw EDI (X12)

1
ISA*00* *00* *02*QPRR *ZZ*NORTHGATEGYP *261110*0215*U*00401*000004101*0*P*>~
2
GS*IR*QPRR*NORTHGATEGYP*20261110*0215*4101*X*004010~
3
ST*410*4101~
4
B3B*QP26110713*PP*20261110*693652*20261210*QPRR*R*NGP-BL-60418*L**USD~
5
N9*BM*NGP-BL-60418~
6
N9*PO*LBS-778120~
7
N7*QPLX*450127*168000*N*67200******RR~
8
M7*NG0418827~
9
N8*318204*20261106~
10
F9*41720*FORT DODGE*IA~
11
D9*63115*JOLIET*IL~
12
N1*PR*NORTHGATE GYPSUM PRODUCTS*25*NGP0071~
13
N3*2400 QUARRY RD~
14
N4*FORT DODGE*IA*50501*US~
15
N1*SH*NORTHGATE GYPSUM PRODUCTS~
16
N4*FORT DODGE*IA~
17
N1*CN*LAKELINE BUILDING SUPPLY~
18
N4*JOLIET*IL~
19
R2*QPRR*S*DES MOINES~
20
R2*QSWR*1~
21
LX*1~
22
L5*1*GYPSUM WALLBOARD*3275440*T~
23
L0*1***168000*N***336*BDL~
24
L1*1*6850*PC*685000~
25
L0*1~
26
L1*1*0.21*PM*8652****ENS*********412*MR~
27
L3*168000*N***693652~
28
SE*26*4101~
29
GE*1*4101~
30
IEA*1*000004101~

Human-Readable

Interchange

Sender ID(02)QPRR
Receiver ID(ZZ)NORTHGATEGYP
Date261110
Time0215
Standards IDU
Version00401
Control Number000004101
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDIRIR
SenderQPRR
ReceiverNORTHGATEGYP
Date20261110
Time0215
Control Number4101
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 410

Rail Carrier Freight Details and Invoice
Transaction Type410
Control Number4101
Segments, ST to SE26
Count in SE0126 (matches)

Segment Detail

B3BBeginning Segment for Carrier's Invoice
B3B01Invoice NumberQP26110713
B3B02Shipment Method of PaymentPP
B3B03Date20261110
B3B04Net Amount Due693652
B3B05Date20261210
B3B06Standard Carrier Alpha CodeQPRR
B3B07Transportation Method/Type CodeR
B3B08Shipment Identification NumberNGP-BL-60418
B3B09Weight Unit CodeL
B3B11Currency CodeUSD
N9Reference Identification
N901Reference Identification QualifierBM
N902Reference IdentificationNGP-BL-60418
N9Reference Identification
N901Reference Identification QualifierPO
N902Reference IdentificationLBS-778120
N7Equipment Details
N701Equipment InitialQPLX
N702Equipment Number450127
N703Weight168000
N704Weight QualifierN
N705Tare Weight67200
N711Equipment Description CodeRR
M7Seal Numbers
M701Seal NumberNG0418827
N8Waybill Reference
N801Waybill Number318204
N802Date20261106
F9Origin Station
F901Freight Station Accounting Code41720
F902City NameFORT DODGE
F903State or Province CodeIA
D9Destination Station
D901Freight Station Accounting Code63115
D902City NameJOLIET
D903State or Province CodeIL
N1Party Identification
N101Entity CodePR
N102NameNORTHGATE GYPSUM PRODUCTS
N103ID Qualifier25
N104ID CodeNGP0071
N3Party Location
N301Address2400 QUARRY RD
N4Geographic Location
N401CityFORT DODGE
N402State/ProvinceIA
N403Postal Code50501
N404CountryUS
N1Party Identification
N101Entity CodeSH
N102NameNORTHGATE GYPSUM PRODUCTS
N4Geographic Location
N401CityFORT DODGE
N402State/ProvinceIA
N1Party Identification
N101Entity CodeCN
N102NameLAKELINE BUILDING SUPPLY
N4Geographic Location
N401CityJOLIET
N402State/ProvinceIL
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
L1Rate and Charges
L101Lading Line Item Number1
L102Freight Rate6850
L103Rate/Value QualifierPC
L104Charge685000
L0Line Item - Quantity and Weight
L001Lading Line Item Number1
L1Rate and Charges
L101Lading Line Item Number1
L102Freight Rate0.21
L103Rate/Value QualifierPM
L104Charge8652
L108Special Charge or Allowance CodeENS
L117Billed/Rated-as Quantity412
L118Billed/Rated-as QualifierMR
L3Total Weight and Charges
L301Weight168000
L302Weight QualifierN
L305Charge693652
1 functional group1 transactionControl #000004101Valid

410 Structure at a Glance

The table follows X12 release 004010.

AreaSegmentNameUsage in the standardNotes
HeadingSTTransaction Set HeaderMandatoryST01 = 410
HeadingB3BBeginning Segment for Carrier's InvoiceMandatoryInvoice number, terms, dates, amount, SCAC, mode, currency
HeadingC4Alternate Amount DueOptionalAmount due in another currency
HeadingN9Reference IdentificationOptional, up to 30Bill of lading, PO, contract and tax references
HeadingCM / NTECargo manifest, notesOptionalManifest data and free text
Heading loopN7Equipment DetailsMandatory, up to 500One per car or container
N7 loopVC / G4 / M7 / N5 / IC / IM / M12 / GAVehicle, scale, seals, equipment ordered, intermodal, in-bond, grainOptionalDetail for specific traffic
HeadingN8Waybill ReferenceMandatory, up to 499Waybill number and date
HeadingF9Origin StationMandatoryOrigin station and codes
HeadingD9Destination StationMandatoryDestination station and codes
Heading loopN1 / N2 / N3 / N4 / PER / BLName, address and billingOptional, up to 10Payer, shipper, consignee and others
Heading loopS1 / S2 / S9Stop-off detailsOptionalStop-offs
HeadingR2 / R9Route Information, Route CodeOptionalRailroads in the route
HeadingPSProtective Service InstructionsOptionalTemperature and protective service
Detail loopLXAssigned NumberMandatory, up to 25Starts each invoice line
LX loopL5Description, Marks and NumbersMandatoryDescription and STCC
L0 loopL0Line Item - Quantity and WeightMandatory, up to 25Starts each charge group
L0 loopMEA / L1 / DTM / PIMeasurements, rate and charges, dates, price authorityL1 mandatoryThe charges
T1 loopT1 / T2 / T3 / T6 / T8Transit inbound detailOptionalTransit billing
SummaryL3Total Weight and ChargesMandatoryInvoice totals
SummaryX7Customs InformationOptionalCustoms data
SummarySETransaction Set TrailerMandatorySegment count and control number

Note where the 410 differs from the 210. The car (N7), the waybill (N8) and the stations (F9, D9) are mandatory, and each L1 sits inside an L0 loop within the LX loop. That is why CN's samples send a bare L0*1 before the fuel surcharge L1: each charge opens its own L0 loop.

Key Segments Explained

B3B: Beginning Segment for Carrier's Invoice

B3B*QP26110713*PP*20261110*693652*20261210*QPRR*R*NGP-BL-60418*L**USD~
ElementNameExampleWhat it means
B3B01Invoice NumberQP26110713The railroad's invoice number
B3B02Shipment Method of PaymentPPPP prepaid, CC collect, TP third party pay, 11 Rule 11 shipment
B3B03Date20261110The billing date
B3B04Net Amount Due693652Two implied decimals: 6,936.52
B3B05Date20261210The payment due date
B3B06Standard Carrier Alpha CodeQPRRThe billing railroad
B3B07Transportation Method/Type CodeRR rail. Railroads that bill intermodal on the 410 use other codes
B3B08Shipment Identification NumberNGP-BL-60418The shipper's shipment number
B3B09Weight Unit CodeLThe X12 note says the default is pounds
B3B10Correction IndicatorSet on a corrected or balance-due bill; the railroad's guide lists the codes it sends
B3B11Currency CodeUSDCurrency of the invoice

B3B is a rail-specific beginning segment. It is not the B3 used in the 210, 310 and 110: the invoice number comes first, the due date has its own element, and the mode and currency are part of the segment. B3B04 is a numeric field with two implied decimals, so 693652 means 6,936.52.

N9: Reference Identification

N9*BM*NGP-BL-60418~
N9*PO*LBS-778120~

CN's guide lists qualifiers such as BM bill of lading, WY waybill number, CT contract number, CO customer order number, and tax registration numbers on Canadian invoices. The bill of lading number is the reference most payers match on, because it is the one the shipper created.

N7 and N8: Car and Waybill

N7*QPLX*450127*168000*N*67200******RR~
N8*318204*20261106~

N701 and N702 are the car's reporting mark and number, N703/N704 the lading weight and qualifier, N705 the tare, and N711 the equipment description (RR rail car). N801 is the waybill number and N802 the waybill date. A 410 can bill many cars (the N7 loop repeats up to 500 times and N8 up to 499), so match each car to its own bill of lading and waybill.

F9, D9 and R2: Stations and Route

F9*41720*FORT DODGE*IA~
D9*63115*JOLIET*IL~
R2*QPRR*S*DES MOINES~
R2*QSWR*1~

The origin and destination stations carry the railroad's Freight Station Accounting Code in F901 and D901 and, when sent, the SPLC in F908 and D908. R2 lists each railroad with its routing sequence code and interchange junction. The route on the invoice should match the route on your 404 and the 417. If it does not, the rate may not be the one you expected.

N1 Loop: Payer, Shipper and Consignee

N1*PR*NORTHGATE GYPSUM PRODUCTS*25*NGP0071~
N1*SH*NORTHGATE GYPSUM PRODUCTS~
N1*CN*LAKELINE BUILDING SUPPLY~

N101 gives the role: PR payer, SH shipper, CN consignee. CN's guide also sends SF ship from and CO (its care-of party). N103 = 25 means N104 is the carrier's own customer code for the party, which is useful when one company has several billing accounts with the railroad.

L5, L0 and L1: Lading and Charges

LX*1~
L5*1*GYPSUM WALLBOARD*3275440*T~
L0*1***168000*N***336*BDL~
L1*1*6850*PC*685000~
L0*1~
L1*1*0.21*PM*8652****ENS*********412*MR~
ElementNameExampleWhat it means
L503 / L504Commodity Code, Qualifier3275440 / TThe STCC the car was rated on
L004 / L005Weight, Weight Qualifier168000 / NThe billed weight and its basis
L101Lading Line Item Number1Ties the charge to the lading line
L102Freight Rate6850The rate
L103Rate/Value QualifierPCHow the rate applies: PC per car, PM per mile, PU per unit, CW per hundredweight, MN minimum
L104Charge685000Two implied decimals: 6,850.00
L108Special Charge or Allowance CodeENSWhat the charge is, when it is not the line haul
L117 / L118Billed/Rated-as Quantity, Qualifier412 / MRThe quantity the rate was applied to, here 412 miles (MR mileage)

CN's guide lists the L108 codes it sends, including ENS fuel surcharge (the X12 name is energy surcharge, fuel adjustment factor), SWC switching charge, STR storage in transit, DIV diversion and reconsignment, TER terminal charge, GST goods and services tax, and several provincial carbon tax codes. Other railroads use their own subsets. Build a per-railroad table of the codes you accept and route anything else for review.

L3: Total Weight and Charges

L3*168000*N***693652~
ElementNameExampleWhat it means
L301 / L302Weight, Weight Qualifier168000 / NTotal weight
L305Charge693652Total charges: 6,936.52

Add the L104 charges and compare the sum with L305 and with B3B04. In the sample: 6,850.00 + 86.52 = 6,936.52.

EDI 410 vs 210, 310, 110 and 810

DocumentModeSent byBeginning segmentWhat it adds
410 Rail Carrier Freight Details and InvoiceRailRailroadB3BCar, waybill, rail stations, route
210 Motor Carrier Freight Details and InvoiceTruckMotor carrierB3Stops, proof of delivery, accessorials
310 Freight Receipt and Invoice (Ocean)OceanOcean carrierB3Vessel, ports, containers, bill of lading data
110 Air Freight Details and InvoiceAirAir carrier or forwarderB3Airports, air waybill, chargeable weight
810 Invoicen/aSellerBIGBills for goods, not transport

Some railroads will send a 210 instead of a 410 on request; CN's guide offers both. If your freight audit already reads 210s, ask whether the railroad's 210 carries the car and waybill data you need before choosing it over the 410.

How to Audit a 410

ErrorWhat happensPrevention
Invoice cannot be matchedBill sits unpaid; the railroad chases paymentMatch on bill of lading number, then car and waybill; send the references you need on the 404
Charges do not add upShort payment and disputesSum L104 and compare with L305 and B3B04
Wrong STCCCar rated under the wrong price authorityCompare L503 with the STCC in your contract and on your 404
Weight basis changedBilled on a scale weight you did not expectCompare L005 and the weight with your BNX01 and loading records
Unexpected routeDifferent rate or milesCompare R2 with your 404
Fuel surcharge miles wrongOverbilled fuelCheck L117 miles against the route and the railroad's fuel program
Implied decimals misreadAmounts off by a factor of 100Treat B3B04, L104 and L305 as two implied decimal places
Currency missedCanadian dollar bill paid in US dollars, or the reverseRead B3B11 and C4 on every invoice
Corrected bill paid twiceDuplicate paymentCheck B3B10 and key invoices on number and SCAC

410 Implementation Checklist

Before your first live 410 from a railroad:

  • Get the railroad's 410 guide and confirm the X12 version in GS08 (CN recommends 004010)
  • Confirm which charges come on the 410 and which are invoiced separately
  • Agree which references will appear in N9, and add them to your 404s
  • Load the railroad's L108 charge codes and map them to your freight cost accounts
  • Link each 410 to its bill of lading, car and waybill from the 404 and 417
  • Decide how corrected and balance-due bills are reviewed before payment
  • Return a 997 for each 410; CN's guide makes this mandatory
  • If you pay by EDI, agree on the remittance format, such as an 820
  • Test a single-car invoice, a multi-car invoice, a correction and a cross-border invoice if you have them

To put rail freight into product cost, our landed cost calculator shows how freight is allocated across order lines. See the EDI document types reference for where the transportation sets fit.

Where OrderSync Fits

Every car on a 410 started as a customer order. The PO numbers in N9, the consignee and the quantities your customer expects all depend on that order being captured correctly, 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 410 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 410?

The EDI 410 Rail Carrier Freight Details and Invoice is the X12 transaction a railroad uses to bill for a rail movement. It carries the invoice number, payment terms, amount due and due date in B3B, the car, waybill, stations and route, and each charge with the total.

What is the difference between EDI 410 and EDI 210?

The 210 is the motor carrier freight invoice and starts with B3. The 410 is the rail freight invoice and starts with B3B. The 410 also requires the car in N7, the waybill in N8 and the origin and destination stations in F9 and D9.

What is the B3B segment?

B3B is the beginning segment of the 410. B3B01 is the invoice number, B3B02 the payment terms, B3B03 the billing date, B3B04 the net amount due with two implied decimals, B3B05 the payment due date, B3B06 the railroad's SCAC, B3B07 the mode and B3B11 the currency.

Who receives the EDI 410?

The party paying the freight: the shipper on prepaid shipments, the consignee on collect, or a third party such as a 3PL or freight payment provider.

How do I match a 410 to a shipment?

Start with the bill of lading number in N9, then confirm the car in N7 and the waybill in N8. Those tie the invoice to your 404 and to any 417 waybill copies you received.

Why does a 410 have more than one L0 segment?

In the 410, each L1 charge sits inside an L0 loop. A second charge, such as a fuel surcharge, opens a new L0 loop, which is why railroads such as CN send a short L0 segment before it.

What is the ENS charge code?

ENS is the X12 code for energy surcharge (fuel adjustment factor). Railroads use it for the fuel surcharge, often as a rate per mile with the miles in L117.

Does the 410 include every rail charge?

Not always. Some railroads bill optional or accessorial services through other channels. CN's guide says certain optional services are invoiced through its web tool rather than the 410, so confirm with each railroad.

James Darby
Last updated: 11/7/2026

Related Resources