I still remember the letter. 2016. A big retailer gave us 60 days to set up Electronic Data Interchange or lose the account.
I panicked. No idea what EDI even meant. Computer-to-computer document exchange? It sounded harder than it turned out to be.
So let me save you that panic. Here’s what EDI is, how it works, and what to do when a mandate letter lands on your desk.
30-Second Summary
EDI is how two businesses swap documents without anyone retyping them. That’s the short version.
📌 TL;DR: EDI is the automated computer-to-computer exchange of standardized business documents (orders, invoices, ship notices) between trading partners. It replaces paper, fax, and rekeyed email. Retail, healthcare and logistics run on it. And you don't have to build anything from scratch to meet a mandate.
Here’s the quick map:
- What it is: structured documents moving computer-to-computer between partners.
- How it works: your system, a translator, a secure link, their system.
- The standards: ANSI X12 in North America, EDIFACT abroad, HIPAA in healthcare.
- The shapes: direct point-to-point, a VAN, WebEDI, or a managed platform.
- The catch: every partner reads the rulebook a little differently.
What Is Electronic Data Interchange?
Electronic Data Interchange (EDI) is the computer-to-computer exchange of standardized business documents between trading partners. Nobody retypes anything in the middle. Think of it as a shared language between two systems.
Your system sends a purchase order. Their system reads it and acts on it. No email attachment. Nobody picks up the phone.
And that’s the whole point. EDI is one of the steadiest forms of data integration in business, and the Wikipedia entry on electronic data interchange traces the standardized formats back to the 1970s.
Two terms you’ll hear constantly. A trading partner is the other company you exchange documents with. And a transaction set is one document type, like an order.
Retyping breaks at volume. Standards don’t. IBM’s EDI topic page covers the same ground in more depth.
How Does EDI Work?
EDI works by translating a document into one agreed format, sending it securely, then translating it back. That’s the entire loop.
Here’s the formula: your system → translator → secure transport → partner’s translator → their ERP.
Walk through it with me:
- Your system generates a document, like a purchase order.
- Translation software converts it into a standardized EDI format.
- The file moves to your partner over a secure connection.
- Their translator converts it back and their system processes it.
Two more definitions. A translator converts between your internal format and EDI. The map tells that translator where each field belongs.

And the money reason people do this? Processing a paper order can cost a business up to $70 while an EDI order costs less than $1, according to EDI Basics.
That’s not a rounding error. It’s a different business model.
I watched one client drop order processing from three days to same day. Their data quality jumped too. Standard formats wiped out typing mistakes.
What Are the 4 Major Components of EDI?
The four are translation software, the partner map, the communication method, and the trading partner agreement. Miss one and the flow stalls.
| Component | What it does | What goes wrong without it |
|---|---|---|
| Translation software | Converts your internal format into EDI and back | Files arrive as text your ERP cannot read |
| The partner-specific map | Tells the translator which value goes where | Data lands in the wrong field and gets rejected |
| Communication method (AS2, SFTP or a VAN) | Moves the file securely and proves it arrived | Documents vanish with no receipt or trail |
| Trading partner agreement and spec sheet | Records formats, versions and codes agreed | Each side builds different rules and blames the other |
Notice the pattern? Three of those four are agreements between humans, not code.
And the spec sheet is the one everybody skips. It’s a document, so it doesn’t feel technical. Honestly, it’s the most technical thing there.
The Types of EDI Connections
The three main types are direct point-to-point EDI, EDI through a VAN, and WebEDI. Each suits a different volume and budget.
Direct EDI connects you straight to a partner over AS2 or SFTP. You run it yourself. It pays off at high volume, with IT to watch it.
EDI via a VAN puts a managed network in the middle. A VAN (Value Added Network) is a mailbox that routes documents between partners. Billing is a monthly fee plus a usage charge tied to volume.
WebEDI is just a browser form. You type the order, and out comes proper EDI, on a low monthly subscription. Got a mandate and no budget? Start here.
Then there’s a fourth shape most lists skip: EDI through a managed iPaaS platform. One tool carries the EDI traffic and your other integrations.
Common Business Documents Exchanged via EDI

