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

EDI 417 Rail Carrier Waybill Interchange Guide

EDI 417 explained: the rail waybill railroads exchange on interline moves and send customers, its BX, N7, N8, F9, D9 and R2 segments, a sample and checks.

The EDI 417 is the waybill that travels with a rail car from one railroad to the next. A shipper tenders a car with a 404 Rail Carrier Shipment Information. The origin railroad turns that bill of lading into its own waybill, gives it a number, and sends a 417 to every other railroad that will handle the car, so the connecting road knows what it is receiving at the junction before the car arrives. Some railroads also send the 417 to shippers, consignees and logistics providers, which is how most non-railroad readers meet it.

This guide covers what the 417 carries, how waybills move between railroads, every segment you will map, a live sample that continues the carload from our 404 guide, how the 417 compares with the 404 and the 410 freight invoice, and what to check when you receive one.

What Is an EDI 417?

An EDI 417 is the Rail Carrier Waybill Interchange transaction set defined by ASC X12, used to provide a rail carrier with detailed movement instructions for a shipment. The X12 description notes that Class I railroads in the United States and Canada use it, and CN's current guide describes it as used by all Class I rail carriers in the US, Canada and Mexico. It travels in functional group WB (the GS01 value).

Authoritative references for 417 work:

Who sends it? A railroad: usually the origin railroad that created the waybill, and in some cases a railroad that corrects or reissues it.

Who receives it? The other railroads in the route, and customers such as shippers, consignees, 3PLs and freight payment providers who ask for waybill copies.

When is it sent? When the waybill is created, after the car is released, and again when the waybill is corrected or the shipment is diverted.

Why does it matter? Every later step depends on the waybill. The connecting railroad plans its trains from it, the destination railroad delivers to the consignee in it, and the freight bill is rated from the commodity, weight and route on it. If you receive 417s, they are your earliest confirmation that the railroad billed the car the way you tendered it.

How Waybills Move Between Railroads

North American rail freight often moves over more than one railroad. A car might start on a regional railroad, be handed to a Class I at a junction, and be delivered by a short line at the far end. Each of those railroads needs the same shipment data, and the 417 is the standard way to share it.

  1. Shipper releases the car. The shipper sends a 404, or enters the bill of lading on the railroad's portal.
  2. Origin railroad creates the waybill. It assigns a waybill number and date, adds the station codes and the route, and confirms the weight basis and the price authority.
  3. Origin railroad sends a 417. Each connecting railroad gets the waybill before the car reaches the junction. Customers who subscribe get a copy.
  4. Car moves and is interchanged. At each junction the receiving railroad matches the physical car (by reporting mark and number) to the waybill it already holds.
  5. Revenue is settled. On a through rate, the railroads divide the revenue among themselves through the industry's interline settlement process. On a Rule 11 shipment (BX03 = 11), separate rates apply to different parts of the route, and the railroads' guides explain how each part is billed.
  6. The payer is billed. The billing railroad sends a 410 to the party that pays the freight.

The waybill number in N8 and the car's reporting mark and number in N7 are the keys that tie the 404, the 417, the car's movement and the 410 together.

Interactive Example: Origin Railroad to Connecting Railroad

This continues the shipment from our 404 guide. The origin railroad (QPRR) has created waybill 318204 for the loaded wallboard car QPLX 450127 and sends the 417 to the connecting railroad (QSWR), which will take the car at Des Moines and deliver it to Joliet.

BX repeats the shipment terms, now with the bill of lading number as the shipment ID. BNX keeps the shipper's scale weight and single shipment billing. DTM (qualifier 168) gives the release date and time. N7 adds the car's tare weight to the lading weight from the 404. N8 carries the waybill number and date. F9 and D9 now include each station's Freight Station Accounting Code. The parties, the two R2 route segments (with rail mode in R206) and the lading follow. All names, SCACs, reporting marks, codes 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 417

Rail Carrier 417 Waybill Interchange (Origin Railroad to Connecting Railroad)

The origin railroad's waybill for the same wallboard carload, passed to the connecting railroad at the interchange: BX and BNX shipment data, release date in DTM, car with tare weight in N7, waybill number and date in N8, origin and destination stations with FSACs in F9/D9, parties, the route in R2 and the lading in L5/L0

Document
417 Rail Carrier Waybill Interchange
From / to
QPRR → QSWR
Segments
30
Interchange date
Nov 6, 2026

Raw EDI (X12)

