Your data stays yours
Chart Room›Data & systems›EDI and APIs
Chart RoomData & systems

EDI and APIs: how business systems send each other orders, ship notices and invoices

Most purchase orders between large companies are never seen by a person. They travel as EDI messages or API calls from one system to another. When the messages flow, nobody notices. When they stop, nobody notices either, at first.

OpEx 3Ws6 min readUpdated 19 Nov 2026Facts checked Nov 2026

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 numberNameWhat it saysUsually sent by
850Purchase OrderWhat, how many, what price, whenBuyer
855Purchase Order AcknowledgmentAccepted, changed or rejectedSupplier
856Ship Notice/Manifest (ASN)What is on the truck, by cartonSupplier
810InvoiceWhat is owed for what shippedSupplier
820Payment Order/Remittance AdviceWhat is being paid, and deductionsBuyer
997Functional AcknowledgmentYour message arrived and could be readReceiver
204 / 214 / 210Load tender / status / freight invoiceTransport booking, events and billingShipper / carrier

EDIFACT uses its own message names and its own acknowledgement message.

One order's messages, in daysA typical retail order on 30-day termsgoods flowpayment terms0510152025303540days850 order855 accepted856 ship noticeGoods received810 invoice820 remittanceEach message should earn a 997 back. A missing one is the earliest sign of a break.
A conversation in numbers. Each step of the order is a message, and each message can quietly fail.

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.

EDIAPIVSstandard documents, in batchesagreed once with each partnerrequests answered in real timeeach provider's own formatMost firms run both, side by side.
Two pipes, one need. EDI suits steady document flows between large partners; APIs suit live questions like tracking.

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

Sent counted as receivedA message leaving the system proves nothing. Without a check that every outbound document gets its acknowledgement, a break looks like a quiet week.
Mapped once, never reviewedPartners update their specifications and required fields. A map that was right at onboarding can start dropping data without an error.
APIs without retriesAn API call that times out may simply be lost. Without retries and an error queue, a status update or order can vanish between two systems.

Questions to ask before you act

  1. Which partners and document types are on EDI, which on APIs, and which still on email?
  2. Is every outbound message checked for an acknowledgement, and who is alerted when one is missing?
  3. When did each partner last change its specification, and was the map retested?
  4. 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.