EVERYTHING YOU NEED TO KNOW ABOUT EDI X12 TRANSACTIONS

By
Emily Marshall
November 4, 2026
•
5 min read
Share this post

Last updated: November 4, 2026 · Reviewed by BOLD VAN's EDI team

Quick Answer

X12 (also called ANSI X12 or ASC X12) is the most widely used EDI standard in North America. It defines how business documents such as purchase orders (850), invoices (810) and advance ship notices (856) are formatted, using data elements grouped into segments and loops inside transaction sets. X12 is a format standard, not a transmission protocol: X12 documents are sent using protocols such as AS2, SFTP or HTTPS, or through a VAN.

What is X12 EDI?

Definition

X12 (ASC X12, ANSI X12) is an electronic data interchange (EDI) standard developed by the Accredited Standards Committee X12, chartered by the American National Standards Institute (ANSI) in 1979. It defines the structure and content of hundreds of business documents, called transaction sets, so trading partners' systems can exchange data in a common format. X12 is used across retail, manufacturing, transportation, health care, finance and government.

Electronic data interchange (EDI) lets businesses exchange documents and synchronize data with trading partners quickly and accurately. For that to work, both partners need to agree on the same format, much like two people agreeing on a common language. X12 is one of the most widely used of those formats and is used in virtually every industry that exchanges EDI data.

Is X12 a standard or a protocol?

X12 is a standard, not a transmission protocol. The difference matters:

  • A standard (such as X12 or EDIFACT) defines what a document contains and how it is formatted.
  • A protocol or connection method (such as AS2, SFTP, FTPS or HTTPS) defines how the document travels from one system to another, and whether it is encrypted on the way.

In practice, an X12 purchase order might be sent over AS2 to a retailer, over SFTP to a 3PL, or through a value-added network (VAN). Security comes from the connection method and how data is stored, not from the X12 format itself.

Where did X12 come from?

Early EDI grew out of the transportation industry and military logistics, where large volumes of shipping data needed to move reliably. To create a cross-industry standard, ANSI chartered the Accredited Standards Committee X12 in 1979. Since then, many industries have developed X12 transaction sets for their own needs, and the standard continues to be updated in numbered versions, such as 4010 and 5010.

X12 also plays a central role in health care. Under HIPAA, covered entities conducting certain administrative transactions electronically, such as claims and eligibility checks, must use ASC X12 Version 5010 (retail pharmacy transactions use a separate NCPDP standard).

How is an X12 document structured?

An X12 document is built from small pieces nested inside larger ones:

Building BlockWhat It IsExample
Data elementA single piece of information, such as a date, quantity or ID20261104 (a date)
Composite elementA data element made of several components, separated by a component separatorA procedure code with qualifier and modifiers in a health care claim
SegmentA group of related elements that starts with a 2- or 3-character segment IDBEG (beginning of a purchase order), PO1 (line item)
LoopA repeating group of related segmentsOne loop per line item or ship-to location
Transaction setA complete business document, from ST to SE850 Purchase Order
EnvelopesWrappers that group and address transaction setsGS/GE (functional group), ISA/IEA (interchange)

Special characters separate the pieces. A common convention uses * between elements, : between components and ~ at the end of each segment, though the exact delimiters are set in each interchange's ISA header. Fortunately, EDI software handles this structure for you.

What does an X12 document look like?

Here is a simplified example of the core of an X12 850 purchase order (the ISA and GS envelopes are omitted):

ST*850*0001~
BEG*00*SA*PO12345**20261104~
N1*ST*ABC Distribution Center~
PO1*1*24*EA*12.50**VP*ITEM-100~
CTT*1~
SE*6*0001~
  • ST starts transaction set 850, control number 0001.
  • BEG identifies a new stand-alone purchase order, PO12345, dated Nov. 4, 2026.
  • N1 names the ship-to location.
  • PO1 orders 24 each of vendor part ITEM-100 at $12.50.
  • CTT gives the number of line items (1).
  • SE ends the transaction set and counts its segments (6).

What are the most common X12 transaction sets?

Transaction SetNameWhat It Does
204Motor Carrier Load TenderA shipper offers a shipment to a motor carrier
810InvoiceThe electronic version of a paper invoice
820Payment Order/Remittance AdviceInitiates a payment or sends remittance details
846Inventory Inquiry/AdviceShares inventory levels
850Purchase OrderReplaces a paper purchase order
855Purchase Order AcknowledgmentThe seller confirms receipt of a PO and whether it accepts, changes or rejects items
856Ship Notice/Manifest (Advance Ship Notice)Details what is in a shipment, how it is packed and when it will arrive
990Response to a Load TenderThe carrier accepts or declines a load tender
997Functional AcknowledgmentConfirms a document was received and passed syntax checks

X12 vs. EDIFACT