1
ISA*00* *00* *02*QPRR *02*QSWR *261106*1610*U*00401*000004171*0*P*>~
2
GS*WB*QPRR*QSWR*20261106*1610*4171*X*004010~
3
ST*417*4171~
4
BX*00*R*PP*NGP-BL-60418*QPRR*L*B*N~
5
BNX*S**S~
6
N9*BM*NGP-BL-60418**20261106*1430~
7
N9*PO*LBS-778120~
8
DTM*168*20261106*1430*CT~
9
N7*QPLX*450127*168000*N*67200******RR~
10
M7*NG0418827~
11
N8*318204*20261106~
12
F9*41720*FORT DODGE*IA~
13
D9*63115*JOLIET*IL~
14
N1*SH*NORTHGATE GYPSUM PRODUCTS~
15
N3*2400 QUARRY RD~
16
N4*FORT DODGE*IA*50501*US~
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
N3*2400 QUARRY RD~
22
N4*FORT DODGE*IA*50501*US~
23
R2*QPRR*S*DES MOINES***R~
24
R2*QSWR*1****R~
25
LX*1~
26
L5*1*GYPSUM WALLBOARD*3275440*T~
27
L0*1***168000*N***336*BDL~
28
SE*26*4171~
29
GE*1*4171~
30
IEA*1*000004171~

Human-Readable

Interchange

Sender ID(02)QPRR
Receiver ID(02)QSWR
Date261106
Time1610
Standards IDU
Version00401
Control Number000004171
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDWBWB
SenderQPRR
ReceiverQSWR
Date20261106
Time1610
Control Number4171
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 417

Rail Carrier Waybill Interchange
Transaction Type417
Control Number4171
Segments, ST to SE26
Count in SE0126 (matches)

Segment Detail

BXGeneral Shipment Information
BX01Transaction Set Purpose Code00
BX02Transportation Method/Type CodeR
BX03Shipment Method of PaymentPP
BX04Shipment Identification NumberNGP-BL-60418
BX05Standard Carrier Alpha Code (SCAC)QPRR
BX06Weight Unit CodeL
BX07Shipment QualifierB
BX08Section Seven CodeN
BNXRail Shipment Information
BNX01Shipment Weight CodeS
BNX03Billing CodeS
N9Reference Identification
N901Reference Identification QualifierBM
N902Reference IdentificationNGP-BL-60418
N904Date20261106
N905Time1430
N9Reference Identification
N901Reference Identification QualifierPO
N902Reference IdentificationLBS-778120
DTMDate/Time Reference
DTM01Date Qualifier168
DTM02Date20261106
DTM03Time1430
DTM04CT
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 CodeSH
N102NameNORTHGATE GYPSUM PRODUCTS
N3Party Location
N301Address2400 QUARRY RD
N4Geographic Location
N401CityFORT DODGE
N402State/ProvinceIA
N403Postal Code50501
N404CountryUS
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
N3Party Location
N301Address2400 QUARRY RD
N4Geographic Location
N401CityFORT DODGE
N402State/ProvinceIA
N403Postal Code50501
N404CountryUS
R2Route Information
R201Standard Carrier Alpha CodeQPRR
R202Routing Sequence CodeS
R203City NameDES MOINES
R206Transportation Method/Type CodeR
R2Route Information
R201Standard Carrier Alpha CodeQSWR
R202Routing Sequence Code1
R206Transportation Method/Type CodeR
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 #000004171Valid

417 Structure at a Glance

The table follows X12 release 004010 and lists the segments most 417s carry. Like the 404, the full set also has vehicle, intermodal, empty car disposition, transit, export, customs and hazardous materials segments.

AreaSegmentNameUsage in the standardNotes
HeadingSTTransaction Set HeaderMandatoryST01 = 417
HeadingZC1Beginning Segment for Data Correction or ChangeOptionalMarks a corrected waybill
HeadingBXGeneral Shipment InformationOptionalPurpose, mode, payment, shipment ID, SCAC, weight unit
HeadingBNXRail Shipment InformationOptionalWeight basis and billing type
HeadingN9Reference IdentificationOptional, up to 30Bill of lading, PO and other references
HeadingDTMDate/Time ReferenceOptional, up to 5Release and other dates
Heading loopN7Equipment DetailsMandatory, up to 500One per car or container
N7 loopM7Seal NumbersOptionalSeals
N7 loopIMAInterchange Move AuthorityOptionalAuthority for an interchange movement
HeadingN8Waybill ReferenceOptional, up to 499Waybill number and date
HeadingN8AAdditional Reference InformationOptionalMore waybill references
HeadingV9Event DetailOptionalAn event tied to the waybill
HeadingF9Origin StationMandatoryStation, FSAC, SPLC, postal code
HeadingD9Destination StationMandatoryStation, FSAC, SPLC, postal code
Heading loopN1 / N2 / N3 / N4 / REF / PER / BLName, address and billingMandatory, up to 10Shipper, consignee, payer and others
Heading loopS1 / S2 / S9Stop-off detailsOptionalStop-offs
HeadingR2Route InformationMandatory, up to 13One per railroad
HeadingR9Route CodeOptionalA published route code
HeadingH3 / PSSpecial handling, protective serviceOptionalHandling and temperature
Detail loopLXAssigned NumberMandatory, up to 25One per lading line
LX loopL5Description, Marks and NumbersMandatoryDescription and STCC
LX loopL0 / MEA / PIQuantity, weight, measurements, price authorityOptionalWeight, packages, price authority
SummarySETransaction Set TrailerMandatorySegment count and control number

