Skip to content
EDI 857 — EDI TransactionPublished Nov 4, 2026

EDI 857 Shipment and Billing Notice: 856 + 810

EDI 857 explained: one document that replaces the 856 ASN and 810 invoice, its BHT and HL levels, the G05, TDS and IT1 segments, a live example and errors.

The EDI 857 is an ASN and an invoice in one envelope. Most trading partners want an 856 ship notice when the goods leave and an 810 invoice to bill them, even though the two documents repeat most of the same data. A few buyers, notably in the book trade and in US defense procurement, accept a single 857 instead. When they do, your one document has to satisfy both the receiving dock and accounts payable.

This guide covers what the 857 carries, who uses it, the hierarchy it shares with the 856, every segment you will map, a live example, a side-by-side comparison with the 856 and 810, and the errors that block both receipt and payment.

What Is an EDI 857?

An EDI 857 is the Shipment and Billing Notice transaction set defined by ASC X12, which gives the recipient of a shipment the data it needs both to plan the receipt and to generate payment. The X12 standard positions it as a consolidation of the Ship Notice/Manifest (856) and the Invoice (810). It travels in functional group BS (the GS01 value).

The standard attaches three conditions that shape every 857 implementation:

  • It replaces the 856 and the 810 together. The X12 notes say it is not to replace either one individually. Do not send an 857 and then also send a paper or EDI invoice for the same shipment.
  • It fits when prices are not fully agreed in advance. The 857 suits environments where the item prices and terms on the shipment are used to generate payment.
  • It does not fit Evaluated Receipts Settlement (ERS). Under ERS the buyer pays from its own receipt and agreed prices, so no invoice data is needed.

Authoritative references for 857 work:

Who sends it? The supplier or its 3PL, from the shipping and billing systems together.

Who receives it? The buyer. Its receiving system uses the shipment, pack and item levels; its payables system uses the prices, terms and totals.

When is it sent? At shipment, in place of the 856. Because it is also the invoice, it has to be right at the moment it leaves, not corrected a day later.

Why does it matter? A bad 856 causes a receiving problem. A bad 810 causes a payment problem. A bad 857 causes both, from the same mistake.

Who Uses the EDI 857

The 857 is uncommon. Most retailers, including the large general merchandise chains, ask for a separate 856 and 810. Confirmed users include:

SectorExampleHow the 857 is used
Book tradeThe BISAC 857 standard and the PUBNET 857 guidelinePublishers and distributors ship and bill booksellers in one document
US defense procurementDLA's DLMS 857 and WAWFVendors submit an invoice and receiving report together (a "COMBO")

Some EDI providers also list individual retailers that accept the 857. Treat those lists as leads and confirm with the buyer's own implementation guide. If a partner has not published an 857 guide, assume it wants an 856 and an 810.

How an 857 Shipment Works

  1. Order. The buyer sends an 850 purchase order, and the supplier may confirm it with an 855.
  2. Pick, pack and label. The warehouse packs cartons and prints SSCC-18 labels, exactly as for an 856.
  3. Price and bill. The billing system prices each shipped line and applies terms, allowances and charges, exactly as for an 810.
  4. Build the 857. The shipment level carries the carrier, weight and bill of lading. The order level carries the PO, invoice number, terms and invoice total. Pack levels carry carton labels, and item levels carry each priced line.
  5. Transmit. The supplier sends the 857 when the truck leaves, and the buyer returns a 997.
  6. Receive. The buyer's dock scans cartons against the pack and item levels.
  7. Pay. The buyer's AP matches the shipped and received quantities to the prices on the same document and pays, often with an 820.

Because there is no separate invoice to fix later, a short-pick or price correction found after the 857 leaves needs whatever correction process the buyer's guide defines, such as a credit adjustment.

The 857 Hierarchy and BS Loops

Like the 856, the 857 uses HL loops. Unlike the 856, each level has its own named segment group (BS1 to BS5) with a mandatory first segment, which is how the standard fits invoice data into the hierarchy.

