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:

  1. Does the partner prescribe EDI, Peppol or its own API? Their answer settles the route.

  2. Which messages: order only, or also order response, despatch advice and invoice?

  3. Which standard and version: for example EANCOM 2002 syntax 4, GS1 XML, X12 or Peppol BIS.

  4. Which transport: a VAN, AS2, a Peppol access point or an API.

  5. Which identifiers: GLNs for your locations, GTINs for your products.

  6. Who translates: a module in your own software, or an EDI service provider.

  7. 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

Editorial decision table based on GS1 Netherlands, Ondernemersplein, peppol.nl and IBM's EDI guide, read 30 November 2026.
Your situationRouteWhy
A retail chain or wholesaler requires EDI from suppliersEDI in their standard, often through a service providerYou cannot choose the format; their guide is the contract
You invoice Dutch central governmentE-invoice via Peppol, your software or the supplier portalCentral government requires an e-invoice; a PDF does not count
A marketplace, carrier or platform offers a documented APIAPI integrationReal-time and flexible, but each API is different
Few orders, one partner, no requirementControlled file exchange or a portalAt low volume, setup often costs more than it saves
Several partners each demand their own formatEDI service provider that converts for youOne 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

From GS1's EDI and EANCOM pages, X12.org and docs.peppol.eu, read 30 November 2026.
StandardWho maintains itFormatWhere you meet it
UN/EDIFACTUnited NationsSegments of coded textThe international base standard; EANCOM is built on it
GS1 EANCOMGS1A subset of UN/EDIFACTRetail, manufacturing, automotive and healthcare
GS1 XMLGS1XMLThe same order-to-cash processes, in XML
X12X12, accredited by the American National Standards InstituteNumbered transaction setsPartners that work in X12: 850 order, 810 invoice
Peppol BISOpenPeppolXML (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

VAN after IBM's EDI guide; AS2 after RFC 4130 (2005); Peppol after OpenPeppol's interoperability framework; read 30 November 2026.
RouteHow it worksProof of deliveryFits when
VANA third-party network carries the message; a mailbox holds it until the partner collects itDepends on the provider; ask for a delivery status per messageMany partners, and you do not want to run your own connection
AS2A direct connection over HTTP between two parties, with signing and encryptionA receipt (MDN) per message, signed if you agree on itA large partner asks for it and you can manage certificates
PeppolYou connect once through a certified service provider; it routes to the recipient's providerDepends on your provider; Peppol BIS has message and invoice response profilesE-invoices and e-orders, especially to government
APIYou call the partner's own interface, often in JSONThe API's response per callThe 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:

  1. Which messages are mandatory, and from what date?

  2. Which standard, version and implementation guide apply, and which identifiers (GLN, GTIN, SSCC on pallet labels)?

  3. Which transports do you accept: a VAN, AS2, Peppol or a portal?

  4. 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

  1. Get identifiers. Give each of your locations a GLN; GS1 Netherlands puts this first. In EANCOM messages, products are identified by their GTIN.

  2. 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.

  3. 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.

  4. Choose the translator. Use your software's EDI module if it supports the messages and version. Otherwise use an EDI service provider.

  5. Build the mapping. Write down per field where it comes from in your system: article codes, units, prices, delivery address, VAT.

  6. 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.

  7. 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

Hypothetical example. Message purposes from EANCOM 2002 S4 (GS1, edition 2016) and the GS1 Germany DESADV guide; X12 names from X12.org; read 30 November 2026.
StepEANCOMX12 equivalentContent in this example
1. OrderORDERS850 Purchase Order40 cartons, GTIN of the pot, GLN of the distribution centre, delivery date
2. Order responseORDRSP855 Purchase Order Acknowledgment36 confirmed, 4 not available
3. Despatch adviceDESADV856 Ship Notice/ManifestPallet 1: 20 cartons, pallet 2: 16 cartons, each with its own SSCC
4. Receiving adviceRECADV861 Receiving Advice/Acceptance Certificate35 accepted, 1 carton damaged
5. InvoiceINVOIC810 InvoiceThe 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

Editorial summary. GS1 Netherlands from 1 December 2026, excluding VAT: no EDI amount up to €5 million annual turnover, €217 a year for €5 to €11 million, €4,362 above €1 billion, plus the GS1 Contribution of €29 to €3,394 a year for every participant. Read 30 November 2026.
PartHow it is usually chargedWhat makes it more expensive
Standard and identifiersAnnual GS1 feesHigher turnover band
Translator or service providerSubscription, often plus a fee per message or per partnerMore partners, messages and formats
Mapping per partnerOne-off workPartner-specific fields, units and codes
Testing and certificationOne-off, per partnerStrict test procedures, retests after errors
OperationYour own time, plus supportRejected 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.