EDI

API DocsTerminal
NEW!
Programmatically translate EDI to JSON with the EDI Core REST API
Get started in minutes →
Transaction Set
in
X12 Release 004010

859 Freight Invoice

Functional Group FB

This Draft Standard for Trial Use contains the format and establishes the data contents of the Freight Invoice Transaction Set (859) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide the sender with the capability to transmit an invoice, including charges, allowances, and details, for transportation services rendered. This transaction set can also be used to exchange transportation services invoice information based on services provided in accordance with Government transportation rules and regulations. It may be used by the U.S. Civilian Government, U.S. Department of Defense, and any of their trading partners to exchange invoice information resulting from the shipment of freight, household goods, and passengers. This transaction set fulfills financial information requirements established by the U.S. Government.

Heading

Sequence
Segment
Name
Max use
010
Transaction Set HeaderMandatory
Max 1
To indicate the start of a transaction set and to assign a control number
020
Beginning Segment for Carrier's InvoiceMandatory
Max 1
To transmit basic data relating to the carrier's invoice
030
Invoice Type
Max 1
To indicate type of invoice and number of shipments
040
Reference Identification
Max 30
To transmit identifying information as specified by the Reference Identification Qualifier
050
Cargo Manifest
Max 1
To identify specific flight or voyage information for multimodal shipments
060
Authentication
Max 4
To specify the authority for authorizing an action and the date authentication is made
070
Priority
Max 1
To assign a priority to a booking which would increase the possibility that this cargo would be booked on said voyage and not be shut out
080
Currency
Max 1
To specify the currency being used in the transaction set
100
Date/Time
Max 10
To specify pertinent dates and times
110
Administrative Communications Contact
Max 3
To identify a person or office to whom administrative communications should be directed
120
Cross-Reference Equipment
Max 30
To cross-reference additional equipment to a primary piece of equipment
130
Origin Station
Max 1
To identify the rail origin of the shipment
140
Destination Station
Max 1
To identify the rail destination of the shipment
150
Route Information (Air)
Max 1
To specify airline and airport routing sequences
160
Route Information
Max 13
To specify carrier and routing sequences and details
170
Special Handling Instructions
Max 6
To specify special handling instructions in coded or free-form format
171
Protective Service Instructions
Max 5
To specify mechanical protective service and ventilation instructions
180
Special Services
Max 6
To identify forms of unitization, liability issues, and special services
190
Insurance
Max 1
To specify details related to insurance
200
Sales/Delivery Terms
Max 1
To state terms and dates
210
Tariff Reference
Max 30
To reference details of the tariff used to arrive at applicable rates or charge
220
Note/Special Instruction
Max 30
To transmit information in a free-form format, if necessary, for comment or special instruction
230
Pro Forma - B13 Information
Max 1
This segment is used to specify a pro forma invoice and B13 Canadian Customs Export Declaration information, required by U.S. and Canadian customs
250
Pick-up
Max 1
To specify the pick-up details including time, date, and equipment
260
Allowance, Charge or Service
Max 1
To specify allowances, charges, or services
270
Waybill Reference
Max 499
To identify the waybill and to specify the equipment used and the destination details
280
Route Code
Max 1
To specify the route using a single code
H1 Loop
Repeat 3
290
Hazardous Material
Max 1
To specify information relative to hazardous material
300
Additional Hazardous Material Description
Max 2
To specify free-form hazardous material descriptive data in addition to the information provided in the H1 segment
N7 Loop
Repeat 600
310
Equipment Details
Max 1
To identify the equipment
320
Seal Numbers
Max 5
To record seal numbers used and the organization that applied the seals
330
Equipment Ordered
Max 1
To specify carrier equipment
340
Reference Identification
Max 5
To specify identifying information
350
Intermodal Chassis Equipment
Max 1
To specify the chassis equipment details in terms of identifying numbers, weights, and ownership
360
Motor Vehicle Control
Max 21
To define motor vehicle identification and logistics
370
Scale Identification
Max 1
To identify the scale type and the location and time a shipment is weighed
375
Canadian Grain Information
Max 15
To transmit the transportation and distribution requirements of grain at Canadian ports
N1 Loop
Repeat 10
380
Name
Max 1
To identify a party by type of organization, name, and code
390
Additional Name Information
Max 2
To specify additional names or those longer than 35 characters in length
400
Address Information
Max 2
To specify the location of the named party
410
Geographic Location
Max 1
To specify the geographic place of the named party
420
Reference Identification
Max 12
To specify identifying information
430
Administrative Communications Contact
Max 3
To identify a person or office to whom administrative communications should be directed
S5 Loop
Repeat 50
440
Stop Off Details
Max 1
To specify stop-off detail reference numbers and stop reason
450
Date/Time
Max 6
To specify pertinent dates and times
460
Reference Identification
Max 10
To transmit identifying information as specified by the Reference Identification Qualifier
470
Special Services
Max 6
To identify forms of unitization, liability issues, and special services
N1 Loop
Repeat 5
480
Name
Max 1
To identify a party by type of organization, name, and code
490
Additional Name Information
Max 2
To specify additional names or those longer than 35 characters in length
500
Address Information
Max 2
To specify the location of the named party
510
Geographic Location
Max 1
To specify the geographic place of the named party
520
Reference Identification
Max 12
To specify identifying information
530
Administrative Communications Contact
Max 3
To identify a person or office to whom administrative communications should be directed