HL03LevelLoopMandatory first segmentTypical content
SShipmentBS1G05 Total Shipment InformationCarrier, weight, ship date, BOL, ship-from and ship-to
OOrderBS2TDS Total Monetary Value SummaryPO reference, invoice number, terms, taxes, allowances, invoice total
TTare (pallet)BS3PAL Pallet InformationPallet type and label
P / QPack / SubpackBS4LX Assigned NumberCarton label (MAN), physical details
IItemBS5IT1 Baseline Item Data (Invoice)Item, quantity, unit price, description

BHT01 fixes the order of the levels. The X12 notes allow three values:

  • 0001: Shipment, Order, Tare, Pack, Subpack, Item
  • 0002: Shipment, Order, Item, Tare, Pack, Subpack
  • 0003: Shipment, Tare, Pack, Subpack, Order, Item

Levels must appear in that order, though some can be left out. The structure is always one shipment of one or more orders. Each order needs at least one item level, and the shipment level appears exactly once.

Interactive Example: Publisher Shipment to a Bookseller DC

A small press ships one order of three titles to a bookseller's distribution center in three cartons. BHT01 is 0001, so the levels run shipment, order, pack, item. The shipment level gives 3 cartons and 96 lb in G05, the carrier SCAC and the bill of lading. The order level carries the PO in PRF, the invoice number in N9*IV, net 60 terms in ITD, and the $988.44 invoice total in TDS. Each carton has its SSCC-18 in MAN and one priced IT1 line. All names, numbers and the carrier code are fictional.

Use the Plain English tab for a readable summary, or click any segment to see its elements.

Live exampleBook Retailer DCEDI 857

Publisher 857 Shipment and Billing Notice

One shipment of one order, three cartons: BHT 0001 structure, shipment totals in G05, carrier and BOL at the shipment level, PO, invoice number, terms and invoice total at the order level, SSCC-18 carton labels in MAN, and priced items in IT1

Document
857 Shipment and Billing Notice
From / to
CEDARHOLLOW → RIVERBENDBOOKS
Segments
40
Ship From
CEDAR HOLLOW PRESS
Ship To
RIVERBEND BOOKS DC
2750 COMMERCE DR, NASHVILLE, TN, 37210
Interchange date
Nov 2, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*CEDARHOLLOW *ZZ*RIVERBENDBOOKS *261102*1430*U*00401*000000857*0*P*:~
2
GS*BS*CEDARHOLLOW*RIVERBENDBOOKS*20261102*1430*857*X*004010~
3
ST*857*0001~
4
BHT*0001*00*CHP-SHP-7731*20261102*1430~
5
HL*1**S*1~
6
G05*3*CT*96*LB~
7
TD1*CTN25*3****G*96*LB~
8
TD5**2*HWLX*M~
9
DTM*011*20261102~
10
N9*BM*CHP-BOL-55210~
11
N1*SF*CEDAR HOLLOW PRESS*92*CHP01~
12
N1*ST*RIVERBEND BOOKS DC*92*DC04~
13
N3*2750 COMMERCE DR~
14
N4*NASHVILLE*TN*37210~
15
HL*2*1*O*1~
16
TDS*98844~
17
PRF*RB-448120***20261020~
18
N9*IV*CHP-INV-90217~
19
ITD*05*3*****60~
20
HL*3*2*P*1~
21
LX*1~
22
MAN*GM*006141410000041213~
23
HL*4*3*I*0~
24
IT1*1*24*EA*14.95**VN*CHP-10417~
25
PID*F****THE QUIET HARBOR HC~
26
HL*5*2*P*1~
27
LX*2~
28
MAN*GM*006141410000041220~
29
HL*6*5*I*0~
30
IT1*2*12*EA*22.50**VN*CHP-20833~
31
PID*F****FIELD GUIDE TO RIVER BIRDS~
32
HL*7*2*P*1~
33
LX*3~
34
MAN*GM*006141410000041237~
35
HL*8*7*I*0~
36
IT1*3*36*EA*9.99**VN*CHP-31206~
37
PID*F****WINTER RECIPES PB~
38
SE*36*0001~
39
GE*1*857~
40
IEA*1*000000857~

