# EDI to API: What Changes for Logistics Integrations, and When to Keep EDI

> What moving from EDI to APIs changes for logistics integration teams, when EDI is still the right channel, and how to run both for different trading partners.

- URL: https://clearfunction.com/insights/edi-to-api-logistics-integrations
- Published: December 6, 2026
- Author: Clear Function
- Category: Integration

## What changes when logistics integrations move from EDI to API?

Moving from EDI to API changes how systems exchange logistics documents, not what the documents mean. EDI sends standard X12 documents, such as a 204 load tender or a 214 shipment status, between trading partners over a connection such as AS2. An API lets a partner's system send or request one record at a time and get an answer in the same call: a validation error at once, and whether a tender was accepted when that decision is automatic. Keep EDI for partners whose systems run on it, add APIs for partners who want status as it happens or cannot support EDI, and map both to one internal data contract so nobody rekeys an order.

**EDI to API** sounds like a replacement project: retire the old document exchange, stand up modern APIs, and move on. For a logistics integration team it is rarely that simple. Moving from EDI to an API changes how your systems exchange a load tender or a shipment status: how quickly a partner hears what happened, how a failure shows up, and how a new partner gets connected. It does not change what a load tender means, and it does not oblige the partners already sending you EDI to change anything.

This guide is for the people who keep those connections running. It covers what EDI does in a logistics operation today, what an API changes, what should stay EDI, a decision table for the common situations, and how to run both channels without anyone rekeying an order.

## What EDI Does in a Logistics Operation Today

Electronic data interchange (EDI) is the exchange of standard business documents between trading partners' systems. The freight documents below are X12 transaction sets. [X12](https://x12.org/about/about-x12), chartered by the American National Standards Institute for more than 40 years, develops and maintains EDI standards for exchanges such as order placement, shipping and receiving, invoicing and payment, and lists more than 320 transaction standards.