Every EDI document carries a number. Learn six and you can follow almost any conversation.
| Transaction set | Document | What it does |
|---|---|---|
| EDI 850 | Purchase Order | Buyer sends an order to a supplier. |
| EDI 810 | Invoice | Supplier bills the buyer and triggers payment. |
| EDI 856 | Advance Ship Notice (ASN) | Tells the partner what is shipping and when. |
| EDI 997 | Functional Acknowledgment | Confirms a document arrived and passed validation. |
| EDI 820 | Payment Order and Remittance | Sends payment details and the invoices covered. |
| EDI 214 | Shipment Status | Carrier reports where the freight is. |
That fourth one, the 997, is where late-night troubleshooting lives.
When a 997 comes back rejected, it’s almost always a mapping or format mismatch. Keep a cheat sheet of the error codes. And keep your data governance tight, because clean rules stop most rejections.
EDI Standards: X12, EDIFACT and HIPAA
An EDI standard is the shared rulebook both partners agree to before a document moves. It fixes the segments, the fields, and the codes.
Pick the wrong rulebook and nothing parses. So this gets decided early, usually by whoever sent the mandate.
ANSI X12
North American businesses mostly run on ANSI X12. Every field has a defined position and a rule attached. That’s strict on purpose.
The committee behind it has published since 1979, as the background on ASC X12 explains.
EDIFACT
International trade usually runs on EDIFACT, the United Nations rulebook. European partners tend to prefer it.
Grocery and retail lean on the subsets that GS1 maintains. Same idea as X12, different rulebook.
HIPAA and Healthcare EDI
In United States healthcare, HIPAA makes specific EDI formats mandatory rather than optional. Covered entities don’t get to invent their own.
The 837 carries a claim from a provider to a payer. An 835 comes back, showing what got paid and what didn’t.
The 270 asks whether a patient is eligible. Its partner, the 271, answers. CMS lists the adopted formats on its administrative simplification page.
Because the formats are mandated, healthcare EDI is less negotiable than retail. Which is a relief.
Real-World EDI Examples
EDI gets easier to picture with real flows. Here are five I’ve watched run.
Retail replenishment. A retailer sends an 850. The supplier answers with an 856 before the truck leaves, then bills with an 810.
Healthcare claims. A clinic files an 837 to the payer. Weeks later an 835 explains what was paid and what was denied.
Just-in-time manufacturing. An automaker sends release schedules daily. Parts reach the line hours before anyone needs them, with no order per delivery.
Grocery receiving. A distributor matches the ASN against pallet labels at the dock. Receiving scans instead of counting, so a truck clears in minutes.
Marketplace drop-shipping. A seller gets the order as an EDI document and sends the tracking number back the same way. That’s Inter-Enterprise Data Sharing at its most ordinary.
EDI and APIs Are Not Enemies
EDI carries the transaction of record in standardized batches, and APIs add live context on top. They’re not rivals. They’re layers.
Most articles stage this as a fight. It isn’t one.
Modern supply chains run both. EDI handles the heavy documents: orders, invoices, ship notices. APIs handle the live questions, like where’s my truck.
I’ve built “EDI wrapper” flows that convert legacy EDI into clean JSON. A middleware layer does the converting, and an enterprise service bus routes the result onward.
That keeps the EDI investment you already made. And it stops new tools being locked out of old data.
One honest limitation. EDI is rigid by design, and it moves batches rather than live status. So APIs sit beside it, a trade-off the AWS explainer on EDI is fair about.
Managing EDI Complexity
Most EDI complexity comes from partner variation, not from the standard itself. Nobody warns you about that on day one.
VAN, Managed Service or In-House?
Pick based on volume, and on who’s awake when a file fails at 2am.
A VAN bills a monthly fee plus a usage charge that tracks volume. That keeps life simple at moderate scale. Managed services add people who watch the queues. In-house software is a licence plus the staff to run it. That pays back only at high volume.
Whichever way you go, some kind of middleware ends up between your systems and your partners.
Keep the Data Clean
Most EDI pain is really data pain. Validate documents against trusted reference data before they process.
Clean input cuts chargebacks, the fines a retailer applies when compliance slips. Those hit a small supplier’s margin directly. I’ve watched one bad month erase a quarter.
Closing the data silo between your ERP and your EDI queue removes half that risk. Both sides need the same item codes. Sounds obvious. It rarely is.
AI genuinely helps here now. Models read a partner’s spec and draft the map, which shortens onboarding. Someone still checks the output.
💡 Field note: Before you send a live document, ask your partner for their exact spec sheet and run test files through their 997. A clean test 997 today saves a chargeback tomorrow.
Common EDI Mistakes
Nearly every EDI failure I’ve seen traces back to one of six habits.
- Going live with no test 997 cycle. You find out in production.
- Mapping from an old spec sheet. The version number matters most.
- Assuming every partner reads the standard alike. They don’t, and never have.
- No alert on a failed transmission. Silence feels like success until the chargeback lands.
- Reading chargeback reports at quarter end. By then the pattern is months stale.
- Treating EDI as an IT project. With no owner in operations, nobody notices drift.
I made the second one myself. Hamburg, 2019, onboarding a grocery chain.
We built the map from the spec sheet their buyer emailed us. It was two versions old.
Our 856 ship notices carried pallet data in the segment that old document described. So their receiving system read every pallet as one carton. Three deliveries got flagged as short shipments before anyone worked out why. The chargebacks landed first.
The fix took an afternoon. Pull the current spec, remap the segment, run four test files through their 997.
Now I ask for the spec’s version and date before I write a line of mapping. An enterprise service bus wouldn’t have saved us. Reading the version number would.
🧠 Field note: Read the chargeback report monthly, not at quarter end. A monthly read shows the pattern while it's still one partner and one segment. A quarterly read shows a bill.
Best Practices for EDI Onboarding
Onboarding goes smoothly when you do six things, in this order.
- Get the partner’s exact spec sheet first, with its version and date.
- Run test files through their 997 until one comes back clean.
- Keep a cheat sheet of every error code and its fix.
- Name one owner in operations, not just IT.
- Validate master data (addresses, item codes, GLNs) before the map sees it.
- Re-test after any ERP upgrade, because upgrades quietly move fields.
None of that is clever. It’s just ordered. And order is exactly what data integration work rewards.
How Do You Measure EDI?
Measure EDI with first-pass acceptance on the 997, chargeback volume, and days to onboard a partner. Those three tell you nearly everything.
- First-pass acceptance rate: documents accepted on the first 997, no rework.
- Chargeback count and value: per period and per partner, read monthly.
- Partner onboarding time: days from spec sheet to first clean document.
- Human-touch rate: documents somebody had to open and fix.
- Order-to-acknowledgement time: how fast the 997 comes back.
- ASN accuracy: what the 856 promised, against what showed up.
Track those last two together. When acknowledgements slow and ASN accuracy slips, a partner has usually changed something without telling you. An iPaaS dashboard makes that visible in a morning.
Related Terms in Integration Technologies
EDI sits inside a family of ideas. Middleware is the category it belongs to, and an enterprise service bus carries it.
iPaaS is the managed cloud version of that same job. Inter-enterprise data sharing is the wider goal, and data quality decides whether any of it works.
Integration Technologies Terms
- What is iPaaS?
- What is Middleware?
- What is ESB?
- What is Electronic Data Interchange?
- What is Data Fabric Architecture?
- What Is a Data Fabric?
- What are Data Integration Frameworks?
References
- EDI Basics: Benefits of EDI
- Wikipedia: Electronic data interchange
- IBM: EDI explained
- AWS: Electronic data interchange
- X12 standards body
- Wikipedia: ASC X12
- Wikipedia: EDIFACT
- GS1: EDI standards
- CMS: Administrative Simplification transactions
Frequently Asked Questions
What is an EDI example?
A common example is an EDI 850 purchase order sent from a retailer’s system into a supplier’s. Nobody retypes it. Their software reads the details and fulfillment starts.
What is the main purpose of EDI?
The main purpose of EDI is to automate document exchange so nobody keys the same data twice. It cuts cost, removes typing errors, and shortens the order cycle.
What are the three main types of EDI?
Direct point-to-point EDI, EDI through a VAN, and WebEDI. The direct route suits high volume with IT support. A VAN simplifies moderate volume for a monthly fee plus usage. WebEDI is a browser form on a low subscription.
What is the difference between EDI and an API?
EDI moves standardized documents in batches, while an API exchanges data live, on request. Think of EDI as the transaction of record. APIs add real-time context. Most supply chains run both.
Do small businesses really need EDI?
If a large buyer mandates it, yes, but you don’t have to build it in-house. WebEDI meets the mandate on a low monthly subscription, formatting proper EDI from a browser form.
What is EDI in simple terms?
EDI is two companies’ computers sending business paperwork in one agreed format. Orders, invoices and ship notices travel as structured files, not paper.
What does the term EDI mean?
EDI stands for electronic data interchange, the standardized exchange of business documents between companies. In HR the same three letters can mean equity, diversity and inclusion. This page covers the data standard.
What are the 4 major components of EDI?
Translation software, the partner-specific map, the communication method, and the trading partner agreement. The software converts formats and the map places every field. The connection (AS2, SFTP or a VAN) moves the file, and the agreement records the rules.
What is EDI used for in healthcare?
Healthcare uses EDI for claims, payments, and eligibility checks. The 837 sends a claim, the 835 returns the remittance advice, and the 270/271 pair handles eligibility. HIPAA makes those formats mandatory.
It’s Time to Stop Fearing EDI
Look, that first mandate letter felt like a threat to me. Now it just feels like a Tuesday.
Read your partner’s exact spec. Pick WebEDI, a VAN, or in-house based on your real volume. Then keep your data clean so files pass first time.
You got this. And once that first 997 comes back clean, you’ll wonder what you were so scared of.