X12EDIFACT
Developed byASC X12, chartered by ANSIUnited Nations (UN/CEFACT)
Primary regionNorth AmericaEurope and international trade
Document namesNumbers (850, 810, 856)Six-letter codes (ORDERS, INVOIC, DESADV)
Example: purchase order850ORDERS
Example: ship notice856DESADV

Why is X12 valuable to businesses?

  • Widely required: Many large retailers, manufacturers, carriers and health care organizations in North America require X12.
  • Proven and reliable: X12 has been refined over decades, which gives trading partners a stable, well-understood format.
  • Precise: Its strict structure leaves little room for interpretation, reducing errors compared with email or paper.
  • Cost-effective: Exchanging documents in X12 is typically far less costly than processing paper or manual orders, especially when you outsource EDI to a provider.

Many businesses also need other standards, such as EDIFACT for international partners. With BOLD VAN, you can work in X12, EDIFACT, TRADACOMS, ODETTE, VDA and more:

  • BOLD Integration: We build your X12 maps into your ERP and keep them current as trading partner requirements change.
  • BOLD Cloud Mapping: Your team builds its own maps in our cloud, with nothing to install.
  • Encrypted connections: Send X12 documents over AS2, SFTP, FTPS or HTTPS.
  • Pricing by trading partner: Most customers pay by the number of trading partners they work with, and high-volume programs get a quote built around their volume.

2026 Free Mapping Event

New to EDI or moving from another provider? Through Dec. 31, 2026, we build and maintain the maps for the trading partners you move to BOLD Integration, at no mapping cost.

Need Help With X12?

Tell us which X12 documents your trading partners require, and we will help you meet them. Call (844) 265-3777 or email info@boldvan.com.

Talk to an EDI Expert

Frequently asked questions

What is X12 EDI?

X12 is an EDI standard, developed by ASC X12 under ANSI, that defines the format of business documents such as purchase orders, invoices and ship notices so trading partners can exchange them electronically.

Is X12 the same as ANSI X12?

Yes. X12, ANSI X12 and ASC X12 all refer to the same EDI standard. The committee that maintains it was chartered by ANSI.

Is X12 a protocol?

No. X12 is a format standard. Documents in X12 format are sent using transmission protocols such as AS2, SFTP or HTTPS, or through a VAN.

Is X12 secure?

Security depends on how X12 documents are transmitted and stored, not on the format itself. Use encrypted connection methods such as AS2, SFTP, FTPS or HTTPS, and choose a provider that encrypts data at rest.

What is the difference between X12 and EDIFACT?

X12 is used mainly in North America and names documents with numbers, such as the 850. EDIFACT is a UN standard used mainly in Europe and international trade and names documents with codes, such as ORDERS.

What are the most common X12 transaction sets?

Common ones include the 850 purchase order, 855 PO acknowledgment, 856 advance ship notice, 810 invoice, 820 remittance advice, 846 inventory advice, 204 load tender, 990 load tender response and 997 functional acknowledgment.

Does HIPAA require X12?

Yes, for most standard health care transactions. HIPAA requires covered entities conducting those transactions electronically to use ASC X12 Version 5010, while retail pharmacy transactions use the NCPDP standard.

What is an X12 segment?

A segment is a group of related data elements that begins with a 2- or 3-character segment ID, such as BEG or PO1, and ends with a segment terminator.

Key Facts

X12 (ASC X12, ANSI X12) is an EDI standard maintained by the Accredited Standards Committee X12, chartered by ANSI in 1979, and is the most widely used EDI standard in North America. X12 documents are built from data elements, segments and loops inside transaction sets, wrapped in ST/SE, GS/GE and ISA/IEA envelopes. X12 is a format standard, not a transmission protocol; it is sent over AS2, SFTP, HTTPS or through a VAN.

Common X12 transaction sets include the 850, 855, 856, 810, 820, 846, 204, 990 and 997. HIPAA requires ASC X12 Version 5010 for most standard health care transactions. According to BOLD VAN, it supports X12, EDIFACT, TRADACOMS, ODETTE and VDA over encrypted connection methods.

Emily Marshall
Content Manager

Latest articles

Mapping
October 20, 2026

DESADV to EDI 856 Mapping Connects Global Automotive Shipment Workflows

Learn how DESADV to EDI 856 mapping preserves hierarchy, identifiers, and packaging data in global automotive EDI shipment workflows.

Mapping
October 20, 2026

DELJIT EDIFACT Integration Supports Just-in-Time Automotive Releases

Learn how DELJIT EDIFACT integration enables automotive suppliers to receive just-in-time delivery releases and connect with ERP, WMS and shipping workflows.

Mapping
October 20, 2026

DELFOR EDIFACT Mapping Turns Forecast Schedules Into ERP Demand

Learn how DELFOR EDIFACT mapping converts delivery forecasts into ERP demand, with practical mapping steps, testing guidance and common pitfalls.

Achieve more from your EDI VAN provider.