What is EDI in supply chain? How trading partners swap orders and invoices
EDI stands for electronic data interchange. In a supply chain, it’s the way two companies’ computer systems exchange business documents (purchase orders, shipping notices, invoices) in a strict, standard format, without anyone printing, emailing or retyping them. A retailer’s system sends a purchase order; the supplier’s system reads it automatically, and later sends back a ship notice and an invoice the same way.
If you’ve just landed your first big retail or distribution customer and their onboarding pack says “EDI required,” this page is for you. We’ll explain what it is, what the documents look like, how the messages travel, and the realistic ways a smaller supplier gets set up.
The analogy: the shipping container
Before standard shipping containers, every port loaded cargo differently: sacks, barrels, crates of every size. Each handoff was slow and error-prone. The standard container changed that. Cranes, ships, trucks and trains are built around its exact dimensions, so goods move from one carrier to the next without anyone unpacking them.
EDI documents are shipping containers for business information. A purchase order in EDI format has exactly the same structure whichever retailer sends it, so any EDI-capable system can pick it up and process it. An emailed PDF purchase order, by contrast, is a crate of odd shape that a person has to open and unpack by hand.
The standards: X12 and EDIFACT
EDI only works because both sides agree on the format. These are the two families of standards you’ll meet:
- ANSI X12, maintained by X12, an organization accredited by the American National Standards Institute (ANSI). It grew out of US industry and is the one US trading partners typically reference.
- UN/EDIFACT, the United Nations standard for electronic data interchange, maintained under UN/CEFACT (the UN Centre for Trade Facilitation and Electronic Business) for international trade.
Each business document is a numbered “transaction set.” X12’s transaction set catalog includes the ones a supplier meets first:
| X12 number | Name | What it does in plain words |
|---|---|---|
| 850 | Purchase Order | ”Please send us these items, at these prices, to this location.” |
| 855 | Purchase Order Acknowledgment | ”Got your order; here’s what we can and can’t fill.” |
| 856 | Ship Notice/Manifest | Often called an ASN (advance ship notice): “Here’s exactly what’s in the truck, carton by carton.” |
| 810 | Invoice | ”Here’s what you owe for that shipment.” |
| 846 | Inventory Inquiry/Advice | ”Here’s how much stock we have available.” |
| 820 | Payment Order/Remittance Advice | ”Here’s the payment, and which invoices it covers.” |
| 997 | Functional Acknowledgment | ”Your document arrived and was readable.” (It doesn’t mean “we agree.”) |
Each retailer also publishes its own implementation guide, sometimes called a spec, saying which optional fields it requires and how. Two retailers can both use the 850 and still want it filled in differently.
What an EDI document looks like
Raw EDI isn’t meant for humans. Here’s a simplified, made-up fragment of an X12 purchase order:
ST*850*0001~BEG*00*SA*PO45821**20261201~N1*ST*Main Street Store #114~PO1*1*24*EA*6.50**VP*MUG-BLUE~PO1*2*12*EA*9.75**VP*TEE-L~CTT*2~SE*7*0001~Each line is a segment, starting with a code (BEG for the beginning of the order, PO1 for a line item). Asterisks separate the fields, and the tilde ends the segment. Line 4 says: item 1, quantity 24, each, $6.50, vendor part number MUG-BLUE. The rigid structure is the point: software can read it with no guesswork.
How documents travel
The format is one half. The other half is delivery. There are three common routes:
- AS2 (Applicability Statement 2). A direct, secure connection between the two companies’ systems over the internet, defined by the Internet Engineering Task Force in RFC 4130. It includes signed receipts, so each side can prove what was sent and received.
- VAN (value-added network). A paid service that acts like a post office for EDI. You drop documents into your mailbox; the VAN delivers them to each partner’s mailbox, whichever network they use.
- SFTP (secure file transfer protocol). Some partners simply exchange EDI files through a shared, secure folder.
Here’s a typical order-to-cash cycle between a retailer and a supplier:
RETAILER SUPPLIER +----------+ 850 Purchase Order +----------+ | Buying | ----------------------------> | Order | | system | | system | | | <---------------------------- | / ERP | | | 997 receipt + 855 ack | | | | | | | Receive | <---------------------------- | Ship | | dock | 856 Ship Notice (ASN) | goods | | | | | | Accounts | <---------------------------- | Billing | | payable | 810 Invoice | | | | ----------------------------> | | +----------+ 820 Remittance + payment +----------+
(documents travel by AS2, a VAN, or SFTP)EDI vs APIs
If EDI sounds like an old-fashioned version of an API (application programming interface), that’s a fair first impression. Both let systems exchange data without people retyping it. The differences are practical:
| EDI | API | |
|---|---|---|
| Typical use | Business documents between companies | Data requests between apps, often in real time |
| Format | Fixed standards (X12, EDIFACT) plus partner guides | Defined by each vendor, often JSON |
| Timing | Usually batches, minutes to hours | Usually instant |
| Who decides the rules | Standards bodies and the big trading partner | The vendor publishing the API |
Some large retailers require EDI because their whole receiving and payment process runs on it. Newer partners sometimes accept APIs instead. If you want the API side of the picture, read our API integration guide and API vs webhook.
How a smaller supplier gets set up
You have three realistic options, and many suppliers move through them as volume grows.
- Web EDI portal. A service gives you a website where incoming EDI orders appear as readable forms. You key in the ship notice and invoice, and the service converts them to EDI and sends them. Lowest setup effort; still involves typing, so it suits low order volumes.
- EDI connected to your business system. A provider translates EDI documents and connects them to your ERP (enterprise resource planning) or order system, so orders land automatically and invoices go out without re-keying. Our ERP explainer covers what that system does; our list of ERP options for small business notes which ones fit distributors.
- EDI through an integration platform. Some integration platforms sell EDI as a module alongside their app connectors. Workato’s pricing page, for example, lists an EDI add-on powered by Orderful, and Celigo lists a B2B Manager for EDI. See our iPaaS platforms comparison for how those platforms charge.
Whichever route you choose, budget for testing. Most retailers require you to send test documents and pass their checks before going live, and every new trading partner means another round of mapping and testing.
Questions to ask an EDI provider
- Which of my trading partners are you already connected to, and do you have their maps (field-by-field templates) ready?
- How do you charge: per trading partner, per document, per kilocharacter of data, or a flat fee?
- Does testing and certification with each retailer cost extra?
- Can you connect directly to my order system or ERP, and who maintains that connection?
- How will I be alerted when a document fails or a 997 acknowledgment doesn’t come back?
- Can you print the carton labels my retail partners require to match the ship notice?
Why getting it right matters
Retail partners rely on your documents to run their warehouses. If the ship notice says 20 cartons and 19 arrive, or the carton labels don’t match the ASN, receiving slows down. Retailer supplier agreements can include chargebacks (deductions from your payment) for late or inaccurate EDI documents, so read the compliance section of each partner’s vendor guide before you sign.
What this means for a 20-person company
- If a big customer requires EDI, start with a web EDI portal unless you already have an ERP that a provider can connect to.
- Ask each new customer for their EDI implementation guide and their chargeback policy before the first order.
- Make one person the EDI owner: they watch for failed documents and missing acknowledgments every day.
- When order volume makes re-keying painful, move to an integrated setup so orders flow straight into your system.
- Treat each new trading partner as a small project with its own testing time.