Two structural differences from the 404: R2 is mandatory in the 417, and the 417 carries the railroad's waybill reference in N8. The 417 has no M3 release segment; the release is already done, and CN's guide reports it in DTM instead.

Key Segments Explained

BX and BNX: Shipment Information

BX*00*R*PP*NGP-BL-60418*QPRR*L*B*N~
BNX*S**S~

The elements match the 404. BX01 is the purpose code, BX02 the mode (R rail), BX03 the payment terms, BX04 the shipment ID, BX05 the SCAC of the railroad issuing the waybill, BX06 the weight unit and BX07 the shipment qualifier. In CN's sample, BX04 carries the shipper's bill of lading number. BNX01 is the weight basis and BNX03 the billing type: here, shipper certified scale weight and single shipment billing.

If you receive 417s as a shipper, compare BX03 and BNX01 with what you sent on the 404. A change in payment terms or weight basis means the railroad billed the car differently from your instructions.

DTM: Release Date

DTM*168*20261106*1430*CT~
ElementNameExampleWhat it means
DTM01Date/Time Qualifier168168 release
DTM02Date20261106Release date
DTM03Time1430Release time
DTM04Time CodeCTTime zone, here central time

N7: Equipment Details

N7*QPLX*450127*168000*N*67200******RR~
ElementNameExampleWhat it means
N701Equipment InitialQPLXThe car's reporting mark
N702Equipment Number450127The car number
N703Weight168000Lading weight
N704Weight QualifierNN actual net weight
N705Tare Weight67200Weight of the empty car
N711Equipment Description CodeRRRR rail car

CN's 417 also sends the car length (N715), the tare qualifier (N716, M marked), height and width (N720, N721) and the AAR car type code (N724). Those come from the railroad's equipment records, not from the shipper, which is why the 417 is often more complete than the 404 it was built from.

N8: Waybill Reference

N8*318204*20261106~
ElementNameExampleWhat it means
N801Waybill Number318204The railroad's waybill number, up to six digits
N802Date20261106The waybill date
N803 to N805Cross Reference Type, Equipment Initial, Equipment NumberA cross reference to another car or waybill
N806 / N807Waybill Number, DateA related waybill, such as the original of a rebill
N810 / N811Standard Carrier Alpha Code, Freight Station Accounting CodeThe destination railroad and its station code

Waybill numbers are short and repeat over time, so a waybill is identified by its number, date and issuing railroad together, never the number alone. Store all three.

F9 and D9: Stations With FSAC Codes

F9*41720*FORT DODGE*IA~
D9*63115*JOLIET*IL~
ElementNameExampleWhat it means
F901 / D901Freight Station Accounting Code41720The railroad's code for the station
F902 / D902City NameFORT DODGEStation name
F903 / D903State or Province CodeIAState or province
F908 / D908Standard Point Location CodeThe SPLC, when sent
F909 / D909Postal CodeStation postal code, when sent

A shipper's 404 often has only the station name. The railroad's 417 adds the codes. If you load rail data into a transportation or freight audit system, use the FSAC and SPLC from the 417 as the station key rather than the spelling.

R2: Route Information

R2*QPRR*S*DES MOINES***R~
R2*QSWR*1****R~
ElementNameExampleWhat it means
R201Standard Carrier Alpha CodeQPRRThe railroad
R202Routing Sequence CodeSS origin carrier on the shipper's routing, R origin carrier on a Rule 11 shipment, 1 first carrier after origin
R203City NameDES MOINESThe interchange junction
R206Transportation Method/Type CodeRR rail

Check the route on every 417 you receive. If the railroads or junctions differ from your 404, the car is moving on a route you did not ask for, and the rate may differ too.