Six of them come up throughout this guide, summarized from [X12's transaction set list](https://x12.org/products/transaction-sets):

| X12 set | Name | What it carries |
| :-- | :-- | :-- |
| 204 | Motor Carrier Load Tender | A shipper's offer of a shipment to a truckload carrier, with scheduling, equipment requirements, commodities and shipping instructions |
| 990 | Response to a Load Tender | The carrier's response to a 204 |
| 214 | Transportation Carrier Shipment Status Message | A carrier's status of a shipment: dates, times, locations, route and identifying numbers |
| 210 | Motor Carrier Freight Details and Invoice | A motor carrier's charges, as an invoice or as the details of freight charges |
| 856 | Ship Notice/Manifest | The contents of a shipment, with order, packaging and carrier information |
| 997 | Functional Acknowledgment | The results of the syntax check on the documents received |

Those documents travel over a connection agreed with each partner. One standard way is AS2, defined in [RFC 4130](https://www.rfc-editor.org/rfc/rfc4130): it moves structured business data securely over HTTP, names both X12 and the United Nations' UN/EDIFACT format among the data it carries, and returns authenticated receipts as signed Message Disposition Notifications (MDNs).

Notice what each layer confirms. The MDN confirms the message arrived. The 997 reports whether the document passed the syntax check. Only the 990 says whether the carrier took the load. An integration that watches only the first two can look healthy while tenders go unanswered.

## What Moving to an API Changes

An API is an interface one system exposes so that another can send or request data in a single call and get the answer in the response. Moving a flow from EDI to an API changes four things.

### Timing: From the Next Document to the Moment It Happens

With EDI, a partner learns what happened when the next document arrives. A shipper waiting on a 214 knows where the load was at the last status message. With an API, the shipper's system can ask for the current status whenever it needs it, or your system can call theirs the moment the status changes. That second pattern is a webhook. The [OpenAPI Specification](https://spec.openapis.org/oas/latest.html), a standard format for describing HTTP APIs, lets an API's description list the webhooks a consumer may choose to implement.

### Acknowledgment: From "It Parsed" to "It Worked"

X12 defines the 997 as reporting the results of the syntax check on the documents received, and says it does not cover their meaning. A 997 back from a carrier tells you the 204 arrived intact. Whether the carrier accepts the load comes later, in a 990, and you have to watch for it. An API call can return the business answer in its own response: accepted, rejected with a reason, or a validation error naming the field that was wrong. When a person at the carrier makes the decision, the call confirms receipt and the decision follows by webhook or a status request. Either way, a malformed tender fails at the moment of the request, where the sending system can act on it.

### Retries and Duplicates

Networks fail, so senders retry. HTTP's own standard, [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#section-9.2.2), calls a request method idempotent when sending the same request twice has the same effect as sending it once. It counts the methods that only read data, such as GET, as idempotent, along with PUT and DELETE. POST, whose uses [the same standard says](https://www.rfc-editor.org/rfc/rfc9110#section-9.3.3) include creating a new resource, is not among them. So a load tender sent twice to an API can become two loads unless the API recognizes the repeat. Decide before launch what a repeated request means and how the API spots one: an idempotency key the sender supplies, or the shipper's own load reference.

### Onboarding: From a Map per Partner to a Published Description

EDI standardizes the format, and partners still have to agree on the content: which segments a document carries, which codes mean what, which references are required. X12 says as much about its own work on its [neX12 page](https://x12.org/about/nex12): "Standardized syntax is not enough, data content must be standardized to achieve efficiencies and maximize seamless exchanges across various ecosystems."

An API changes how a new partner learns your rules. Instead of building a map for each partner, you publish one description of the API. The OpenAPI Specification states the goal: an interface description which "allows both humans and computers to discover and understand the capabilities of a service without requiring access to source code, additional documentation, or inspection of network traffic." A partner's developers build against that description while you keep working, and our guide to [contract-first API design](https://clearfunction.com/insights/contract-first-api-design) covers how to write it before the code. The trade-off is that partners adapt to your API instead of you adapting to each of theirs, which suits partners with developers and not partners without them.

## What Should Stay EDI

An API is not an upgrade for every flow. Keep EDI where:

- **The partner's systems run on it and it has asked for nothing else.** A shipper that sends 204s and reads your 214s already has a working integration on its side. Asking it to move is asking it to fund your project.
- **The process runs on a cycle anyway.** If a document feeds something that happens once a day or once a billing period, as a 210 freight invoice might, a document that arrives in a second instead of overnight changes nothing.
- **The partner requires it.** If a customer's terms specify EDI, the question is how well you run it, not whether to replace it.
- **Nobody on the other side writes software.** An API needs developers on the partner's side to call it. A partner without them is better served by the EDI it has, or by a portal.

## EDI, API or Both: A Decision Table

| Situation | What to do | Why |
| :-- | :-- | :-- |
| A shipper tenders loads as 204s and has asked for nothing else | Keep EDI | It works on both sides, and a second channel adds work for both |
| A customer wants status as it changes, not at the next 214 | Add an API or a webhook beside the 214 | Timing is the request, and the 214 can stay for partners that use it |
| A small shipper or broker emails orders because it cannot support EDI | Offer an API, or a portal if it has no developers | Either one ends the rekeying, and EDI would be a project for them |
| Freight invoices are paid on a billing cycle | Keep the 210 | Batch timing matches the process |
| You need to know a tender was accepted, not just received | Track the 990, or report acceptance through the API, in its response or by webhook | A 997 confirms the syntax, not the acceptance |
| Every new partner takes its own mapping project to connect | Publish an API for new partners, and keep EDI for partners already live | One published description replaces a map per partner |

## How to Run EDI and APIs Side by Side

If you add APIs and keep EDI, the design question is how to run both without two versions of the truth.

1. **One internal data contract.** Define the load, shipment, order and status once: what each field means, its valid values and its units. The EDI translation and the API both map to that contract, and neither maps to the other. Our post on [why a WMS and an ERP still don't talk to each other](https://clearfunction.com/insights/why-your-wms-and-erp-dont-talk-to-each-other) makes the same case for internal systems: the contract, not the connector, is the integration.
2. **Translate at the edge.** Partner-specific rules, such as a code one shipper uses or a reference one carrier requires, live in that partner's map or API settings, not in your TMS or WMS.
3. **Keep the partner's references.** Store the shipper's load number, purchase order or bill of lading number on every record, so a status from either channel finds the same load and a repeated request is recognized as a repeat.
4. **Watch every partner the same way.** Per partner and per channel, track what arrived, what was acknowledged, what was answered and what failed. A 204 with a 997 and no 990 after the agreed time is a failure, even though nothing raised an error.
5. **Move one partner at a time.** Start with a partner who asked for the API, run it beside that partner's EDI until both agree, and then decide whether the EDI flow retires. There should never be a day when a partner's loads move on neither channel.

## What to Inventory Before You Start

- **Partners and connections.** Every trading partner, and how each one connects today: AS2, a network provider, SFTP or email.
- **Documents by partner and direction.** Which transaction sets each partner sends and receives, and which documents still arrive as email or PDF.
- **Partner-specific rules.** What each map does differently from the standard, and who knows why.
- **Acknowledgments.** Which 997s you send and expect, and whether anyone tracks the 990s.
- **Failures today.** What happens when a document fails, and how long it takes before someone notices.
- **The actual request.** Which customers asked for an API, and what they want from it: status, documents, rates or tendering.

## Frequently Asked Questions

### Is EDI being replaced by APIs in logistics?

Not wholesale. [X12](https://x12.org/about/about-x12), which maintains the EDI standards behind documents such as the 204 and the 214, says billions of transactions based on its standards are used daily, and a partner whose systems run on EDI has little reason to change. The practical path is to add APIs beside EDI for partners who want status as it happens or cannot support EDI, and map both channels to one internal data contract.

### What is the difference between EDI and an API?

EDI is the exchange of standard business documents, such as an X12 204 load tender or a 214 shipment status, between trading partners' systems over connections such as AS2. An API is an interface one system exposes so that another can send or request data one call at a time and get the answer in the response. EDI moves documents in a shared standard format; an API answers requests in a format its own description defines.

### Does a 997 mean the carrier accepted the load tender?

No. X12 defines the 997 Functional Acknowledgment as reporting the results of the syntax check on the documents received, and says it does not cover their meaning. A 997 tells you the 204 arrived and parsed. The carrier's answer to the tender is the 990, the Response to a Load Tender. Track both, and treat a 204 with a 997 and no 990 within the agreed time as a failure.

### Can we keep EDI with some partners and offer APIs to others?

Yes. Map both channels to one internal data contract for loads, shipments, orders and status, keep each partner's specific rules at the edge, and store each partner's own reference numbers so that either channel finds the same record. Then move one partner at a time, running the new API beside that partner's EDI until both agree, before you retire anything.

## If This Sounds Familiar

If customers are asking for an API and your integrations run on EDI, the first step is not choosing a platform. It is the inventory above: which partners, which documents, and what each one actually needs from you.

Clear Function is a custom software agency with a core vertical in [logistics and supply chain](https://clearfunction.com/industries/logistics-supply-chain), where we build the integrations between TMS, WMS, ERP and carrier systems, including EDI connections and the APIs customers ask for. For where integrations sit among what to buy and what to build, read [build or buy logistics software](https://clearfunction.com/insights/build-or-buy-logistics-software). If you want to talk through your own trading partners, [start a conversation](https://clearfunction.com/get-started).
