This guide is for the operations, IT or e-commerce lead of a supplier, wholesaler or manufacturer that sells to retailers and buys from its own suppliers, and who now has to decide how each trading partner's orders arrive. It sits under the enterprise systems integration guide, which covers record ownership and failure design for every flow, and it is the order-channel view of the systems and API integration service.
In this guide
- Why is EDI still the default with large retailers?
- What does an API do that EDI does not?
- Where does an emailed or PDF order fit?
- EDI, API or AI-read documents: the decision matrix
- How to roll out a mixed EDI and API order flow
- Where AI fits
- What delivery record exists, and what does not?
- Alternatives: build, buy an EDI service, or use a platform
- When should you not build EDI or add AI?
- What are the limits of this guide?
- Frequently asked questions
- Next step
Why is EDI still the default with large retailers?
EDI (electronic data interchange) is a contract about documents. A large retailer publishes an implementation guide, names the documents it sends and expects back, and onboards each supplier against it. In North America those documents are the ASC X12 transaction sets: the 850 purchase order in, then the 855 acknowledgement, the 856 ship notice and the 810 invoice out, each answered by a 997 functional acknowledgement. Elsewhere the same exchange often runs on UN/EDIFACT messages.
The documents travel over agreed transports such as AS2, defined in RFC 4130, SFTP or a value-added network. The retailer gets uniformity: every supplier sends the same document in the same structure.
When a buyer mandates EDI, the decision is already made for that partner. An API offer does not replace the mandate; the only question left is whether to build the EDI mapping in-house, buy it as a managed service, or use the EDI module of an existing platform.
What does an API do that EDI does not?
An API answers a question at the moment it is asked. A partner's system can check stock before ordering, get a price for a specific account, create an order and receive the order number in the same call, then follow status changes through webhooks. A contract written in the OpenAPI Specification lets both sides test against the same definition before going live.
EDI moves documents in batches on an agreed schedule; even fast EDI is a document arriving, not a conversation. That makes APIs the better fit for marketplaces, B2B portals, dropship partners, logistics providers and smaller distributors whose own platforms already expose REST endpoints. The trade-off is that every API is shaped differently: each new partner means a new mapping, its own authentication and its own retry behaviour, with no shared standard telling both sides what "an order" contains.
Where does an emailed or PDF order fit?
Many B2B order books have a long tail that sends neither EDI nor API calls: a regional store chain that emails a spreadsheet, a buyer who attaches a PDF purchase order, a reorder typed into the body of a message. These orders are usually re-keyed by hand, which is where wrong quantities and duplicate entries come from.
This is the channel where AI earns its place. A document-AI step can read the email or attachment, extract the buyer, items, quantities, dates and delivery address into the same structure as an EDI or API order, and send anything it is unsure of to a person for review. It does not need to be applied to EDI or API traffic, which already arrives structured; adding a model there adds risk without removing work.
EDI, API or AI-read documents: the decision matrix
| Channel | Who sets the format | Main trade-off | Choose it when |
|---|---|---|---|
| EDI (X12 or EDIFACT) | The retailer or large buyer, through its implementation guide | Partner-specific mapping and testing for every buyer; batch timing; acknowledgements and ship notices must be exact | The partner mandates it, or order volume with that partner is high and its document set is stable |
| Direct API | Whoever publishes the API, usually the larger or more technical side | A new mapping, authentication and error model per partner; no shared document standard | Both sides need live stock, price or status, and the partner's platform already exposes an API |
| AI-read email, PDF or spreadsheet | The buyer, informally, often per person | Extraction can be wrong; needs a review queue and confidence thresholds | The partner cannot send EDI or API calls and volume is too low to justify onboarding them to either |
Read the matrix per trading partner, not per company. A typical supplier ends up with all three channels: EDI for the retailers that mandate it, APIs for marketplaces and technical partners, and AI-read documents for everyone else. The design question is not which channel wins, but how all of them land in the same order record.
How to roll out a mixed EDI and API order flow
-
List trading partners by channel and volume
For each partner write what it mandates, what it can send, how many orders it places and which documents it expects back.
-
Define one canonical order record in the ERP
Buyer, ship-to, lines, quantities, requested dates and references, with the partner's own document number kept for reconciliation. Every channel maps into this record; nothing downstream reads raw EDI or raw email.
-
Serve the mandated EDI partners first
Map the inbound purchase order and the outbound acknowledgement, ship notice and invoice per implementation guide, then test with the partner before the go-live date it sets.
-
Add APIs for partners that need live data
Stock, price and status endpoints or webhooks, with idempotency keys so a retried call never creates a second order.
-
Put AI reading on the long tail
Route emailed and PDF orders through extraction into the same record, with a review queue for low-confidence fields and for any new buyer.
-
Reconcile every channel the same way
One daily report of orders received, acknowledged, shipped and invoiced per partner, so a missing 856 or a failed webhook is found before the retailer's chargeback notice.
The pillar's chapter on designing integrations for failure covers retries, dead-letter queues and reconciliation in more depth; the steps above apply them to order channels.
Where AI fits
Netbase works with the major commercial and open-source AI tools and models, chosen per project. Each item below states how mature it is at Netbase.
What the engineers still check: every mapping rule, every acknowledgement and ship notice sent to a retailer, and every extracted order below the confidence threshold. AI reads documents; it does not send a compliance document to a retailer on its own.
- In delivered work
Product recommendation engine
Built for 4over4's online printing store from browsing and purchase history; not an order-channel tool, but the named delivered-AI proof this guide can cite.
- In delivered work
Document AI platform
Document AI delivered for a client that is not named; the same extract-then-review pattern is what reads emailed and PDF purchase orders into the canonical record.
- Available capability
AI checks on EDI and API exceptions
Explaining why an inbound order failed validation, or drafting the reply to a buyer about a short shipment, is a generative-AI pattern Netbase is growing capability in; it is not yet tied to a published order-channel case.
What delivery record exists, and what does not?
- Integration platforms. Netbase has built an operations and integration platform for a manufacturing and logistics client that is not named, as consultant, custom developer and integrator; the record does not publish which systems or partners it connects.
- Commerce and ERP platforms. Netbase has delivered on WooCommerce, Magento 2, Laravel and headless commerce, and names Odoo, Salesforce, Akeneo and Shopify among the wider stack. Its productized module library includes a CRM and B2B sales engine and a workflow automation toolkit.
- Document AI. Netbase has delivered document AI for a client that is not named, as listed above.
What does not exist. No published Netbase record describes building an EDI mapping for a named retailer, onboarding a supplier to a retailer's EDI programme, or an order-channel project with a measured result. No duration, accuracy or volume figure is claimed. The matrix and steps above are a delivery view from integration and document-AI work, cross-checked against the cited standards, not a measured outcome from one project.
Alternatives: build, buy an EDI service, or use a platform
| Route | Strength | Choose it when |
|---|---|---|
| Managed EDI service or VAN provider | Partner onboarding and mapping maintained by a specialist | Most of your EDI partners are large retailers with stable guides, and you want EDI kept out of your own code |
| EDI module of your ERP or commerce platform | Fewer moving parts if the module covers your partners' documents | Your ERP already offers EDI for the transaction sets your buyers mandate |
| Custom integration layer you own | One canonical order record across EDI, API and AI-read documents, with your own rules | Your partner mix spans all three channels and no single product maps them into one record cleanly |
In Netbase custom development the client owns the IP created for it, and most projects run on fixed-price contracts agreed after discovery, following Netbase's six-step lifecycle from discovery through support. Security follows Netbase's published practice: TLS in transit, role-based access and secure code review. Related reading: ERP, CRM and e-commerce integration architecture for the store-to-ERP flows, order-to-cash AI agents for where an agent may act after the order lands, and the web-to-print integrations guide for a print business facing the same retailer mandates.
When should you not build EDI or add AI?
Do not build EDI in-house for one retailer with a small order volume when a managed service can carry it; the mapping and testing effort repeats with every new partner. Do not replace a working EDI flow with an API because the API looks modern; the retailer's mandate still applies. Do not put AI on structured EDI or API traffic, and do not let an extraction step create orders without a review queue until its errors on your own documents are known.
What are the limits of this guide?
- The channel descriptions follow the cited X12, AS2 and OpenAPI material; each retailer's own implementation guide decides the exact documents and timing.
- No price, duration or accuracy figure is claimed for EDI, API or document-AI work.
Plan the next step with a Netbase consultant
Frequently asked questions
Usually yes, when the retailer's supplier requirements mandate it. The mandate names the documents, such as the purchase order, acknowledgement, ship notice and invoice, and an API offer does not replace it. You can still choose whether to build the mapping, buy a managed EDI service or use your ERP's module.
Not for mandated retail documents. APIs fit partners that need live stock, price or order status and already expose an API, while EDI stays the standard where a large buyer requires it. Most suppliers run both and map them into one order record.
Yes. A document-AI step can extract buyer, lines, quantities, dates and ship-to address into the same order record as EDI and API orders, and send low-confidence fields to a person. It should not be used on orders that already arrive structured.
Start with the canonical order record in the ERP, then the partners that mandate EDI, then APIs for partners that need live data, and AI reading for the long tail of emailed orders. Reconcile every channel in one daily report.
Next step
Send us your trading-partner list with what each partner mandates and sends today, and we will book a solution review to map every channel into one order record. You can also see the integration hub solution or the ERP and CRM development service.
Related services and solutions
API integration services that keep your systems in agreement and ready for AI Netbase provides API integration services for commerce and operations teams that need e-commerce, ERP, CRM, shipping and payment systems to agree, so data moves once and AI services can act on it, with retries, monitoring and reconciliation on every API and webhook. According to its published client record, Netbase has worked with 500+ businesses across 80 countries since 2012.
Learn More
AI-enabled ERP and CRM development connected to your commerce Netbase provides custom ERP and CRM development for growing companies to run sales, operations and finance in systems shaped to how they work, connected to their ecommerce channels and using AI for document capture, forecasting and sales follow-up. We build on proven modules, including Smart ERP Light and Cloodo Workspace, and work with Odoo or Salesforce where one fits.
Learn More
Enterprise integration hub ready for AI agents: one monitored layer for commerce, ERP and CRM data An enterprise integration hub is a central layer that moves orders, customers, stock and invoices between your commerce, ERP and CRM systems, with monitoring, retries and replay in one place, and scoped APIs that AI agents can call safely. Netbase builds it as a custom layer on the stack you already run, starting from the flows that break most often.
Learn More
Work with Netbase remotely
Every Netbase engagement is delivered remotely, so clients in any country and any industry can work with us; Netbase has worked with clients in 80 countries. Contracts and invoices are issued by Netbase JSC, and payment is made by bank transfer to Netbase JSC's company account or PayPal Business. Talk to the CEO, Huy Nguyen (David), on WhatsApp or by email.
Discuss a project
Netbase JSC helps organizations design, build, modernize, and operate digital products and AI-enabled business systems.project@netbasejsc.com
+84 937 869 689
91 Nguyen Chi Thanh, Dong Da, Hanoi, Vietnam
Get in touch
Tell us what you want to build, modernize, or operate.