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 — data architecture in transit

X12

American National Standards Institute Accredited Standards Committee X12. The dominant EDI standard in North America since 1979.

What is X12?

X12 refers both to the ASC X12 committee and to the body of standards it publishes: a dictionary of transactions identified by three-digit codes (850, 810, 856, 837…), a vocabulary of segments and elements, and an envelope syntax (ISA/IEA, GS/GE, ST/SE). Where EDIFACT was conceived under the United Nations to cover international trade, X12 emerged from North American industry in 1979 to serve retail and rail freight, then expanded to health care, finance and federal administration.

Both standards address the same use cases — purchase order, acknowledgment, despatch advice, invoice — with a similar grammar of tagged segments and reserved delimiters. They differ in vocabulary (BGM versus ST/BEG, NAD versus N1, LIN versus PO1) and in geography: a transatlantic supply chain almost invariably crosses a gateway between the two standards.

Anatomy of a transaction

An X12 exchange nests three envelope levels: the interchange (ISA / IEA), the functional group (GS / GE) which bundles transactions of one type, and the transaction set itself (ST / SE). The tilde ~ terminates each segment, the asterisk * separates elements. A minimal 850 purchase order looks like this:

x12 minimal-850.x12
ISA*00*          *00*          *ZZ*SENDERID       *ZZ*RECEIVERID    *260513*1430*U*00401*000000001*0*P*>~
GS*PO*SENDERID*RECEIVERID*20260513*1430*1*X*004010~
ST*850*0001~
BEG*00*SA*PO78901**20260513~
N1*BY*ACME RETAIL*92*0001~
N1*ST*ACME WAREHOUSE*92*0042~
PO1*1*2*EA*9.99**UP*012345678905~
CTT*1~
SE*7*0001~
GE*1*1~
IEA*1*000000001~

The ISA envelope is fixed-length and carries the sender and receiver IDs, date, time, interchange control number, the test-or-production indicator, and the character that will itself terminate ISA — here >. The GS states the functional nature of the group (PO for purchase order, IN for invoice, HC for health care claim) and the X12 release in use (here 004010). The ST names the transaction set (850) and assigns it a control number. Each trailer (SE, GE, IEA) repeats a segment or transaction count, which makes arithmetic validation trivial.

Versions

X12 publishes its standards in versioned releases. The release appears in the GS08 segment of every functional group. The milestones every North American integrator meets:

VersionYearStatusNotes
40101997Historic workhorseStill widely deployed in US retail and manufacturing.
50102003HIPAA-mandatedRequired for US health-care transactions since 1 January 2012.
60202008ModernisationSupply-chain refinements and code-list updates.
70302013StableSelective adoption by large enterprises.
80102018RecentAligned with modern API and identifier practice.

Use cases

The X12 catalogue is split into industry subcommittees that group transactions by domain. The most-deployed in practice:

  • Supply Chain (X12M) — purchase order 850, PO acknowledgment 855, ship notice/manifest 856 (ASN), invoice 810, functional acknowledgment 997, product activity data 852, planning schedule 830.
  • Health care (X12N / HIPAA) — health care claim 837, benefit enrollment 834, services review information 278, property and casualty loss notification 272. Release 5010 is HIPAA-mandated since 2012 for every health-care transaction in the US.
  • Finance (X12F) — payment order / remittance advice 820, consolidated service invoice 811, debit authorization 828, tax return acknowledgment 151.
  • Transport (X12I) — air shipment information 104, shipping instructions 304, freight invoice 859, shipment and billing notice 857.
  • Communications & controls — text message 864, electronic form structure 868, cryptographic service message 815.

Transaction catalogue

Structured list of transaction sets ediverse.io documents, grouped by X12 subcommittee. Each entry links to a detail page with envelope, structural segments, and common pitfalls.

Supply chain (X12M)

