The short answer
- EDI (electronic data interchange) is the automated exchange of standard business documents, such as purchase orders, ship notices and invoices, between companies' systems.
- The main standards are ANSI X12 (dominant in North America) and UN/EDIFACT (the UN standard, dominant elsewhere). UK retail also uses TRADACOMS.
- An API (application programming interface) lets one system ask another for data or send it directly, usually in real time, in a format each provider defines.
- Both need acknowledgements and monitoring: a message that was sent is not the same as a message that was received and posted.
What is EDI?
EDI replaces paper and email documents with structured messages that a computer can read without a person. A buyer's system creates a purchase order; it is translated into a standard format, sent to the supplier, and translated again into the supplier's order system.
Two standards cover most trade. X12 is maintained by a non-profit body chartered by the American National Standards Institute (ANSI) and offers more than 320 transaction sets, each with a number. UN/EDIFACT is published by the United Nations Economic Commission for Europe (UNECE) and maintained by UN/CEFACT; its syntax rules became the ISO 9735 standard in 1987. In both, a message is built from segments (lines), each holding data elements (fields).
Messages travel over a secure internet protocol such as AS2, or through a VAN (value-added network), a service that receives, checks and routes messages between partners, usually for a fee per document.
The common EDI documents in supply chain
| X12 number | Name | What it says | Usually sent by |
|---|---|---|---|
| 850 | Purchase Order | What, how many, what price, when | Buyer |
| 855 | Purchase Order Acknowledgment | Accepted, changed or rejected | Supplier |
| 856 | Ship Notice/Manifest (ASN) | What is on the truck, by carton | Supplier |
| 810 | Invoice | What is owed for what shipped | Supplier |
| 820 | Payment Order/Remittance Advice | What is being paid, and deductions | Buyer |
| 997 | Functional Acknowledgment | Your message arrived and could be read | Receiver |
| 204 / 214 / 210 | Load tender / status / freight invoice | Transport booking, events and billing | Shipper / carrier |
EDIFACT uses its own message names and its own acknowledgement message.
EDI vs API: what is the difference?
An API is a doorway one system opens for others: send a request, get an answer. A carrier's tracking API, for example, returns the latest events for a tracking number the moment it is asked. There is no single industry document set; each provider publishes its own fields and rules.
In practice they coexist. Large retailers and manufacturers still run orders, ship notices and invoices on EDI because every partner speaks it. Parcel carriers, marketplaces and visibility platforms lean on APIs. Many companies use a translation service that turns one into the other.
A worked example
Invented numbers. A supplier sends ship notices (856) to a retailer over AS2. The security certificate on its connection expires on a Friday. Orders (850) from the retailer still arrive through a different route, so the warehouse keeps shipping, and the order screens look normal.
No 997 acknowledgements come back for the ship notices, but nobody is watching for them. For three weeks, 46 shipments reach the retailer's distribution centre with no ASN. Each one is received by hand and fined under the compliance manual; at an invented 140 per shipment, that is 6,440, plus slower receiving that pushes some goods past their delivery window. See when the messages stop and retailer chargebacks.
Common EDI and API mistakes
Questions to ask before you act
- Which partners and document types are on EDI, which on APIs, and which still on email?
- Is every outbound message checked for an acknowledgement, and who is alerted when one is missing?
- When did each partner last change its specification, and was the map retested?
- When do AS2 certificates and API keys expire, and who renews them?
Frequently asked questions
What is EDI in supply chain?
EDI is the automated exchange of standard business documents, such as purchase orders, ship notices and invoices, between the systems of trading partners, without paper or manual re-keying.
What is the difference between EDI and API?
EDI exchanges standard documents, often in batches, between agreed partners. An API lets one system request or send data directly in real time, in a format defined by the provider.
What is the difference between X12 and EDIFACT?
Both are EDI standards. X12 is the ANSI-chartered standard used mainly in North America; UN/EDIFACT is the United Nations standard used mainly elsewhere. Their message names and structures differ.
What is an EDI 856?
The X12 856 is the Ship Notice/Manifest, often called the advance ship notice (ASN). It tells the receiver what is in a shipment, often down to each carton, before it arrives.
What is a 997 in EDI?
The 997 is the X12 functional acknowledgment. The receiver sends it back to confirm a message arrived and could be read. EDIFACT has its own acknowledgement message for the same job.
Read next
Sources
Sources opened and checked Nov 2026.
The list sees it first
One Logbook entry a week, one wave at a time. Nothing you upload is ever kept.
Thanks. You are on the list.