Human-Readable

Interchange

Sender ID(ZZ)CEDARHOLLOW
Receiver ID(ZZ)RIVERBENDBOOKS
Date261102
Time1430
Standards IDU
Version00401
Control Number000000857
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDBSBS
SenderCEDARHOLLOW
ReceiverRIVERBENDBOOKS
Date20261102
Time1430
Control Number857
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 857

Shipment and Billing Notice
Transaction Type857
Control Number0001
Segments, ST to SE36
Count in SE0136 (matches)

Segment Detail

BHTBeginning of Hierarchical Transaction
BHT01Hierarchical Structure Code0001
BHT02Transaction Set Purpose Code00
BHT03Reference IdentificationCHP-SHP-7731
BHT04Date20261102
BHT05Time1430
HLHierarchical Level
HL01Hierarchical ID1
HL03Level CodeS
HL04Child Code1
G05Total Shipment Information
G0501Number of Units Shipped3
G0502Unit of MeasureCT
G0503Weight96
G0504Weight UnitLB
TD1Carrier Details (Quantity and Weight)
TD101Packaging CodeCTN25
TD102Lading Quantity3
TD106Weight QualifierG
TD107Weight96
TD108Weight UOMLB
TD5Carrier Details
TD502ID Qualifier2
TD503ID CodeHWLX
TD504Transport MethodM
DTMDate/Time Reference
DTM01Date Qualifier011
DTM02Date20261102
N9Reference Identification
N901Reference Identification QualifierBM
N902Reference IdentificationCHP-BOL-55210
N1Party Identification
N101Entity CodeSF
N102NameCEDAR HOLLOW PRESS
N103ID Qualifier92
N104ID CodeCHP01
N1Party Identification
N101Entity CodeST
N102NameRIVERBEND BOOKS DC
N103ID Qualifier92
N104ID CodeDC04
N3Party Location
N301Address2750 COMMERCE DR
N4Geographic Location
N401CityNASHVILLE
N402State/ProvinceTN
N403Postal Code37210
HLHierarchical Level
HL01Hierarchical ID2
HL02Parent ID1
HL03Level CodeO
HL04Child Code1
TDSTotal Monetary Value Summary
TDS01Total Amount98844
PRFPurchase Order Reference
PRF01PO NumberRB-448120
PRF04PO Date20261020
N9Reference Identification
N901Reference Identification QualifierIV
N902Reference IdentificationCHP-INV-90217
ITDTerms of Sale/Deferred Terms of Sale
ITD01Terms Type05
ITD02Terms Basis3
ITD07Net Days60
HLHierarchical Level
HL01Hierarchical ID3
HL02Parent ID2
HL03Level CodeP
HL04Child Code1
LXAssigned Number
LX01Assigned Number1
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers006141410000041213
HLHierarchical Level
HL01Hierarchical ID4
HL02Parent ID3
HL03Level CodeI
HL04Child Code0
IT1Baseline Item Data (Invoice)
IT101Line Number1
IT102Quantity24
IT103UOMEA
IT104Unit Price14.95
IT106ID QualifierVN
IT107Product IDCHP-10417
PIDProduct/Item Description
PID01Description TypeF
PID05DescriptionTHE QUIET HARBOR HC
HLHierarchical Level
HL01Hierarchical ID5
HL02Parent ID2
HL03Level CodeP
HL04Child Code1
LXAssigned Number
LX01Assigned Number2
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers006141410000041220
HLHierarchical Level
HL01Hierarchical ID6
HL02Parent ID5
HL03Level CodeI
HL04Child Code0
IT1Baseline Item Data (Invoice)
IT101Line Number2
IT102Quantity12
IT103UOMEA
IT104Unit Price22.50
IT106ID QualifierVN
IT107Product IDCHP-20833
PIDProduct/Item Description
PID01Description TypeF
PID05DescriptionFIELD GUIDE TO RIVER BIRDS
HLHierarchical Level
HL01Hierarchical ID7
HL02Parent ID2
HL03Level CodeP
HL04Child Code1
LXAssigned Number
LX01Assigned Number3
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers006141410000041237
HLHierarchical Level
HL01Hierarchical ID8
HL02Parent ID7
HL03Level CodeI
HL04Child Code0
IT1Baseline Item Data (Invoice)
IT101Line Number3
IT102Quantity36
IT103UOMEA
IT104Unit Price9.99
IT106ID QualifierVN
IT107Product IDCHP-31206
PIDProduct/Item Description
PID01Description TypeF
PID05DescriptionWINTER RECIPES PB
1 functional group1 transactionControl #000000857Valid