CodeName
850Purchase Order
855Purchase Order Acknowledgment
856Ship Notice/Manifest (ASN)
810Invoice
832Price/Sales Catalog
846Inventory Inquiry/Advice
860Purchase Order Change Request
861Receiving Advice/Acceptance Certificate
862Shipping Schedule
865Purchase Order Change Acknowledgment
867Product Transfer and Resale Report
869Order Status Inquiry
870Order Status Report
842Nonconformance Report
853Routing and Carrier Instruction
866Production Sequence
880Grocery Products Invoice
881Manufacturer Coupon Redemption Detail
894Delivery/Return Base Record
841Specifications/Technical Information
848Material Safety Data Sheet
180Return Merchandise Authorization and Notification
141Product Service Claim Response
142Product Service Claim
143Product Service Notification
159Motion Picture Booking Confirmation
875Grocery Products Purchase Order
940Warehouse Shipping Order
244Product Source Information
250Purchase Order Shipment Management Document
290Cooperative Advertising Agreements
816Organizational Relationships
884Manufacturer Item Identification Update
891Deduction Research Report
893Item Information Request
895Delivery/Return Acknowledgment or Adjustment
223Consignment Summary List
877Manufacturer Coupon Promotion Announcement
878Product Authorization/De-authorization
879Price Information
882Direct Store Delivery Summary Information
885Retail Account Characteristics
886Customer Call Reporting
887Coupon Notification
888Item Maintenance
889Promotion Announcement
896Product Dimension Maintenance
871Component Parts Content
840Request for Quotation
843Response to Request for Quotation
845Price Authorization Acknowledgment/Status
847Material Claim
852Product Activity Data

Finance and controls (X12F / X12C)

CodeName
820Payment Order/Remittance Advice
821Financial Information Reporting
823Lockbox
812Credit/Debit Adjustment
813Electronic Filing of Tax Return Data
824Application Advice
844Product Transfer Account Adjustment
854Shipment Delivery Discrepancy Information
864Text Message
130Student Educational Record (Transcript)
131Student Educational Record (Transcript) Acknowledgment
105Business Entity Filings
113Election Campaign and Lobbyist Reporting
158Tax Jurisdiction Sourcing
175Court and Law Enforcement Notice
152Statistical Government Information
196Contractor Cost Data Reporting
280Voter Registration Information
501Vendor Performance Review
511Requisition
517Material Obligation Validation
138Educational Testing Results Request and Report
139Student Loan Guarantee Result
146Request for Student Educational Record (Transcript)
147Response to Request for Student Educational Record
148Report of Injury, Illness, or Incident
149Notice of Tax Adjustment or Assessment
150Tax Rate Notification
151Electronic Filing of Tax Return Data Acknowledgment
154Uniform Commercial Code Filing
155Business Credit Report
170Revenue Receipts Statement
194Grant or Assistance Application
283Tax or Fee Exemption Certification
521Income or Asset Offset
819Joint Interest Billing and Operating Expense
868Electronic Form Structure
996File Transfer
242Data Status Tracking
191Student Loan Pre-Claims and Claims
282Direct Debit Authorization
287Wage Determination
288Wage Verification Report
567Contract Completion Status
568Contract Payment Management Report
805Contract Pricing Proposal
838Trading Partner Profile
248Account Assignment / Inquiry and Service / Status
540Notice of Employment Status
825Tax Information Exchange
826Tax Notice
827Financial Return Notice
828Debit Authorization
829Payment Cancellation Request
836Procurement Notices
839Project Cost Reporting
184Royalty Regulatory Report
188Educational Course Inventory
189Application for Admission to Educational Institutions

Mortgage and Real Estate (X12F)

CodeName
200Mortgage Credit Report
201Residential Loan Application
202Secondary Mortgage Market Loan Delivery
203Secondary Mortgage Market Investor Report
205Mortgage Note
206Real Estate Inspection
245Real Estate Tax Service Response
264Mortgage Loan Default Status
197Real Estate Title Evidence
261Real Estate Information Request
262Real Estate Information Report
263Residential Mortgage Insurance Application Response
266Mortgage or Note Status / Title Information
257Residential Mortgage Insurance Application Notification
259Residential Mortgage Insurance Explanation of Benefits
260Application for Mortgage Insurance Benefits
265Real Estate Title Insurance Services Order
368Real Estate Information Services Order

Automotive (X12I)

CodeName
124Vehicle Damage
125Multilevel Railcar Load Details
126Vehicle Application Advice
127Vehicle Buying Order
128Dealer Information

Transport (X12I)

