EDI vs API: how to exchange orders and invoices with trading partners
By Sina Esfahani, OmniTechs · Published 30 November 2026
EDI (electronic data interchange) means your system and your trading partner's system exchange business documents as standardised messages: orders, order responses, despatch advices and invoices, with no PDF or email in between. An API is an interface that one company designs for its own system, which others can call directly.
Which one you need is usually decided by your partner, not by you. If a retailer, wholesaler or distribution centre prescribes EDI, you follow their message standard, version and transport. If a platform or carrier offers a documented API, you connect to that. For invoices to Dutch central government, the route is an e-invoice, often over the Peppol network.
Your first action: ask the partner for their EDI implementation guide or supplier manual, which names the messages, standard, version, transport and test procedure. Then ask your ERP or accounting software supplier whether it supports those exact messages; GS1 Netherlands notes that EDI is often already built into existing software.
Decide in this order:
Does the partner prescribe EDI, Peppol or its own API? Their answer settles the route.
Which messages: order only, or also order response, despatch advice and invoice?
Which standard and version: for example EANCOM 2002 syntax 4, GS1 XML, X12 or Peppol BIS.
Which transport: a VAN, AS2, a Peppol access point or an API.
Which identifiers: GLNs for your locations, GTINs for your products.
Who translates: a module in your own software, or an EDI service provider.
Test with the partner, message by message, before the first live order.
EDI, Peppol or an API: which route fits?
Choosing a route by situation
| Your situation | Route | Why |
|---|---|---|
| A retail chain or wholesaler requires EDI from suppliers | EDI in their standard, often through a service provider | You cannot choose the format; their guide is the contract |
| You invoice Dutch central government | E-invoice via Peppol, your software or the supplier portal | Central government requires an e-invoice; a PDF does not count |
| A marketplace, carrier or platform offers a documented API | API integration | Real-time and flexible, but each API is different |
| Few orders, one partner, no requirement | Controlled file exchange or a portal | At low volume, setup often costs more than it saves |
| Several partners each demand their own format | EDI service provider that converts for you | One connection on your side, many formats on theirs |
Many companies use both. IBM's EDI guide places EDI at high volumes exchanged in scheduled batches, and APIs where flexibility and real-time exchange count: EDI with the retailers, an API with the carrier.
What an EDI integration consists of
An EDI integration has three parts, and a problem usually sits in one of them.
The message standard. It fixes which fields an order or invoice contains and how they are coded.
The transport. It is how a message gets from you to the partner: a value-added network (VAN), AS2, Peppol or an API.
The mapping. It translates the fields in your ERP into the standard and back: your article number to the partner's GTIN, your customer to a GLN, your unit "box" to the partner's unit.
The mapping is built per partner. Two retailers can both use EANCOM ORDERS and still require different fields and codes, so the partner's implementation guide matters more than the name of the standard.
The standards you will meet
EDI and e-invoicing standards
| Standard | Who maintains it | Format | Where you meet it |
|---|---|---|---|
| UN/EDIFACT | United Nations | Segments of coded text | The international base standard; EANCOM is built on it |
| GS1 EANCOM | GS1 | A subset of UN/EDIFACT | Retail, manufacturing, automotive and healthcare |
| GS1 XML | GS1 | XML | The same order-to-cash processes, in XML |
| X12 | X12, accredited by the American National Standards Institute | Numbered transaction sets | Partners that work in X12: 850 order, 810 invoice |
| Peppol BIS | OpenPeppol | XML (UBL) | E-invoices and e-orders over the Peppol network |
EANCOM keeps only the UN/EDIFACT elements that business applications need. GS1 XML covers the same processes in XML, which GS1 calls better adapted to internet-based technology; both are used in parallel. According to GS1, in 2020 almost 126,000 companies used EANCOM and almost 47,000 used GS1 XML, and order, invoice and despatch advice were the most used messages.
Peppol BIS Billing 3.0 (May 2026 release) takes its element names from the European invoice standard EN 16931. Peppol BIS also has profiles for orders, order agreements and despatch advices.
Transport: VAN, AS2, Peppol or API
How a message reaches the partner
| Route | How it works | Proof of delivery | Fits when |
|---|---|---|---|
| VAN | A third-party network carries the message; a mailbox holds it until the partner collects it | Depends on the provider; ask for a delivery status per message | Many partners, and you do not want to run your own connection |
| AS2 | A direct connection over HTTP between two parties, with signing and encryption | A receipt (MDN) per message, signed if you agree on it | A large partner asks for it and you can manage certificates |
| Peppol | You connect once through a certified service provider; it routes to the recipient's provider | Depends on your provider; Peppol BIS has message and invoice response profiles | E-invoices and e-orders, especially to government |
| API | You call the partner's own interface, often in JSON | The API's response per call | The partner offers a documented API and you need real time |
A VAN often also converts and validates documents (IBM). AS2 (RFC 4130) carries EDIFACT, X12 or XML; its signed receipt lets the sender prove that the partner received exactly that message.
Peppol uses a four-corner model: you send through your service provider, which passes the message to the recipient's provider, which delivers it. OpenPeppol's summary: "connect ONCE, reach ALL".
How an API exchange itself works, with polling, webhooks and export as alternatives, is explained in what an API integration is. Endpoints, methods and status codes are covered in what a REST API is.
When does a trading partner require EDI?
You usually find out from a retail chain's or wholesaler's supplier agreement or manual, from the buyer's purchasing or EDI team, or from a public-sector contract. Dutch central government requires e-invoices from its suppliers and can send orders as e-orders over Peppol (Ondernemersplein, RVO).
Ask the partner these questions in writing:
Which messages are mandatory, and from what date?
Which standard, version and implementation guide apply, and which identifiers (GLN, GTIN, SSCC on pallet labels)?
Which transports do you accept: a VAN, AS2, Peppol or a portal?
What is the test procedure, who is my contact, and how will I see a rejected message?
A supplier portal where you type orders in by hand is fine at low volume, but it saves you no typing.
Peppol and e-invoicing in the Netherlands
Dutch central government requires an e-invoice from suppliers; local authorities sometimes do too. You send it from accounting software with e-invoicing, through a Peppol service provider, through an invoicing portal, or for occasional invoices through the central government's supplier portal (Ondernemersplein, read 30 November 2026). A PDF is not an e-invoice.
The Dutch Peppol Authority lists Peppol BIS Billing 3.0 and SI-UBL 2.0 as the document specifications that must be supported, with the Peppol AS4 profile for transport. A Dutch company is reachable through a Peppol ID based on its KVK (Chamber of Commerce) number (scheme 0106) or VAT number (9944). Government bodies use their OIN (0190).
What changes for invoices between businesses, in the UK from 2029 and in the EU and the Netherlands from 2030, is set out in the invoice example. Ask your software supplier now whether it can send and receive via Peppol.
Onboarding: from first request to live messages
Get identifiers. Give each of your locations a GLN; GS1 Netherlands puts this first. In EANCOM messages, products are identified by their GTIN.
Choose the processes. Agree with the partner which ones to digitise. Start with the messages they require, usually the order, and add the invoice next.
Get the standard and guide. GS1 Netherlands sells a basic EDI package through MyGS1, which gives the right to use the standards and access to the manuals. Collect the partner's implementation guide as well.
Choose the translator. Use your software's EDI module if it supports the messages and version. Otherwise use an EDI service provider.
Build the mapping. Write down per field where it comes from in your system: article codes, units, prices, delivery address, VAT.
Test in four layers (IBM): connectivity with a simple test message; validation against the standard and guide; a single test transaction; and the full flow, including your ERP and the acknowledgements.
Go live and monitor. Agree who looks at rejected messages each day and how quickly they are fixed.
You are live when the partner confirms in writing that test orders and invoices passed, and your first real order arrives in your system without anyone retyping it.
Common mistakes
Units do not match. You sell per carton, the partner orders per piece. Agree the unit per GTIN before the first test.
Article codes are missing. Every product needs a GTIN that matches the one the partner has in its system.
Duplicates. Send the same order twice in testing and check that your system recognises the second one.
Nobody watches rejections. A rejected invoice that nobody sees is an unpaid invoice.
Worked example: one order from order to invoice (hypothetical)
A supplier of plant pots delivers to a DIY chain using EANCOM. The chain orders 40 cartons at €12.50 per carton, excluding VAT, for its distribution centre.
The message flow, step by step
| Step | EANCOM | X12 equivalent | Content in this example |
|---|---|---|---|
| 1. Order | ORDERS | 850 Purchase Order | 40 cartons, GTIN of the pot, GLN of the distribution centre, delivery date |
| 2. Order response | ORDRSP | 855 Purchase Order Acknowledgment | 36 confirmed, 4 not available |
| 3. Despatch advice | DESADV | 856 Ship Notice/Manifest | Pallet 1: 20 cartons, pallet 2: 16 cartons, each with its own SSCC |
| 4. Receiving advice | RECADV | 861 Receiving Advice/Acceptance Certificate | 35 accepted, 1 carton damaged |
| 5. Invoice | INVOIC | 810 Invoice | The quantity the chain's guide requires, with VAT |
After each message the receiver can return a technical acknowledgement. In EANCOM, CONTRL reports syntax errors and APERAK reports errors found by the receiving application.
Check the arithmetic: 20 + 16 = 36 cartons despatched, which matches the order response. The invoice depends on the partner's rule.
Invoice on despatched quantity: 36 × €12.50 = €450.00. VAT at the Dutch standard rate of 21%: €94.50. Total €544.50.
Invoice on received quantity: 35 × €12.50 = €437.50. VAT: €91.875, rounded to €91.88. Total €529.38.
The difference is €15.12. Invoice 36 while the chain matches invoices against its receiving advice, and the invoice can be held until you send a credit note for one carton. So find one rule in the guide first: which message does the partner match the invoice against? Build your invoice mapping on that.
What drives the cost
No public price list covers EDI as a whole. The total comes from these parts.
Cost drivers of an EDI integration
| Part | How it is usually charged | What makes it more expensive |
|---|---|---|
| Standard and identifiers | Annual GS1 fees | Higher turnover band |
| Translator or service provider | Subscription, often plus a fee per message or per partner | More partners, messages and formats |
| Mapping per partner | One-off work | Partner-specific fields, units and codes |
| Testing and certification | One-off, per partner | Strict test procedures, retests after errors |
| Operation | Your own time, plus support | Rejected messages, new versions from partners |
To compare quotes, count your messages. In this hypothetical case, a supplier gets 120 orders a month from one chain and exchanges five messages per order: 120 × 5 = 600 messages a month, or 7,200 a year. Multiply by the provider's per-message price, and add the subscription and the one-off mapping per partner. Replace 120 and five with your own order count and the messages in the partner's guide.
When to stop, and where to go next
Stop and get an EDI specialist or service provider when several partners each require a different standard or transport. The same applies when the partner's test procedure keeps failing on the same message, or when your software cannot produce a field the guide requires. Bring the partner's implementation guide, a test message, the partner's error reports and a list of your systems.
For how orders flow between logistics systems, read choosing logistics software. If messages from several sources must reach several systems, see what middleware is.
Does your partner or EDI provider offer a documented API, and must it reach your own system? OmniTechs builds integrations between existing systems when a standard connector falls short. On the API integration page you send the names of both systems and the data that must move; the first assessment is free.

