The Logistics EDI Document Flow Explained
Adrian Duyzer
If you’re building software for carriers or freight brokers, at some point a customer will tell you that one of their shippers “needs EDI.” What they mean is that the shipper wants to send loads electronically and get responses, status updates and invoices back the same way.
The four documents involved are easy to look up. A 204 offers a load, a 990 is the response to that offer, a 214 reports the status of that load, and a 210 is the invoice for moving it.
This guide covers what those definitions leave out: who is actually on the other end, how fast you have to respond, what changes after you say yes, and what your app has to store to get it right.
This article draws on two sources. First, 20 trading-partner implementation guides from shippers, brokers, 3PLs and TMS platforms. Second, months of production traffic that we analyzed with permission. That traffic includes tens of thousands of tenders and hundreds of thousands of status updates.
Your customer
Your customer is a carrier or a broker. They move freight or arrange for it to be moved.
The party sending the load is called the shipper, but the documents often come from someone in between. That might be a 3PL running the shipper’s transportation, a larger broker, or a TMS platform the shipper uses.
A single 3PL can tender loads for dozens of shippers over a single connection. In that case the shipper often shows up only as the bill-to party inside the document. The rules governing document flow sometimes come from the shipper and sometimes from the 3PL. When a 3PL is involved, the rules are often a mix of the 3PL’s standard SOPs plus whatever extra requirements the shipper has.
This is the document flow for one load:
| Step | Document | Direction | What it means |
|---|---|---|---|
| 1 | 204 | Shipper → carrier | “Will you take this load?” |
| 2 | 997 | Carrier → shipper | “I received your document.” |
| 3 | 990 | Carrier → shipper | “Yes I’ll move it” or “no thanks.” |
| 4 | 214 (appointments) | Carrier → shipper | “Pickup is booked for Tuesday at 9, delivery for Thursday at 2.” |
| 5 | 214 (several) | Carrier → shipper | “Arrived at pickup,” “departed,” “arrived at delivery,” “delivered.” |
| 6 | 210 | Carrier → shipper | “Here is the invoice.” |
The shipper sends a 997 back for most of what the carrier sends, too. Not every partner wants the appointment step. Without it, a simple two-stop load comes to about 14 documents.
The tender is on a clock
A 204 is an offer which expires. The deadline is usually indicated inside the tender.
In 12 of the 15 guides we reviewed for the 204, the tender carries its own “must respond by” date and time (a G62 segment with qualifier 64). Read it from every tender, don’t configure one window per partner.
If a guide states a duration it is usually one or two hours. The consequences of missing it are stated plainly: the tender is cancelled automatically, or treated as declined and offered to another carrier, or you are “removed from the load.”
Two details to watch:
- The deadline’s time zone can differ from the time zone used for stop times. One partner states deadlines in Eastern time and everything else in local time. Two use UTC for the deadline.
- A deadline can already be in the past when the tender reaches you.
Somewhat surprisingly, most tenders don’t become loads. In a set of about 30,000 tenders, this is what happened:
| Conclusion | Share |
|---|---|
| Declined | 42% |
| Accepted | 32% |
| Withdrawn by the shipper before anyone answered | 15% |
| Replaced by a newer version before anyone answered | 3% |
| Never answered | 9% |
Some shippers appear to offer the same load to several carriers and cancel the rest once one accepts. A cancel that follows your decline is normal bookkeeping on the part of the shipper.
Sometimes the right answer is no 990 at all. Some partners mark tenders “auto accept” (purpose code 49): send the 997 and nothing else. We encountered one partner that treats LTL tenders as accepted on receipt.
Some details about the 990
- Decline is code
D. The X12 standard labelsD“Reservation Cancelled,” but every guide we have uses it to mean declined anyway. - An accept usually carries your own load or PRO number (
N9*CN). That number then has to match on the 214s and the 210. - Some partners require a decline reason from their own code list. In practice, most carriers just choose
CPU(“Capacity Unavailable”) and use that for every declined load. - The X12 version changes what the 990 can hold. The 4010 990 is quite different from the 5010 990. In practice, most 990 guides, regardless of the version, revolve around the
B1segment and don’t carry much more information than what’s available in that.
Changes, cancels and re-tenders
An accepted load often changes several times over its life. When these changes arrive (in another 204), the document has a purpose code that says what kind of message it is:
| Code | Meaning | Share of 204s at the broker |
|---|---|---|
00 |
Original | 73.9% |
01 |
Cancel | 21.5% |
04 |
Change | 4.7% |
05 |
Replace | 0% |
About one load in three (31%) received more than one 204. One received 55!
Build for this from the start:
- A change is a full replacement. The shipper resends the whole tender with the new details. It is not a list of differences.
- Don’t trust the purpose code to tell you whether a load is new. One partner sends
04for nearly everything, including first tenders. Another never sends04: it changes a load by cancelling it and tendering it again. Decide “new or update” by whether you already hold that load. - Don’t trust arrival order either. At the partner that changes loads with a cancel plus a new tender, the two halves arrived in the wrong order 20% of the time. Order versions by the sender’s control numbers, not by when they reached you.
- A cancelled load can come back as a new original under the same ID. If you drop duplicates by load ID alone, you will drop a real tender.
- Other identifiers can change mid-life. At two partners the tender reference is different on every 204 for the same load, and the 990 must echo the latest one.
- Whether a change needs a new 990 depends on the partner. One guide says the 997 is enough, and to phone if you can’t accept the change. The other guides don’t say. Ask during onboarding.
Status updates
The 214 is what generates real EDI volume, especially when they’re associated with GPS tracking.
Appointments come first. Before anything moves, many partners want to know when the pickup and delivery are booked. These go out as 214s too, with their own codes:
| Code | Meaning |
|---|---|
AA |
Pickup appointment |
AB |
Delivery appointment |
AG |
Estimated delivery |
- They come after acceptance. The one guide that lays out the full lifecycle puts both appointments right after the 990, and a confirmed delivery appointment again after any change to the tender.
- Where a guide states timing, it is early. One wants both at least 24 hours before the tendered pickup. Another wants a pickup appointment “as soon as it is made.”
- They sit in a different place in the document. A milestone code goes in the first element of the status segment (
AT7-01). An appointment code goes in the third (AT7-03), and the segment can hold only one of the two. The date and time are the appointment itself, not the time something happened. - Requirements vary. Two partners require both codes, and one moves carriers that can’t send them to a web portal. One doesn’t allow appointment updates by 214 at all. One wants the appointment as a window, sent as two statuses for earliest and latest.
- The tender may tell you whether to book. One partner’s stop dates say “no appointment needed,” “carrier must call,” or “already confirmed.” Others send only a date with no time, or put the delivery appointment in free text.
The core milestones are four events, each with a code:
| Code | Event |
|---|---|
X3 |
Arrived at pickup |
AF |
Departed pickup |
X1 |
Arrived at delivery |
D1 |
Delivered |
Every partner adjusts the list. Some want a departure from delivery (CD) in place of D1, and one doesn’t accept D1 at all. Some accept any standard code. A code outside a partner’s list gets rejected.
Many partners also want position updates in transit (X6). The guides ask for them every 15 minutes, every hour, or every four hours.
What the guides ask for: milestones within 15 to 60 minutes of the event. One guide says outright that send delay “is a measure of compliance.”
What happens when a person types them in:
| Source of the 214 | Median delay after the event | More than a day late |
|---|---|---|
| Tracking provider | 3 minutes | almost none |
| Typed by a person | 10.7 hours | 42% |
People catch up in bursts, sending all four milestones in the same minute after the load has delivered. They also make mistakes: 13.6% of hand-entered events carried a time later than the moment they were sent.
The lesson for your app is to drive milestone 214s from events, not from a form. A driver app, a tracking provider or an ELD feed should trigger the status. Keep the manual form for exceptions.
Order matters and partners check it. One partner’s rejection list includes “cannot update delivery before pickup,” a status for a load still in tendered state (a 214 sent before your 990 was processed), and an arrival dated before the previous stop’s departure. At least one partner wants each actual status exactly once.
Time zones are tricky. About 90% of stops in the broker’s tenders carried the time code LT, local time, which names no zone. You have to work out the zone from the stop’s location and store it.
The partners disagree here as well. Three require LT on every status. One bans it and wants an explicit zone. Others leave the field out.
More things that vary by partner:
- The stop number. Most want it echoed on each status (
L11with qualifierQN). One partner starts stops at 1, one rejects 0, one rejects 99 for the final stop. - Some partners want just the current stop, others want an array with every stop on the route inside very 214. Why this is necessary is a mystery.
- Location format. Some want city and state. Some want coordinates in degrees-minutes-seconds, and one wants decimal degrees.
- Reason codes. The default is
NS, normal status. Some partners require a real reason when a load is late, and tag each reason as the carrier’s fault or not.
Getting paid
The delivery status can be the invoice. One guide says 210s are out of scope: loads pay automatically once the load number is valid and the stops are complete. Another warns that a missing D1 “may delay payment.” In our analysis, only around 20% of delivered EDI loads were invoiced by 210. Ask each partner how they pay before you build invoicing for them.
Where a 210 is used:
- No guide states a deadline for sending it. The rules are about sequence. One partner wants every 214 in at least 24 hours before the invoice. Two allow invoicing before delivery.
- Totals must reconcile exactly. The invoice total has to equal the sum of the line charges, or the invoice is rejected.
- Corrections keep the original invoice number and add a correction indicator. Without it, the partner may treat the resend as a duplicate.
- Invoice rejections often arrive outside EDI. One partner’s published error list includes dashes or spaces in invoice numbers, mixed charge types on one line, and totals out of balance.
Acknowledgements and failure notifications
A 997 says the document arrived and could be read by the system that received it. It doesn’t mean, for instance, that they’re going to pay the 210 invoice.
- Expectations range widely. One partner wants your 997 within an hour, another within six hours, and most guides say nothing.
- Don’t wait on the partner’s 997 before moving on. It’s not uncommon for trading partners not to send 997s at all, or for them to be delayed by five, ten or more minutes.
- “Accepted with errors” is still accepted. Across 1.45 million acknowledgements, 0.05% were anything other than a clean accept, and most of those were code
E. ShowingEas a failure creates false alarms. - Real rejections come another way: an 824 (application advice), an 864 (a text message in EDI form), or an email. Support the 824 if a partner uses it, and route all three to a person.
What your app has to store
For builders and coding agents, here is the checklist.
Per tender (keep every version):
- The shipper’s load ID, exactly as sent. It goes back on every document.
- The carrier code (SCAC) the tender was addressed to.
- Every reference number with its qualifier, at the header and at each stop. Partners differ on which ones must be echoed and where, so keep all of them.
- The purpose code and the sender’s control numbers, for ordering versions.
- The respond-by time with its time zone.
- The bill-to party, exactly as sent. Some partners want it returned whole on the invoice.
Per stop:
- The stop sequence number as sent, and the stop reason code.
- Appointment dates, times and the time code as sent.
- Whether the stop needs an appointment, who books it, and the confirmed time once booked.
- The stop’s real time zone, resolved from its location.
- Location codes the partner uses for the site.
Per load, on your side:
- Your own load or PRO number, used on the 990, every 214 and the 210.
- Equipment numbers. Partners require them, and people leave them blank or paste in junk. Validate before sending.
- A stable invoice number.
Per status event:
- The code, the reason, the event time, the stop it belongs to, and when you sent it.
Rules:
| Rule | Why |
|---|---|
| Read the response deadline from each tender | 12 of 15 guides send one; missing it loses the load |
| Decide new versus update by whether you hold the load | Purpose codes are used inconsistently |
| Order tender versions by the sender’s control numbers | Versions arrive out of order |
| Never auto-cancel a booked or delivered load | Load IDs are reused |
| Send each milestone once, in order, from a real event | Partners reject out-of-order and penalize duplicates |
Put appointment codes in AT7-03 and milestone codes in AT7-01 |
The segment holds one or the other, and the time means something different |
| Send appointment 214s when the booking is recorded | Partners want them a day ahead, or as soon as they are made |
Resolve LT to a real zone per stop |
LT names no zone |
| Keep outbound text to plain ASCII, with no separator characters | Both cause rejections |
| Treat a 997 as receipt, not approval | Rejections arrive by 824, 864 or email |
| Match a 997 by group control number plus partner | The 997 acknowledges the group, and control numbers collide across partners |
| Confirm per partner: codes, references to echo, time zone rule, how they pay | None of it is standard |
Even the guides aren’t fully reliable. Several contradict their own samples, and some are more than ten years old. Test against real documents from each partner before going live.