Detail

Sequence
Segment
Name
Max use
LX Loop
Repeat 999
010
Assigned NumberMandatory
Max 1
To reference a line number in a transaction set
N1 Loop
Repeat 10
020
Name
Max 1
To identify a party by type of organization, name, and code
030
Additional Name Information
Max 2
To specify additional names or those longer than 35 characters in length
040
Address Information
Max 2
To specify the location of the named party
050
Geographic Location
Max 1
To specify the geographic place of the named party
060
Reference Identification
Max 12
To specify identifying information
070
Administrative Communications Contact
Max 3
To identify a person or office to whom administrative communications should be directed
100
Description, Marks and Numbers
Max 10
To specify the line item in terms of description, quantity, packaging, and marks and numbers
L0 Loop
Repeat 10
110
Line Item - Quantity and Weight
Max 1
To specify quantity, weight, volume, and type of service for a line item including applicable "quantity/rate-as" data
120
Rate and Charges
Max 20
To specify rate and charges detail relative to a line item including freight charges, advances, special charges, and entitlements
130
Measurements
Max 5
To specify physical measurements or counts, including dimensions, tolerances, variances, and weights (See Figures Appendix for example of use of C001)
140
Tariff Reference
Max 10
To reference details of the tariff used to arrive at applicable rates or charge
160
Tariff Reference
Max 1
To reference details of the tariff used to arrive at applicable rates or charges for customer-requested service
170
Route Information (Air)
Max 1
To specify airline and airport routing sequences
180
Mixed Hazardous Commodities
Max 1
To specify hazardous line items in terms of hazardous mnemonic, identification number, reportable quantities, and limited quantities
190
Reference Identification
Max 10
To transmit identifying information as specified by the Reference Identification Qualifier
200
Export License
Max 6
To transmit information contained on an export license
210
Import License
Max 1
To transmit import license number and effective dates
220
Pick-up
Max 1
To specify the pick-up details including time, date, and equipment
230
Proof of Delivery
Max 1
To provide proof of delivery
240
F.O.B. Related Instructions
Max 1
To specify transportation instructions relating to shipment
250
Allowance, Charge or Service
Max 20
To specify allowances, charges, or services
260
Line Item Subtotal
Max 1
To specify line item subtotals
270
Event Detail
Max 1
To specify information about a specific event
280
Delivery
Max 1
To specify delivery date
290
Equipment Details
Max 5
To identify the equipment
H1 Loop
Repeat 3
300
Hazardous Material
Max 1
To specify information relative to hazardous material
310
Additional Hazardous Material Description
Max 2
To specify free-form hazardous material descriptive data in addition to the information provided in the H1 segment

Summary

Sequence
Segment
Name
Max use
010
Total Weight and Charges
Max 1
To specify the total shipment in terms of weight, volume, rates, charges, advances, and prepaid amounts applicable to one or more line items
020
Transaction Set TrailerMandatory
Max 1
To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference and Mapping Guides are provided for marketing purposes and are free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.
Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference and Mapping Guides are provided for marketing purposes and are free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.