857 Structure at a Glance

LevelSegmentNameUsageNotes
HeaderSTTransaction Set HeaderMandatoryST01 = 857
HeaderBHTBeginning of Hierarchical TransactionMandatoryLevel order, purpose, shipment ID, date
AllHLHierarchical LevelMandatory, repeatsOne per level
ShipmentG05Total Shipment InformationMandatory in BS1Units, weight, volume
ShipmentTD1 / TD3 / TD4 / TD5Carrier detailsOptionalPackaging and weight, equipment, hazmat, carrier and routing
ShipmentFOBF.O.B. Related InstructionsOptionalFreight terms
ShipmentDTMDate/Time ReferenceOptionalShip date (011)
ShipmentN9Reference IdentificationOptionalBill of lading (BM), PRO and similar
ShipmentCURCurrencyOptionalCurrency of the amounts
Shipment loopN1/N2/N3/N4Name and addressOptionalShip from (SF), ship to (ST)
OrderTDSTotal Monetary Value SummaryMandatory in BS2Invoice total for the order
OrderPRFPurchase Order ReferenceOptionalPO number and date
OrderN9Reference IdentificationOptionalInvoice number (IV) and others
OrderITDTerms of SaleOptionalPayment terms
OrderTXITax InformationOptionalTaxes
Order loopSACService, Promotion, Allowance, or ChargeOptionalFreight, allowances, other charges
Order loopN1NameOptionalBill-to, remit-to
TarePAL / MANPallet Information / Marks and NumbersPAL mandatory in BS3Pallet details and label
PackLX / MANAssigned Number / Marks and NumbersLX mandatory in BS4Carton number and label
ItemIT1Baseline Item Data (Invoice)Mandatory in BS5Item, quantity, price
ItemIT3 / PO4 / CTP / PIDAdditional item dataOptionalAdditional quantities, pack, pricing, description
TrailerSETransaction Set TrailerMandatorySegment count and control number

The 857 has no summary area of its own: the invoice totals live in TDS at each order level.

Key Segments Explained

BHT: Beginning of Hierarchical Transaction

BHT*0001*00*CHP-SHP-7731*20261102*1430~
ElementNameExampleWhat it means
BHT01Hierarchical Structure Code0001The level order (0001, 0002 or 0003)
BHT02Transaction Set Purpose Code0000 = original
BHT03Reference IdentificationCHP-SHP-7731The sender's shipment or transaction number
BHT04Date20261102Date the 857 was created
BHT05Time1430Time it was created

The X12 notes make BHT03 and BHT04 mandatory for the 857, even though they are optional in the generic segment.

G05: Total Shipment Information

G05*3*CT*96*LB~
ElementNameExampleWhat it means
G0501Number of Units Shipped3Shipping units in the shipment
G0502Unit of MeasureCTCarton
G0503Weight96Total weight
G0504Unit of MeasureLBPounds
G0505 / G0506Volume, unitOptional volume
G0507 / G0508Lading quantity, unitOptional piece count

At least one of units, weight or volume must be present. The carton count here should equal the number of pack levels you send.

HL: Hierarchical Level

HL*1**S*1~
HL*2*1*O*1~
HL*3*2*P*1~
HL*4*3*I*0~

