An API (application programming interface) is a set of rules that lets one system request data from another, or send it, directly. Shopify, Amazon Seller Central and TikTok Shop all deliver orders this way. EDI (electronic data interchange) is an older standard for exchanging business documents between companies. Each document has a number in the X12 standard: the 850 purchase order, the 856 advance ship notice, the 810 invoice. In EDI, every company you exchange documents with is a trading partner.
What’s the difference between EDI and API?
Both move the same business data between companies. They differ in format, transport and who sets the rules.
| EDI | API | |
|---|---|---|
| What moves | Documents: purchase orders (850), ship notices (856), invoices (810) | Requests and responses: get new orders, post tracking, update inventory |
| Format | X12 in North America, EDIFACT internationally | Usually JSON |
| How it travels | AS2, SFTP or a VAN | HTTPS, straight to the platform |
| Timing | Usually in batches | On demand, close to real time |
| Who sets the rules | The X12 standard, plus each retailer’s EDI guide | The platform’s API documentation |
| Before go-live | Testing and certification with each retailer | App setup and authorization with each platform |
| Who uses it | Big-box retailers, distributors and their suppliers | Ecommerce platforms, marketplaces and carriers |
EDI usually takes longer to set up per partner, because every retailer adds its own rules and testing on top of the standard.
Which retailers and platforms use EDI, and which use APIs?
The retailer or platform chooses, and most publish which one they accept.
- API: ecommerce platforms and marketplaces, such as Shopify, Amazon Seller Central and TikTok Shop.
- EDI: retailers that buy from you wholesale. You ship to their warehouses or stores and send an 856 and an 810 for each purchase order.
- Both: some retailers offer an API next to EDI. Amazon Vendor Central suppliers can receive purchase orders and send acknowledgments through Amazon’s Vendor Orders API instead of EDI. Walmart lets drop-ship vendors use EDI or its DSV Order Management API.
Many brands reach their retailers through an EDI platform like SPS Commerce or TrueCommerce, which handles the connection to each retailer and its rules.
When does EDI fit, and when does an API?
When a partner gives you the choice, pick by what your systems already handle and who will maintain the connection.
- EDI fits when the partner requires it, when you already run an EDI platform for other retailers, or when your ERP is set up to send and receive EDI documents.
- An API fits when the partner offers one, when you need order and inventory updates close to real time, and when someone will maintain the connection as the API changes versions.
- Both fit for most brands that sell direct and to retailers, and for 3PLs whose clients do. Your Shopify orders arrive by API and your retail orders by EDI, and both have to reach the same warehouse.
For a small business selling to its first retailer, the usual path is an EDI platform for the retail side, connected to the systems that already handle your ecommerce orders.
Is EDI being replaced by APIs?
Not soon. Retailers are adding APIs alongside EDI and still require it. Walmart still publishes EDI specifications for its drop-ship vendors alongside its supplier APIs, and Amazon accepts EDI and its Vendor APIs side by side. Plan for both.
How do you run EDI and APIs in one order flow?
Map both into the same order format before they reach your warehouse, so your WMS or 3PL never has to care where an order came from.
That’s the job DropStream does. It connects your EDI platform, such as SPS Commerce, TrueCommerce or CommerceHub, and the channels you connect by API, such as Shopify, Amazon and TikTok Shop, to your ERP, WMS and 3PL. Orders from both arrive in the format your systems expect, the same routing rules apply to each, and tracking, ship notices and invoices flow back the way each partner requires. Some programs, like Walmart’s drop-ship program and Wayfair Castlegate, use EDI and an API together. DropStream handles both in one connector, so your team doesn’t maintain two separate integrations. For 3PLs, each new client brings its own mix of EDI retailers and API channels, and all of them land in the same WMS.
DropStream maintains each connection, updating it when a platform changes its API, and its team leads retailer testing during setup.
What should you ask before you connect a new retailer or marketplace?
- Does the partner require EDI, offer an API, or both?
- Which documents or data does it need from you: order acknowledgments, ship notices, invoices, inventory?
- Who maps the connection to the partner’s spec, and who runs its testing?
- Who watches for rejected documents or failed API calls, and how fast do you hear?
- Who updates the connection when the partner changes its rules or API version?
- Will orders from this partner land in your WMS or 3PL the same way as every other channel’s?