CodeName
204Motor Carrier Load Tender
210Motor Carrier Freight Details and Invoice
212Motor Carrier Delivery Trailer Manifest
213Motor Carrier Shipment Status Inquiry
214Transportation Carrier Shipment Status Message
215Motor Carrier Pickup Manifest
217Motor Carrier Loading and Route Guide
218Motor Carrier Tariff Information
220Logistics Service Response
240Motor Carrier Package Status
300Reservation (Booking Request) (Ocean)
301Confirmation (Ocean)
404Rail Carrier Shipment Information
990Response to a Load Tender
110Air Freight Details and Invoice
161Train Sheet
304Shipping Instructions
310Freight Receipt and Invoice (Ocean)
311Canada Customs Information
312Arrival Notice (Ocean)
350Customs Status Information
410Rail Carrier Freight Details and Invoice
420Car Handling Information
425Rail Waybill Request
434Railroad Mark Register Update Activity
440Shipment Weights
859Freight Invoice
920Loss or Damage Claim - General Commodities
322Terminal Operations and Intermodal Ramp Activity
323Vessel Schedule and Itinerary
324Advance Ship Notice (Ocean)
352U.S. Customs Carrier Cargo Information
355U.S. Customs Acceptance / Rejection
357U.S. Customs In-Bond Information
361Carrier Interchange Agreement (Rail)
452Railroad Problem Log Inquiry / Advice
222Cartage Work Assignment
224Motor Carrier Summary Freight Bill Manifest
309Customs Manifest
315Status Details (Ocean)
317Delivery / Pickup Order
358Customs Consist Information
426Rail Revenue Waybill
419Advance Car Disposition (Rail)
421Estimated Time of Arrival and Car Scheduling (Rail)
422Equipment Order (Rail)
423Rail Industrial Fuel Surcharge
460Railroad Equipment Inquiry or Advice
463Rail Rate Reply
466Rate Request (Rail)
470Railroad Clearance
475Rail Route File Maintenance
109Vessel Content Details
219Logistics Service Notification
225Response to a Cargo Insurance Advice of Shipment
285Commercial Vehicle Safety and Credentials Information Exchange
286Commercial Vehicle Credentials
313Shipment Status Inquiry (Ocean)
319Terminal Information
326Consignment Summary List
353Customs Events Advisory Details
354U.S. Customs Automated Manifest Archive Status
356U.S. Customs Permit to Transfer Request
412Trailer or Container Repair Billing
417Rail Carrier Waybill Interchange
418Rail Advance Interchange Consist
451Railroad Event Report
715Intermodal Group Loading Plan

Insurance (X12N — P&C, Life)

CodeName
186Insurance Underwriting Requirements Reporting
100Insurance Plan Description
111Individual Insurance Policy and Client Information
112Property Damage Report
252Insurance Producer Administration
255Underwriting Information Services
256Periodic Compensation
267Individual Life, Annuity and Disability Application
273Insurance/Annuity Application Status
272Property and Casualty Loss Notification

Healthcare (X12N / HIPAA)

CodeName
270Health Care Eligibility Inquiry
271Health Care Eligibility Response
275Patient Information
276Health Care Claim Status Inquiry
277Health Care Claim Status Notification
278Health Care Services Review
820 (HIPAA)Health Care Premium Payment
834Benefit Enrollment and Maintenance
835Health Care Claim Payment/Advice
837Health Care Claim
268Annuity Activity
269Health Care Benefit Coordination Verification
274Healthcare Provider Information
863Report of Test Results

Acknowledgments and controls

CodeName
997Functional Acknowledgment
999Implementation Acknowledgment
998Set Cancellation

Tools

To explore X12 in practice:

  • X12 Parser — tokenisation and inspection of ISA/GS/ST envelopes, 100% client-side (publication in progress).

Further reading

Public official sources we reference without copying:

  • x12.org — the ASC X12 site: public transaction-set index, examples, and the catalogue of Implementation Guides to purchase.
  • stedi.com/edi/x12, truugo.com and edi2xml.com — the editorial model ediverse.io follows: document the standards without redistributing the TR3s, building on the public pages and open-source fixtures for examples.
  • For health care, cms.gov publishes HIPAA 5010 examples under an open US government license.