HL01 numbers each level from 1, HL02 points to the parent level, HL03 is the level code (S, O, T, P, Q or I) and HL04 says whether children follow. The X12 notes say HL02 is 0 at the shipment level, while many guides and translators send it blank, as the example does. Follow the buyer's guide.

TDS: Total Monetary Value Summary (Order Level)

TDS*98844~

TDS01 is the invoice total for the order, including charges and less allowances, before any terms discount. It has two implied decimals: 98844 is $988.44. TDS02 to TDS04 carry the amount subject to discount, the amount due if paid by the discount date, and the discount amount where terms include one.

In the example, 24 × $14.95 + 12 × $22.50 + 36 × $9.99 = $358.80 + $270.00 + $359.64 = $988.44. With more than one order on the shipment, each order level has its own TDS.

PRF and N9: Purchase Order and Invoice Number

PRF*RB-448120***20261020~
N9*IV*CHP-INV-90217~

PRF01 is the buyer's PO number and PRF04 its date. The 857 has no BIG segment, so the invoice number travels in an order-level N9 with qualifier IV (seller's invoice number), as in the PUBNET guide. The buyer's AP keys payment on it, so it must be unique across every 857 and 810 you send that buyer.

ITD: Terms of Sale

ITD*05*3*****60~

ITD01 is the terms type, ITD02 the date the terms count from (3 = invoice date), and ITD07 the net days. Here: no discount, net 60 from the invoice date. Payment terms belong at the order level because each order on the shipment can have different terms.

MAN: Marks and Numbers (Pack Level)

MAN*GM*006141410000041213~

MAN01 = GM identifies an SSCC-18 serial shipping container code, and MAN02 is the 18-digit number on the carton label. The buyer's dock scans the label and looks it up in the 857, so every label you print must appear once and only once. The example uses GS1's documentation company prefix 0614141 with valid check digits.

IT1: Baseline Item Data (Invoice)

IT1*1*24*EA*14.95**VN*CHP-10417~
ElementNameExampleWhat it means
IT101Assigned Identification1Line number, often the PO line number
IT102Quantity Invoiced24Quantity shipped and billed in this pack
IT103Unit of MeasureEAEach
IT104Unit Price14.95Price per unit
IT106 / IT107Product ID qualifier and IDVN, CHP-10417Vendor item number

The item level replaces both the 856 LIN/SN1 pair and the 810 IT1 line. One IT1 therefore states what is in the carton and what it costs. Book trade guides usually identify items by ISBN, with the qualifier set in the guide; general merchandise guides use UPC or GTIN.

EDI 857 vs 856 and 810

856 Ship Notice/Manifest810 Invoice857 Shipment and Billing Notice
PurposePlan receivingRequest paymentBoth
Functional group (GS01)SHINBS
Header segmentBSNBIGBHT
StructureHL hierarchyFlat item linesHL hierarchy with BS1 to BS5 loops
Item segmentLIN + SN1IT1IT1
TotalsOptional CTTTDS in summaryTDS at each order level
Invoice numberNot carriedBIG02N9 with IV at order level
TimingAt shipmentAt or after shipmentAt shipment
CorrectionResend or replace the ASNCredit memo or new invoiceBuyer's defined process, since one document did both jobs

The trade-off is simple. The 857 halves the documents you send and removes any chance of the ASN and invoice disagreeing. In return, your billing has to be final at the moment you ship, and pricing data reaches the receiving system. The X12 notes suggest keeping prices away from the receiving area where that is current practice.

Where the 857 Sits in the Order Flow

  1. 850 Purchase Order: buyer orders
  2. 855 PO Acknowledgment: supplier confirms (if required)
  3. 857 Shipment and Billing Notice: supplier ships and bills
  4. 997 Functional Acknowledgment: buyer confirms receipt of the file
  5. 861 Receiving Advice: buyer reports what it received (where used)
  6. 820 Payment Order/Remittance: buyer pays

The freight itself may move on carrier documents such as a 204 load tender and 214 status messages, which are separate from the 857. For the full picture, see the EDI order lifecycle guide.

