EDI fundamentals

How EDI works: from purchase order to payment

A step-by-step walk through the EDI process, from creating a document in one system to processing it in another.

3 min read · Updated October 19, 2026

The short answer

EDI works in five steps: business data is extracted from the sender's system, translated into a standard format such as X12, wrapped in envelopes and transmitted over a secure channel, acknowledged by the receiver, and translated into the receiver's system format so it can be processed automatically.

The EDI process in five stepsFive steps from left to right: 1 the sender extracts business data from its ERP, 2 translates it into a standard format such as an X12 850, 3 wraps it in ISA, GS and ST envelopes and transmits it, 4 the receiver acknowledges it with a 997, 5 the receiver translates it into its own format, such as a sales order.The EDI process in five stepsWhat happens between the sender’s system and the receiver’s system1SENDERExtractBusiness dataleaves the sender’sERPERP order2SENDERTranslateMapped into theEDI standardX12 8503NETWORKWrap andtransmitEnvelopes added,sent over a securechannelISAGSST4RECEIVERAcknowledgeReceipt confirmedto the sender9975RECEIVERTranslate andintegrateConverted into thereceiver’s formatand processedSales order
The EDI process in five stepsFive steps from left to right: 1 the sender extracts business data from its ERP, 2 translates it into a standard format such as an X12 850, 3 wraps it in ISA, GS and ST envelopes and transmits it, 4 the receiver acknowledges it with a 997, 5 the receiver translates it into its own format, such as a sales order.The EDI process in five stepsWhat happens between the sender’s systemand the receiver’s system1SENDERExtractBusiness data leaves the sender’s ERPERP order2SENDERTranslateMapped into the EDI standardX12 8503NETWORKWrap and transmitEnvelopes added, sent over a securechannelISAGSST4RECEIVERAcknowledgeReceipt confirmed to the sender9975RECEIVERTranslate and integrateConverted into the receiver’s format andprocessedSales order

Each numbered step matches a heading in this article. The tags show what the data looks like at that point, using a purchase order as the example.

Expand diagram Download SVG

One order, end to endSequence diagram: the retailer sends an 850 purchase order to the supplier’s EDI platform, which returns a 997 and creates a sales order in the supplier’s ERP. The supplier confirms with an 855, sends an 856 ship notice with carton labels from warehouse data, and an 810 invoice from billing. The retailer pays and sends an 820 remittance advice, which drives cash application in the ERP.One order, end to endThe worked example from this article: from purchase order to paymentRetailerSupplier’s EDI platformSupplier’s ERP850 purchase order997 acknowledgmentSales order created855 order acknowledgmentWarehouse data at shipment856 ship notice and carton labelsBilling810 invoice820 remittance adviceCash application
One order, end to endSequence diagram: the retailer sends an 850 purchase order to the supplier’s EDI platform, which returns a 997 and creates a sales order in the supplier’s ERP. The supplier confirms with an 855, sends an 856 ship notice with carton labels from warehouse data, and an 810 invoice from billing. The retailer pays and sends an 820 remittance advice, which drives cash application in the ERP.One order, end to endThe worked example from this article: frompurchase order to paymentRetailerSupplier’sEDI platformSupplier’sERP850 purchase order997 acknowledgmentSales order created855 orderacknowledgmentWarehouse data atshipment856 ship notice and cartonlabelsBilling810 invoice820 remittance adviceCash application

Arrows run in time order from top to bottom. Orange arrows are the documents the retailer sends; the dashed arrow is the technical acknowledgment. People step in only when something does not match.

Expand diagram Download SVG

The EDI process in five steps

Every EDI exchange follows the same basic path, whether it is a purchase order from a retailer or a status update from a carrier.

1. Extract the business data

The process starts in the sender’s business system. A buyer’s ERP creates a purchase order; a supplier’s warehouse system confirms a shipment. The integration layer extracts that data through an API, a file export, a database interface or an ERP-specific format such as an SAP IDoc.

2. Translate to the EDI standard

Translation software applies a map that converts the internal data into the agreed standard, such as an ANSI X12 850 purchase order. The map handles field positions, code conversions (for example, internal units of measure to standard codes) and the trading partner’s specific rules from its implementation guide.

3. Wrap and transmit

EDI documents travel inside envelopes. In X12:

  • The ISA/IEA interchange envelope identifies the sender and receiver and carries control numbers.
  • The GS/GE functional group bundles documents of the same type.
  • The ST/SE segments mark the start and end of each transaction set.

The interchange is then sent over a secure channel, commonly AS2, SFTP, an API or a value-added network (VAN).

4. Acknowledge

The receiver checks the interchange and returns a 997 functional acknowledgment confirming whether each document arrived and was syntactically valid. Business responses, such as an 855 order acknowledgment, follow later if the partner requires them.

5. Translate and integrate

On the receiving side, the process runs in reverse. Translation software converts the X12 document into the receiver’s format, validates it against business rules and master data, and delivers it to the ERP, where it becomes a sales order, receipt or invoice.

A worked example: one order, end to end

  1. A retailer’s system creates a purchase order and sends an 850.
  2. The supplier’s EDI platform receives it, returns a 997 and translates the order into a sales order in the ERP.
  3. The supplier confirms the order with an 855.
  4. When the order ships, warehouse data generates an 856 ship notice and matching carton labels.
  5. Billing in the ERP generates an 810 invoice.
  6. The retailer pays and sends an 820 remittance advice, which the supplier uses for cash application.

Each step is automatic when integration is designed well. People step in only when something does not match.

Where EDI breaks down

Most EDI problems come from a few sources:

  • Master data gaps, such as item numbers or ship-to locations that are not cross-referenced.
  • Map errors that do not follow the partner’s current guide.
  • Timing, when documents are sent too late for the partner’s process.
  • Silent failures, when nobody notices a missing acknowledgment.

Monitoring every document across its lifecycle, rather than only checking whether files were sent, is the most effective way to catch these issues before they affect customers.

What you need to run EDI

At minimum: translation and mapping, secure communication with each partner, integration with your business systems, and monitoring. These can be run in-house, on a managed platform, or as a service operated by specialists.

How long it takes to connect a new partner, and what causes most EDI problems, are answered in the EDI FAQ.

Frequently asked questions

What is an EDI envelope?

Envelopes wrap EDI documents for transmission. In X12, the ISA/IEA interchange envelope identifies sender and receiver, the GS/GE functional group groups similar documents, and ST/SE marks each transaction set.

What is EDI mapping?

Mapping defines how each field in an EDI document corresponds to data in your business system, including code conversions and calculations. Translation software applies the map to real documents.

How long does an EDI exchange take?

With direct connections, documents typically arrive within seconds or minutes. Processing time then depends on how the receiving system is scheduled.

Have an EDI question we did not answer?

ECOM's integration specialists can review your partners, documents and systems and recommend next steps.