X12 transaction guide · Planning

EDI 846 Inventory Inquiry/Advice

The X12 document used to share inventory levels and availability between trading partners.

Sent by
Supplier, manufacturer or warehouse
Received by
Retailer, distributor or marketplace
Standard
ANSI ASC X12
EDIFACT equivalent
INVRPT

What is an EDI 846?

The EDI 846 Inventory Inquiry/Advice is the ANSI X12 transaction set used to communicate inventory information. Most often a supplier sends it to a retailer or marketplace to report how much of each item is available to sell, and sometimes on order, committed or expected to arrive.

The 846 is essential in drop-ship and online selling, where the retailer displays availability to shoppers but the supplier holds the stock. Out-of-date inventory leads to orders that cannot be filled, cancellations and damaged supplier scorecards, so many programs expect inventory feeds several times a day.

How the EDI 846 worksDiagram of the EDI 846 Inventory Inquiry/Advice. Supplier, manufacturer or warehouse sends it to retailer, distributor or marketplace. It usually starts the exchange. It is usually followed by 850. Inside the ISA, GS and ST envelopes, X12 release 004010 requires, in the heading: BIA (Beginning Segment for Inventory Inquiry/Advice) and detail: the required LIN loop with LIN (Item Identification). 6 optional loops are listed by their first segment.How the EDI 846 worksInventory Inquiry/Advice: who sends it, where it fits and what the standard marks required1 WHERE IT FITSUSUALLY FOLLOWSStarts the exchangeEDI 846SENDERSupplier, manufactureror warehouseRECEIVERRetailer, distributor ormarketplace997 or 999 acknowledgment back, if the partners agreeUSUALLY FOLLOWED BY850Purchase Order2 WHAT X12 RELEASE 004010 REQUIRESInterchange: sender and receiver IDsISA … IEAFunctional group, ID code IBGS … GETransaction set 846ST … SEHEADINGBIABeginning Segment for Inventory Inquiry/Advice+ 2 optional loops, starting with:N1LMDETAILRequired loop LIN · repeats up to 10,000LINItem Identification+ 4 optional loops, starting with:LMSLNQTYN1Blue box: required loop. Optional loops are listed by the segment that starts them; when a loop is used, that first segment is required. Optional segmentsoutside loops are not drawn.Structure: required segments and loops in the X12 004010 listing for the 846. Your trading partner's implementation guide adds its own requirements.
How the EDI 846 worksDiagram of the EDI 846 Inventory Inquiry/Advice. Supplier, manufacturer or warehouse sends it to retailer, distributor or marketplace. It usually starts the exchange. It is usually followed by 850. Inside the ISA, GS and ST envelopes, X12 release 004010 requires, in the heading: BIA (Beginning Segment for Inventory Inquiry/Advice) and detail: the required LIN loop with LIN (Item Identification). 6 optional loops are listed by their first segment.How the EDI 846 worksInventory Inquiry/Advice: who sends it, whereit fits and what the standard marks required1 WHERE IT FITSUSUALLY FOLLOWSStarts the exchangeEDI 846SENDERSupplier,manufacturer orwarehouseRECEIVERRetailer,distributor ormarketplace997 or 999 acknowledgment back, if the partnersagreeUSUALLY FOLLOWED BY850Purchase Order2 WHAT X12 RELEASE 004010 REQUIRESInterchange: sender and receiver IDs (ISA… IEA)Functional group, ID code IB (GS … GE)Transaction set 846 (ST … SE)HEADINGBIABeginning Segment forInventory Inquiry/Advice+ 2 optional loops, starting with:N1LMDETAILRequired loop LIN · repeats up to10,000LINItem Identification+ 4 optional loops, starting with:LMSLNQTYN1Blue box: required loop. Optional loops are listedby the segment that starts them; when a loop isused, that first segment is required. Optionalsegments outside loops are not drawn.Structure: required segments and loops in the X12004010 listing for the 846. Your trading partner'simplementation guide adds its own requirements.

How to read this diagram: the top row shows who sends the 846, to whom, and which documents usually come before and after it. The lower part shows what X12 release 004010 itself requires: the envelopes around the 846 and the segments and loops the standard marks as required, area by area. Optional loops are listed by the segment that starts them rather than drawn in full. This is the standard's minimum, not a trading partner's requirement: each partner's implementation guide usually makes some optional loops mandatory, restricts the codes and may use a different release.

Expand diagram Download SVG

When it is used

  • Drop-ship suppliers sharing available inventory with retailers
  • Distributors publishing availability to customers
  • Warehouses reporting stock positions to inventory owners
  • Vendor-managed inventory programs

Where it fits in the document flow

This document 846 Inventory Inquiry/Advice
Usually followed by 850 Purchase Order

Structure

Key segments in the 846