Common 857 Errors and How to Prevent Them

ErrorWhat happensPrevention
Sending an 810 as well as the 857Duplicate invoice, double payment or rejectionTurn off the 810 for partners on the 857
Missing TDS at an order levelOrder level invalid, invoice cannot be paidGenerate one TDS per order level, summed from its items
TDS does not equal item extensions plus chargesAP holds or short-paysCompute totals from the lines at build time
Implied decimal error in TDS01Total read 100 times too large or smallSend whole cents with no decimal point
Levels out of BHT01 orderRejected by the buyer's translatorBuild the tree from one structure code and validate it
Order with no item levelRejectedEvery order level needs at least one IT1
Carton count in G05 differs from pack levelsReceiving discrepancyCount MAN labels and set G0501 from them
Duplicate or missing SSCCCartons cannot be received by scanAssign labels from a single serial sequence
Invoice number reusedPayment applied to the wrong documentNumber 857s and 810s from one invoice sequence per buyer

Paste a test 857 into the free EDI inspector to see its hierarchy, carton labels and line extensions side by side before your first live shipment. If you are new to the ASN half of the document, our 856 guide covers SSCC labels and packing hierarchies in more depth.

857 Implementation Checklist

  • Get the buyer's 857 guide and confirm it replaces both the 856 and 810
  • Confirm the BHT01 structure code and which levels are required
  • Confirm HL02 handling at the shipment level (0 or blank)
  • Confirm item identifiers (UPC, GTIN, ISBN, buyer item number)
  • Confirm where the invoice number goes (N9 qualifier) and its format
  • Map terms, allowances and charges to ITD and SAC at the order level
  • Generate SSCC-18 labels and MAN segments from the same pack data
  • Suppress the 810 and 856 for this partner
  • Agree the correction process for short shipments and price errors after transmission
  • Test a single-order shipment, a multi-order shipment and a shipment with a charge or allowance

Where OrderSync Fits

An 857 is only as good as the order behind it. If the PO was keyed with the wrong item, unit or price, the shipment and the invoice are wrong together.

OrderSync reads inbound orders in any format, including EDI 850s, PDFs, emails and spreadsheets, matches customers, items and units to your catalog, and outputs clean orders to your ERP or valid X12. Paste an 857 into the free EDI inspector to see it in plain English, read about automated order processing, or book a 15-minute walkthrough to see your own orders processed.

Frequently Asked Questions

What is an EDI 857 used for?

The EDI 857 Shipment and Billing Notice tells a buyer what was shipped and bills for it in one document. The buyer's receiving system uses the shipment, carton and item data, and its payables system uses the prices, terms and invoice totals.

What is the difference between EDI 856 and EDI 857?

The 856 ASN describes a shipment for receiving only and carries no invoice data. The 857 carries the same shipment hierarchy plus prices, terms and invoice totals, so it also serves as the invoice. An 857 replaces both the 856 and the 810.

Can an EDI 857 replace an 810 invoice?

Yes, but only together with the 856. The X12 standard says the 857 should not replace either document on its own, so a partner on the 857 should receive no separate 810 or 856 for the same shipment.

Who uses the EDI 857?

It is used far less than the 856 and 810. Documented users include the book trade, through the BISAC 857 standard and the PUBNET guideline, and US defense procurement, where the DLMS 857 supports combined invoice and receiving report documents in WAWF.

What functional group does the 857 use?

The 857 travels in functional group BS, the value in GS01. The transaction set identifier in ST01 is 857.

Where is the invoice number in an EDI 857?

There is no BIG segment in the 857. The invoice number is usually sent in an order-level N9 segment with qualifier IV (seller's invoice number), and the invoice total is in the order-level TDS segment.

What does BHT01 mean in an EDI 857?

BHT01 is the hierarchical structure code. In the 857 it can be 0001, 0002 or 0003, and each fixes a different order of the shipment, order, tare, pack, subpack and item levels.

James Darby
Last updated: 11/4/2026

Related Resources