N1, LX, L5 and L0

The party and lading segments work as they do in the 404: N1 with SH, CN and PF, then L5 with the description and STCC (L504 = T) and L0 with the weight, weight qualifier and package count. CN's 417 adds a customer identification code in N103/N104 for each party, so the receiving railroad knows which of its customer accounts the party is.

417 vs 404, 410, 214 and 315

DocumentModeSent bySent toPurpose
404 Rail Carrier Shipment InformationRailShipperOrigin railroadBill of lading and release
417 Rail Carrier Waybill InterchangeRailRailroadOther railroads, customersThe waybill built from the bill of lading
410 Rail Carrier Freight Details and InvoiceRailRailroadFreight payerFreight bill for the move
214 Shipment Status MessageTruck and other modesCarrierShipper or payerStatus events
315 Status Details (Ocean)OceanOcean carrierShipper, consigneeContainer events, including rail legs of an ocean move
858 Shipment InformationAnyShipperCarrierGeneral bill of lading data

The 417 is not a status message. It tells you how the car was billed and routed, not where it is now. For car location, ask the railroad which status feed or tracing tool it offers. On an import container that moves inland by rail under the ocean carrier's bill, the ocean carrier's 315 reports rail events such as loaded on rail and rail departure.

What to Check When You Receive a 417

CheckWhyHow
Car matches your 404A different car means a bill applied to the wrong equipmentCompare N701/N702 with your 404 and loading records
Weight and weight basisThe freight bill will be rated on themCompare N703, L004 and BNX01 with what you declared
STCCThe price authority depends on itCompare L503 with the STCC in your rail contract
Route and junctionsA different route can mean a different rate and transit timeCompare every R2 with your 404
Payment termsPrepaid and collect decide who gets the 410Compare BX03 with your 404 and your sales terms
Consignee and destinationA wrong consignee is a misdeliveryCompare D9 and N1*CN with the customer's order
Corrected waybillsA correction replaces earlier dataVersion 417s by waybill number, date and SCAC, and flag changes

417 Implementation Checklist

Before you start receiving 417s from a railroad:

  • Ask the railroad whether it sends 417s to customers, and which shipments it includes (outbound, inbound, both)
  • Confirm the X12 version in GS08; CN, for example, sends release 008050
  • Key waybills on number, date and issuing SCAC, and link them to your bill of lading and car
  • Map the station codes (F901, D901, F908, D908) into your location master
  • Decide how corrected waybills update stored data, and who reviews the changes
  • Feed the weight, STCC and route into your freight audit so the 410 can be checked against them
  • Confirm the 997 you will return for each 417
  • Test a single-line route, an interline route, a correction and a multi-car shipment

For how rail sets sit next to the order, ship notice and invoice, see our EDI document types reference.

Where OrderSync Fits

The PO number a railroad copies onto its waybill, and the consignee and quantity behind it, all come from a customer order. That order might have 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 417 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 417?

The EDI 417 Rail Carrier Waybill Interchange is the X12 transaction railroads use to share a shipment's waybill with other railroads in the route and with customers. It carries the waybill number and date, the car, stations, parties, route and lading.

What is the difference between EDI 404 and EDI 417?

The shipper sends the 404 to the origin railroad as its bill of lading. The railroad creates a waybill from it and sends the 417 to other railroads and to customers. The 417 adds railroad data such as the waybill number, station codes and car details.

Who sends the EDI 417?

A railroad. The origin railroad usually issues it when it creates the waybill. CN's guide describes the 417 as used by all Class I rail carriers in the US, Canada and Mexico.

Can a shipper receive an EDI 417?

Yes, if the railroad offers it. CN's guide says the 417 can provide a rail carrier or a customer with movement instructions. Ask each railroad whether it sends 417s to customers and on which shipments.

Where is the waybill number in a 417?

In the N8 segment. N801 is the waybill number and N802 the waybill date. Identify a waybill by its number, date and issuing railroad together.

What is an FSAC in the F9 and D9 segments?

The Freight Station Accounting Code is a railroad's code for a station. It goes in F901 for the origin and D901 for the destination, next to the station name, state and, when sent, the Standard Point Location Code.

Does the 417 tell me where my rail car is?

No. The 417 is the waybill: how the car was billed and routed. For location, use the railroad's car tracing or status service. For containers moving inland on an ocean bill, the ocean carrier's 315 reports rail events.

What functional group does the 417 use?

The 417 travels in functional group WB, the value in GS01. The version is in GS08 and varies by railroad.

James Darby
Last updated: 11/7/2026

Related Resources