ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

X12 866 — Production Sequence

The 866 dictates the order in which goods must arrive, be unloaded, or be fed into production. It is the hinge of JIS (Just-In-Sequence) and variant-rich automotive assembly.

Purpose

The 866 translates the final assembly sequence into a sequenced delivery instruction for a tier-1 supplier. In a variant-rich automotive plant (color, options, engine), each vehicle on the line consumes a specific variant of a component — seat, console, door panel — when the vehicle reaches the install station. The 866 sends the day or shift sequence to the tier 1, station by station, so the supplier prepares the rack in the right order, window by window.

The 866 does not replace the 830 or the 862: the 830 carries the weekly production plan and the 862 the daily shipping window. The 866 adds on when JIS precision is required — typically a few hours before assembly.

Envelope structure

The 866 travels in a functional group SS (Shipping Schedule). Didactic example in release 004010 for two door variants:

x12 example-866.x12
ISA*00*          *00*          *ZZ*ACMEAUTO      *ZZ*ACMETIER1     *260514*0700*U*00401*000000866*0*P*>~
GS*SS*ACMEAUTO*ACMETIER1*20260514*0700*1*X*004010~
ST*866*0001~
BSS*00*PS-2026-0099*20260514*A*20260516~
N1*BY*ACME AUTO ASSY 7*92*0007~
N1*VN*ACME TIER1 INC*92*T1-9087~
LIN*1*PN*PN-RED-DOOR-L~
SDQ*EA*92*WS-100*4*WS-200*4*WS-300*8~
LIN*2*PN*PN-RED-DOOR-R~
SDQ*EA*92*WS-100*4*WS-200*4*WS-300*8~
SE*9*0001~
GE*1*1~
IEA*1*000000866~

The BSS (Beginning Segment for Shipping Schedule / Production Sequence) opens: function code (00 = Original, 04 = Change), identifier, date, status, horizon. The N1 segments identify the destination plant and the supplier. The LIN loop identifies the item by part number; SDQ (Destination Quantity) repeats station / quantity pairs — the JIS instruction itself.

Common segments

  • HeaderST, BSS (Beginning Segment for Shipping Schedule), REF (contract or release no.), DTM (arrival date).
  • PartiesN1 loop (BY, VN, ST = Ship-To, ZZ = proprietary code).
  • Items and sequenceLIN loop with PID, repeated SDQ for station/quantity, SCH (Schedule), SLN (Sub-line).
  • SummaryCTT, SE.

Common pitfalls

  • Proprietary station numbers: SDQ repeats station / quantity; each OEM defines its own station code book, shared outside EDI.
  • Cumulative vs delta: some 866s carry a cumulative sequence from shift start, others a delta; check with the OEM.
  • JIS timing: the lag between 866 emission and install is typically < 4h; a transmission or ERP-batch delay loses the sequence.

Documentation

The code 866 and the name Production Sequence are public and listed on x12.org/products/transaction-sets. AIAG code books and per-OEM sequence conventions are distributed by the association or directly by the OEM.