EDI, or electronic data interchange, is the computer-to-computer exchange of standard business documents such as purchase orders, invoices and shipping notices between trading partners. In supply chain management, EDI replaces paper, email and manual re-keying with structured messages that each partner’s system can process automatically.
It has been used for decades and remains common with large retailers, manufacturers and carriers, so many suppliers are asked to support it as a condition of doing business.
How EDI works
A sender’s system creates a document in an agreed format, a translator converts it to the EDI standard, and it is sent to the partner through a secure connection. The partner’s translator converts it back to the format its own system uses. Receipt is often confirmed with a functional acknowledgment.
Two families of standards are widely used: ANSI X12, common in North America, and UN/EDIFACT, used internationally. Documents are identified by transaction set numbers within the standard, for example 850 for a purchase order and 810 for an invoice in X12.
Common supply chain documents
| Document | X12 set | Purpose |
|---|---|---|
| Purchase order | 850 | Buyer orders goods from a supplier |
| Purchase order acknowledgment | 855 | Supplier confirms or changes the order |
| Advance ship notice | 856 | Supplier tells the buyer what is shipping and how it is packed |
| Invoice | 810 | Supplier requests payment |
| Inventory advice | 846 | Shares stock levels with partners |
| Shipment status | 214 | Carrier reports shipment events |
| Load tender | 204 | Shipper offers a load to a carrier |
Benefits and limits
- Fewer manual errors. Orders and invoices flow without retyping.
- Faster cycle times. Documents move in minutes, so orders can be processed and paid sooner.
- Required by many partners. Large retailers often mandate EDI and may penalize incorrect or late messages.
- Clear data rules. Standard formats leave less room for interpretation.
The drawbacks are cost and rigidity. Each partner can have its own implementation guide, so onboarding requires mapping and testing. Batch-based exchange also means data may be hours old.
EDI compared with APIs
| Aspect | EDI | API |
|---|---|---|
| Typical timing | Scheduled batches or near real time via network | Real time requests and responses |
| Format | Fixed industry standards | Flexible, often JSON over web protocols |
| Best for | Formal, repeatable documents with established partners | Live queries, status checks, modern platforms |
| Onboarding | Mapping and testing for each partner | Depends on documentation and development effort |
| Adoption | Entrenched in retail, automotive and transport | Growing, especially with newer platforms |
The two are not exclusive. Many companies keep EDI for core transactions and add APIs for visibility and tracking.
Setting up EDI with partners
- List the documents each partner requires and obtain their implementation guides.
- Decide how to connect: in-house software, a managed service or a value-added network.
- Map your system’s fields to each document and agree identifiers such as location codes and item numbers.
- Run test transactions and fix errors before going live.
- Monitor acknowledgments and set up alerts for failed or rejected messages.
- Protect the connection and credentials, and follow guidance from bodies such as the Canadian Centre for Cyber Security.
Where analytics and AI fit
EDI data is a useful record of orders, shipments and invoices. Analytics can measure supplier lead times, order accuracy and shipping notice timeliness from those messages. AI tools can help map fields or detect unusual documents, but the standards themselves and the partner rules still need human review.
Common questions
Is EDI outdated?
It is old, yet still widely used because it is reliable and required by many trading partners. It is often combined with newer technologies rather than replaced outright.
What is an advance ship notice?
It is a message sent before goods arrive, listing contents, quantities and packaging. Receivers use it to prepare dock space and check deliveries.
Do small suppliers need their own EDI software?
Not always. Many use a managed EDI service or web portal offered by a provider or by the customer.
Sources and further reading
- Canadian Centre for Cyber Security (Canadian Centre for Cyber Security)
- Council of Supply Chain Management Professionals (CSCMP)
- Association for Supply Chain Management (ASCM)