Edi 214 Shipment Status Codes: At7 Segment, Reason Codes and Examples
In an EDI 214 shipment status message, the AT7 segment reports an event such as arrival, departure, or delivery. Its shipment status code says what happened; an optional reason code adds context; and its date and time identify when the event occurred. To interpret an AT7 correctly, read those fields together and check the trading partners’ implementation guide rather than treating a status code as a complete shipment history.
What the EDI 214 and AT7 are for
An EDI 214 is an X12 Transportation Carrier Shipment Status Message. Carriers and logistics providers use it to communicate shipment events to another party, often a shipper or a system acting on the shipper’s behalf. The AT7 is the segment within that message that carries shipment status or appointment information. A 214 can contain more than one reported event, so an integration should not assume that every message represents one shipment with one status.
AT7 answers a narrow question: what event or appointment update is being reported, and when? Other parts of the transaction provide the context needed to identify the shipment and, where supplied, its location. A reliable tracking record is assembled from the message as a whole, not from the AT7 text alone.
How to read the AT7 segment
X12 segments use delimiters defined in the interchange. In the examples below, an asterisk separates elements and a tilde ends a segment. Your production files may use different delimiters. Element position matters: consecutive asterisks indicate empty positions, not a shorter segment.
| Position | Purpose | How to interpret it |
|---|---|---|
| AT7-01 | Shipment status code | The shipment event being reported. |
| AT7-02 | Status or appointment reason code | Additional context for the status in AT7-01, when applicable. |
| AT7-03 | Shipment appointment status code | An appointment update rather than the shipment event in AT7-01. |
| AT7-04 | Status or appointment reason code | Additional context for the appointment status in AT7-03. |
| AT7-05 | Date | The reported event or appointment date, generally formatted CCYYMMDD. |
| AT7-06 | Time | The reported time, using X12 time formatting. |
| AT7-07 | Time code | Time-zone context when transmitted. |
The distinction between AT7-01 and AT7-03 is consequential. An appointment update is not automatically evidence that a physical shipment event occurred. Similarly, AT7-02 and AT7-04 are reason-code positions associated with different kinds of updates. A parser that drops empty elements can shift a date into the wrong position and misread the entire segment.
Shipment status codes and reason codes
Status codes describe the reported milestone. Common examples include X1 for arrival at the delivery location, X3 for arrival at the pickup location, and D1 for completed unloading at the delivery location. These are distinct operational statements: arrival at a delivery location does not, by itself, establish that unloading is complete or that a recipient has accepted the freight.
A reason code qualifies a reported status; it does not replace it. For example, an implementation may transmit NS, meaning normal status, in AT7-02 alongside a shipment event. A reason can also explain an exception or an appointment change. Read the reason against the status position it accompanies and the code lists allowed by the applicable implementation guide. Do not assume that a blank reason means the carrier has confirmed that there was no exception. It may simply mean no reason was sent.
X12 defines the underlying segment and code concepts, but trading partners may restrict which codes they send, require particular combinations, or assign operational handling rules. The most useful reference for a live integration is therefore the agreed 214 implementation guide for that relationship, read alongside the X12 segment definition.
AT7 examples, decoded
Arrival at the delivery location: AT7*X1****20250115*1430~
AT7-01 is X1. AT7-02 through AT7-04 are empty; AT7-05 is January 15, 2025, and AT7-06 is 14:30. No time code is shown. This is an arrival event, not proof of completed unloading or final delivery. Because the time-zone context is absent, a receiving system should avoid presenting the time as a confirmed time in a particular zone unless that context is established elsewhere.
Arrival with a reason code: AT7*X1*NS***20250115*1430~
The reported event remains X1. AT7-02 now contains NS, a normal-status reason code. The three asterisks after NS preserve the empty AT7-03 and AT7-04 positions before the date. The reason adds context; it does not change X1 into a delivery-complete event.
Completed unloading: AT7*D1****20250115*1610~
Here AT7-01 is D1, reporting completed unloading at the delivery location at 16:10 on the stated date. If this follows the X1 example for the same shipment, the two events describe a plausible sequence: arrival, then completed unloading. They should remain separate milestones in a shipment timeline. The segment alone does not identify a signer, provide a proof-of-delivery document, or establish that every item was received without discrepancy.
These are illustrative segments, not complete EDI 214 transactions. A valid exchange also depends on the surrounding transaction structure, identifiers, required segments, and the trading partners’ agreed rules.
A practical way to process a 214 status
- Identify the shipment first. Use the shipment and carrier references in the surrounding 214 to match the event to the correct record. Do not attach an AT7 to an order solely because its timestamp looks plausible.
- Preserve element positions. Parse using the interchange’s actual separators and retain empty AT7 fields. Validate whether the segment reports a shipment status, an appointment status, and the corresponding reason in the correct position.
- Validate the reported code. Check that the code exists in the applicable X12 version and is permitted by the partner guide. Treat unknown or unexpected codes as items for review rather than silently mapping them to “in transit.”
- Retain the original event time. Store the transmitted date, time, and time code separately from any normalized timestamp. If time-zone context is missing, document any conversion assumption and avoid overstating its precision.
- Add location from its proper source. If the message supplies location information elsewhere, associate it with the corresponding status loop. Do not infer a city or facility merely from a code such as X1.
- Apply business labels carefully. A customer-facing label can be simpler than the EDI description, but it should not assert more. “Arrived at delivery location” is safer for X1 than “Delivered.”
This approach is particularly useful when several 214s arrive out of order. Processing time is not necessarily event time: a carrier may transmit an earlier milestone after a later one. Keep both timestamps where possible, retain the raw code, and use the reported event sequence rather than overwriting a confirmed milestone whenever a new file arrives.
Common interpretation mistakes
Confusing arrival with completion. X1 and D1 describe different milestones. If your workflow needs proof of delivery or confirmation of receipt, define which evidence is acceptable instead of treating either code as universal proof.
Reading a reason code as the main event. The meaning of a reason depends on whether it accompanies AT7-01 or AT7-03. Reporting “normal” without reporting the actual shipment status loses the information the recipient needs.
Assuming every carrier uses every code. A code may exist in an X12 reference but never appear in a particular partner feed. Conversely, a partner may have rules for a specific code combination that a generic code list cannot explain. Map the codes you actually receive against the agreed specification and test examples.
Guessing the time zone. A time without sufficient zone context may be useful for the carrier’s local operations but unsafe to display as a globally precise timestamp. Preserve the raw value until the relevant context is confirmed.
Treating the segment as the whole story. Status, location, shipment identification, and delivery evidence can reside in different places or systems. When a milestone appears inconsistent, inspect the complete transaction and its related records before changing the shipment’s operational state.
FAQ
Does AT7 X1 mean the shipment was delivered?
No. X1 reports arrival at the delivery location. It does not, by itself, confirm completed unloading, receipt by the consignee, or proof of delivery. Check later events and any separate delivery documentation needed for your workflow.
What is the difference between AT7-02 and AT7-04?
Both positions can carry a status or appointment reason code, but they qualify different fields. AT7-02 relates to the shipment status in AT7-01; AT7-04 relates to the appointment status in AT7-03. Their positions must be preserved even when one or more fields are empty.
Why are there several asterisks before the date in an AT7?
They mark empty elements. In AT7*X1****20250115*1430~, the date remains in AT7-05 because AT7-02, AT7-03, and AT7-04 have been left blank. The asterisks are necessary to preserve that position.
Can I build a shipment tracking page from AT7 alone?
Not reliably. AT7 provides an event or appointment update, but the surrounding 214 is needed to associate it with the right shipment and any reported location. A useful tracking page also needs rules for event ordering, time zones, missing updates, and the distinction between arrival and confirmed delivery.
Which code list should an integration team use?
Start with the AT7 definition for the X12 version used by the trading partners, then apply their agreed 214 implementation guide. That guide determines which otherwise valid codes and combinations the integration should expect and how exceptions should be handled.