The segments most implementations use, described in plain language. The last column shows what X12 release 004010 itself requires: "Required" marks a segment the standard requires in every 846; "Optional, common" marks a segment the standard leaves optional, or that sits in an optional loop, but that implementations often use. This is the standard's requirement, not your trading partner's: each partner's implementation guide names the release it uses, makes some optional segments mandatory and restricts the values, and requirements can differ between releases. The requirement status comes from one published X12 reference listing and has not been checked against a second source.

SegmentNameWhat it carriesIn X12 004010
BIABeginning Segment for Inventory Inquiry/AdvicePurpose code, report type, reference number and date of the inventory report.Required
N1 loopParty IdentificationThe location or warehouse the inventory belongs to.Optional, common
LINItem IdentificationProduct identifiers such as UPC, vendor item or buyer item numbers.Required
QTYQuantityInventory quantities by type, such as available, on hand or on order.Optional, common
SCHLine Item ScheduleExpected availability dates for future quantities.Optional, common

Example

Sample EDI 846

An inventory report dated the same day showing 150 units of one item available for sale (QTY qualifier 33). BIA02 code MM identifies a manufacturer inventory report. X12 also defines codes such as DD (distributor inventory report) and SI (seller inventory report), and each trading partner specifies the code it expects.

Illustrative data only, not tied to one X12 release or trading partner. The interchange (ISA/IEA) and functional group (GS/GE) envelopes are omitted for readability.

ST*846*0001~
BIA*00*MM*INV20261020*20261020~
LIN**UP*012345678905~
QTY*33*150*EA~
SE*5*0001~
Reading a sample EDI 846, line by lineAnnotated sample EDI 846 with 5 lines. Notes explain the ST, BIA, LIN, QTY and SE segments.Reading a sample EDI 846, line by lineEach numbered note explains the segment on that line. The data is illustrative.ST*846*0001~11Transaction Set Header. Opens the 846 and gives it a controlnumber, which SE repeats.BIA*00*MM*INV20261020*20261020~22Beginning Segment for Inventory Inquiry/Advice. Purpose code,report type, reference number and date of the inventory report.LIN**UP*012345678905~33Item Identification. Product identifiers such as UPC, vendoritem or buyer item numbers.QTY*33*150*EA~44Quantity. Inventory quantities by type, such as available, onhand or on order.SE*5*0001~55Transaction Set Trailer. Closes the set with the number ofsegments, including ST and SE, and the same control number.Illustrative data only, not tied to one trading partner. Envelopes (ISA/GS) are omitted for readability.
Reading a sample EDI 846, line by lineAnnotated sample EDI 846 with 5 lines. Notes explain the ST, BIA, LIN, QTY and SE segments.Reading a sample EDI 846, lineby lineEach numbered note explains the segment onthat line. The data is illustrative.ST*846*0001~Transaction Set Header. Opens the 846 andgives it a control number, which SE repeats.BIA*00*MM*INV20261020*20261020~Beginning Segment for InventoryInquiry/Advice. Purpose code, report type,reference number and date of the inventoryreport.LIN**UP*012345678905~Item Identification. Product identifiers suchas UPC, vendor item or buyer item numbers.QTY*33*150*EA~Quantity. Inventory quantities by type, suchas available, on hand or on order.SE*5*0001~Transaction Set Trailer. Closes the set withthe number of segments, including ST and SE,and the same control number.Illustrative data only, not tied to one trading partner.Envelopes (ISA/GS) are omitted for readability.

The sample is the same one shown above, with a note beside each segment the first time it appears. Segment IDs are highlighted at the start of each line; the fields after them are separated by asterisks, and each segment ends with a tilde.

Expand diagram Download SVG

Avoid problems

Common 846 errors and how to prevent them

Stale inventory

Feeds sent too rarely cause oversells. Match feed frequency to the partner's requirements and your sales velocity.

Not reserving for other channels

Publishing the same stock to every channel without safety stock leads to oversells across channels.

Unknown items

Items must be set up with the partner before inventory updates for them are accepted.

Trading partners

Integration guides that include the 846

  • Amazon EDI integration
  • Marriott Bonvoy Boutiques EDI integration
  • McKesson EDI integration
  • Target EDI integration
  • The Home Depot EDI integration
  • Verizon EDI integration
  • Wayfair EDI integration

EDI 846 FAQs

How often should an 846 be sent?

It depends on the partner's program. Drop-ship programs often expect several updates a day, while others accept daily feeds.

Is the 846 only for drop-ship?

No. It is also used by distributors, warehouses and vendor-managed inventory programs.

Can APIs replace the 846?

Marketplaces and some retailers accept inventory through APIs. Many retail drop-ship programs still require the 846.

Need help with the EDI 846?

ECOM maps, tests and monitors X12 documents for your trading partners and integrates them with your ERP.