The EDI 315 is how you know where your container is between the factory and your dock. Every time a container hits a milestone, the ocean carrier sends a 315 with a status code, a time and a place. Importers use the feed to plan drayage and receiving, forwarders and NVOCCs use it to update customers, and everyone uses it to see free time running out before the terminal invoice arrives.
This guide covers what the 315 reports, the status codes you can rely on, where it sits beside the 300, 301 and 310, every segment you will map, two live examples (a vessel departure and three import milestones), how it differs from the motor-carrier 214, and the errors that leave containers untracked.
What Is an EDI 315?
An EDI 315 is the Status Details (Ocean) transaction set defined by ASC X12, used by an ocean carrier to report status or event details for shipments or containers. The X12 description says it can carry one status or event for many shipments or containers, or more than one status or event for one shipment or container. In practice, most carriers send one 315 per event per container. The 315 travels in functional group QO (the GS01 value).
Authoritative references for 315 work:
- The X12 transaction set catalog defines the 315 structure and the shipment status code list used in
B4 - Stedi's X12 004010 reference for the 315 lists the segments, elements and code values for release 004010
- The UN/LOCODE list maintained by UNECE supplies the five-character location codes (such as
CNSHAorUSLAX) most carriers use for event locations - The BIC container prefix register governs the four-letter owner codes in ISO 6346 container numbers, which the 315 carries in
B4 - Each ocean carrier publishes its own 315 implementation guide, listing the status codes it actually sends and how you subscribe to them
Who sends it? The ocean carrier, or an NVOCC or visibility provider passing carrier events on.
Who receives it? Whoever subscribed to the shipment: the shipper, the consignee or importer, the forwarder or NVOCC, and sometimes a customs broker or trucker.
When is it sent? At each event the carrier records for the container, from empty pickup at origin to empty return at destination. Some carriers also send estimated events, such as a revised vessel arrival.
Why does it matter? Ocean freight runs on free time. A container that is available at the terminal but not picked up, or out of the terminal and not returned, starts costing money under the carrier's tariff or your contract. The 315 tells you when those clocks start.
Where the 315 Fits in Ocean EDI
The 315 is the status feed in a family of ocean transaction sets:
| Set | X12 name | Usually sent by | What it does |
|---|---|---|---|
| 300 | Reservation (Booking Request) (Ocean) | Shipper, forwarder or NVOCC | Requests space on a sailing |
| 301 | Confirmation (Ocean) | Ocean carrier | Confirms the booking and returns the booking number |
| 304 | Shipping Instructions | Shipper, forwarder or NVOCC | Gives the details for the bill of lading |
| 310 | Freight Receipt and Invoice (Ocean) | Ocean carrier | Bill of lading data and freight charges. See the EDI 310 guide |
| 313 | Shipment Status Inquiry (Ocean) | Shipper, consignee or forwarder | Asks the carrier for status |
| 315 | Status Details (Ocean) | Ocean carrier | Reports container and shipment events |
The 315 references the same numbers as the rest of the flow: the booking number from the 301, the bill of lading number from the 310, and the container numbers. Your systems should be able to find a container from any of the three.
EDI 315 Status Codes
The event is coded in B403, X12 data element 157 (Shipment Status Code). The same element is shared with other transportation sets and has well over a hundred values, but a carrier's 315 guide uses a short list. The codes below are taken from the X12 004010 code list for element 157 and are the ones ocean 315 guides most often use. Check your carrier's guide for its own subset.
Export and ocean leg
| Code | X12 meaning | What it tells you |
|---|---|---|
EE | Empty Equipment Dispatched | An empty container has gone out to the shipper or loading point |
I | In-Gate | The container entered a facility, usually the origin terminal, loaded |
AE | Loaded on Vessel | The container is on board |
VD | Vessel Departure | The vessel has sailed (or, with an estimated date, is scheduled to) |
VA | Vessel Arrival | The vessel has arrived (or, with an estimated date, is scheduled to) |
UV | Unloaded From Vessel | The container is discharged at the port named in the message |
E | Estimated to Arrive (En Route) | An estimated arrival at the location given |
At a transshipment port you will see UV and then a second AE and VD for the next vessel, so do not treat the first UV as arrival at destination without checking the location.
Import release and delivery
| Code | X12 meaning | What it tells you |
|---|---|---|
CT | Customs Released | Customs has released the cargo |
CR | Carrier Release | The carrier has released the cargo, usually once freight is paid and documents are presented |
CU | Carrier and Customs Release | Both releases in one event |
BR | Bill of Lading Released | The bill of lading has been released |
OB | Original Bill of Lading Received | The carrier has received the original B/L |
AV | Available for Delivery | The container can be picked up |
OA | Out-Gate | The container left the facility, usually on a truck from the terminal |
D | Completed Unloading at Delivery Location | Delivered |
RD | Return Container | The empty container has been returned |
FT | Free Time Expired | Free time at the location has run out |
Rail and inland moves
| Code | X12 meaning | What it tells you |
|---|---|---|
AL | Loaded on Rail | Loaded onto a rail car |
RL | Rail Departure from Origin Intermodal Ramp | Rail move has started |
AR | Rail Arrival at Destination Intermodal Ramp | Arrived at the inland ramp |
UR | Unloaded from a Rail Car | Off the train at the ramp |
AM | Loaded on Truck | Loaded onto a truck |
Holds and exceptions
| Code | X12 meaning | What it tells you |
|---|---|---|
PU | Other U.S. Agency Hold at Place of Vessel Arrival | A US agency other than Customs or USDA has placed a hold |
IB | U.S. Customs, In-bond Movement Authorized | The cargo may move in bond |
CA | Shipment Cancelled | The shipment was cancelled |
TM | Intra-Terminal Movement | Moved within the terminal |
Some carriers send codes from outside this list or use their own codes for events such as a hold release or a change of vessel. Those meanings come only from that carrier's guide. If a code you receive is not in your table, log it and look it up there rather than guessing.
Estimated vs actual
VA and VD mean "scheduled to arrive or depart, or has arrived or departed". The difference between an estimate and a fact is in the dates. In the samples below, a DTM after the port's R4 segment uses 139 for estimated and 140 for actual. Read the qualifier before you tell a customer the vessel has arrived.
Interactive Example: 315 Vessel Departure
An ocean carrier (SCAC BLUQ) reports that container QXZU4128732, a loaded 40-foot high cube, sailed from Shanghai on voyage 118E. B4 carries the status code VD, the date and time, the location and the container. The N9 segments carry the bill of lading, booking and purchase order numbers. Q2 names the vessel. The R4 loops give the place of receipt, the port of loading with the actual departure, and the port of discharge with an estimated arrival. All names, numbers and codes for the parties, carrier, vessel and container are fictional.
Use the Plain English tab for a readable summary, or click any segment to break it down element by element.
Ocean Carrier 315 Status: Vessel Departure (VD)
One container status event: B4 reports vessel departure (VD) at Shanghai for a loaded 40-foot high cube, N9 carries the bill of lading, booking and PO numbers, Q2 names the vessel and voyage, and the R4 loops give the actual departure and the estimated arrival at Los Angeles
- Document
- 315 Status Details (Ocean)
- From / to
- BLUQ → CASCADEHOMEIMP
- Segments
- 16
- Interchange date
- Nov 4, 2026
Raw EDI (X12)
Human-Readable
Interchange
Functional Group
Transaction 315
Status Details (Ocean)Segment Detail
Interactive Example: Import Milestones (UV, AV, OA)
The same container arrives at Los Angeles. One interchange carries three 315 transactions: unloaded from vessel (UV), available for delivery (AV) and out-gate (OA). The out-gate message adds the place of delivery, the importer's warehouse in Ontario, California. These three events are the ones an import team watches most closely, because they decide when to dispatch a trucker and when free time starts to matter.
Ocean Carrier 315 Import Milestones (UV, AV, OA)
Three 315 transactions in one interchange for the same container at Los Angeles: unloaded from vessel (UV), available for delivery (AV) and out-gate (OA), the import milestones that drive drayage and demurrage decisions
- Document
- 315 Status Details (Ocean)
- From / to
- BLUQ → CASCADEHOMEIMP
- Segments
- 29
- Interchange date
- Nov 21, 2026
Raw EDI (X12)
Human-Readable
Interchange
Functional Group
Transaction 315
Status Details (Ocean)Segment Detail
Transaction 315
Status Details (Ocean)Segment Detail
Transaction 315
Status Details (Ocean)Segment Detail
315 Structure at a Glance
The table follows X12 release 004010. The 315 is short: one status, the references, the vessel, and the locations.
| Position | Segment | Name | Usage in the standard | Notes |
|---|---|---|---|---|
| Heading | ST | Transaction Set Header | Mandatory | ST01 = 315 |
| Heading | B4 | Beginning Segment for Inquiry or Reply | Mandatory | Status code, date, time, location and container |
| Heading | N9 | Reference Identification | Optional, up to 30 | B/L, booking, PO and other references |
| Heading | Q2 | Status Details (Ocean) | Optional | Vessel, voyage, departure and discharge dates |
| Heading | SG | Shipment Status | Optional, up to 15 | Earlier or additional statuses, each with a date |
| Heading loop | R4 | Port or Terminal | Mandatory, up to 20 | Places on the route |
| Heading loop | DTM | Date/Time Reference | Optional, up to 15 per R4 | Estimated or actual dates at that place |
| Heading | V9 | Event Detail | Optional, up to 10 | Further event detail, used by some carriers |
| Summary | SE | Transaction Set Trailer | Mandatory | Segment count and control number |
Key Segments Explained
B4: Beginning Segment for Inquiry or Reply
B4***VD*20261104*1830*CNSHA*QXZU*412873*L*45G1*CNSHA*UN*2~
| Element | Name | Example | What it means |
|---|---|---|---|
| B403 | Shipment Status Code | VD | The event (see the status code tables) |
| B404 | Date | 20261104 | Date of the event |
| B405 | Status Time | 1830 | Time of the event, usually local time at the location |
| B406 | Status Location | CNSHA | Where the event happened, 3 to 5 characters |
| B407 | Equipment Initial | QXZU | Container owner prefix |
| B408 | Equipment Number | 412873 | Container serial number |
| B409 | Equipment Status Code | L | L load, E empty |
| B410 | Equipment Type | 45G1 | Four-character equipment type; 45G1 is the ISO 6346 code for a 40-foot high cube general-purpose container |
| B411 | Location Identifier | CNSHA | Location code for the event |
| B412 | Location Qualifier | UN | UN means B411 is a UN/LOCODE |
| B413 | Equipment Number Check Digit | 2 | ISO 6346 check digit |
B407, B408 and B413 together make the container number: QXZU4128732. Some carriers send the check digit as part of B408, so normalize container numbers before you match them. Equipment type codes (B410) vary by carrier: some send ISO size-type codes, others older four-digit codes. B401 (special handling) and B402 (inquiry request number) are rarely used on carrier-initiated 315s.
N9: Reference Identification
N9*BM*BLUQSHA2611045~
N9*BN*BK7730412~
N9*PO*4500918832~
| Qualifier | Meaning | Why you need it |
|---|---|---|
BM | Bill of lading number | Links the event to the 310 and the customs entry |
BN | Booking number | Links it to the 301 booking confirmation |
PO | Purchase order number | Links it to your orders, when the carrier has them from the 304 |
MB | Master bill of lading | Sent on house bills issued by NVOCCs |
EQ | Equipment number | The container number, as a reference |
Q2: Status Details (Ocean)
Q2*9700017*LR**20261104*20261120****118E***L*MERIDIAN HARBOR~
| Element | Name | Example | What it means |
|---|---|---|---|
| Q201 | Vessel Code | 9700017 | Vessel identifier, here a Lloyd's (IMO) number |
| Q202 | Country Code | LR | Country of registry |
| Q203 | Date | Required pier date | |
| Q204 | Date | 20261104 | Date of vessel departure |
| Q205 | Date | 20261120 | Date unloaded from the vessel |
| Q206 | Lading Quantity | Pieces | |
| Q207 / Q208 | Weight, Weight Qualifier | Weight and its type | |
| Q209 | Flight/Voyage Number | 118E | Voyage |
| Q212 | Vessel Code Qualifier | L | L Lloyd's Register of Shipping, C ship's radio call sign |
| Q213 | Vessel Name | MERIDIAN HARBOR | Vessel name |
| Q216 | Weight Unit Code | K kilograms, L pounds |
The vessel name and voyage let you group every container on the same sailing, which is how you spot a delayed vessel before each container's events catch up.
SG: Shipment Status
SG*AE***20261104*1210~
| Element | Name | What it means |
|---|---|---|
| SG01 | Shipment Status Code | A status from the same code list as B403 |
| SG02 | Status Reason Code | Why, when the carrier sends a reason |
| SG04 | Date | Date of that status |
| SG05 | Time | Time of that status |
Some carriers use SG to repeat earlier events in each 315 so a receiver that missed one message still has the history. Neither sample above uses it.
R4 and DTM: Port or Terminal
R4*L*UN*CNSHA*SHANGHAI*CN*EAST PIER TERMINAL~
DTM*140*20261104*1830~
R4*D*UN*USLAX*LOS ANGELES*US~
DTM*139*20261119*0800~
| Element | Name | Example | What it means |
|---|---|---|---|
| R401 | Port or Terminal Function Code | L | R place of receipt, L port of loading, D port of discharge, E place of delivery, T transshipment port, 5 activity location |
| R402 | Location Qualifier | UN | UN/LOCODE |
| R403 | Location Identifier | CNSHA | Location code |
| R404 | Port Name | SHANGHAI | Name |
| R405 | Country Code | CN | Country |
| R406 | Terminal Name | EAST PIER TERMINAL | Terminal, when sent |
| DTM01 | Date/Time Qualifier | 140 | 139 estimated, 140 actual |
| DTM02 / DTM03 | Date, Time | 20261104 / 1830 | When |
The standard requires at least one R4. Carriers vary in how many they send: some send the full route on every 315, others only the location of the event. The estimated arrival at the port of discharge (R4*D with DTM*139) is the date most import teams plan around, and it changes. Keep the latest value and the history.
EDI 315 vs 214, 310 and 856
| Document | Mode | Sent by | Purpose |
|---|---|---|---|
| 315 Status Details (Ocean) | Ocean | Ocean carrier | Container events, coded in B4 |
| 214 Shipment Status Message | Truck and other modes | Carrier | Shipment events, coded in AT7 |
| 310 Freight Receipt and Invoice (Ocean) | Ocean | Ocean carrier | Bill of lading data and charges |
| 856 Ship Notice/ASN | Any | Supplier | What was shipped, down to carton |
The 214 and 315 do the same job for different modes, with different segments. The 214 puts the status in AT7 with a separate reason code; the 315 puts it in B4 with the container number in the same segment. A container moving door to door often produces both: 315s from the ocean carrier for the port-to-port leg, and 214s from the trucker once it leaves the terminal on a drayage move. That drayage leg is often tendered with a 204 load tender and billed with a 210 freight invoice. Tie both feeds to the same container number and you have one timeline.
Common 315 Errors and How to Prevent Them
| Error | What happens | Prevention |
|---|---|---|
| Container number formats differ | Events do not match the container on file | Normalize to prefix plus serial plus check digit, and validate the check digit |
| Estimate read as actual | Customers told a vessel has arrived when it has not | Read the DTM qualifier (139 or 140) or the carrier's equivalent before updating status |
| Transshipment discharge read as arrival | Drayage booked at the wrong port | Check the location in B406/B411 against the port of discharge in R4*D |
| Events arrive out of order | Status goes backwards on the dashboard | Order by event date and time, not by receipt time, and keep every event |
| Unknown status codes dropped | Holds and exceptions go unseen | Store any unmapped code and alert on it |
| No subscription for a B/L | No 315s arrive at all | Confirm with the carrier how shipments are subscribed (by B/L, booking or container) and check that every live booking is covered |
AV not acted on | Container sits at the terminal past free time | Route AV events straight to whoever dispatches drayage |
No RD after OA | Empty not returned, or return not recorded | Alert when an out-gated container has no return event within the period your contract allows |
315 Implementation Checklist
Before your first live 315 feed from an ocean carrier, NVOCC or visibility provider:
- Get the carrier's 315 implementation guide and confirm the X12 version in
GS08(004010 is common) - Get its list of status codes and add any carrier-specific ones to your mapping
- Agree how shipments are subscribed: by B/L, booking number or container
- Confirm where the container number, B/L and booking numbers appear, and whether the check digit is separate
- Confirm whether event times are local and how estimates are flagged
- Map each status to the action your team takes (dispatch, customer notice, receiving appointment)
- Join 315 events to the 310 by B/L number and to purchase orders by PO number
- Confirm the 997 you will send back for each 315
- Test an export sequence, an import sequence, a transshipment, a rail move and a revised estimate
If ocean EDI is new to your team, our EDI document types reference shows where transportation sets sit next to the 850 purchase order and the 856 ASN. The SCAC code glossary entry explains the carrier codes used in the envelope and the 310.
Where OrderSync Fits
A container status is only as useful as your record of what is in the container. That record starts with the purchase order, and for many importers the orders behind a container arrive in a mix of EDI 850s, PDFs, emails and spreadsheets.
OrderSync reads inbound orders in any format, matches customers, items and units to your catalog, and outputs clean ERP data or valid X12, so the PO numbers on your bookings and 315 events point at accurate orders. Paste any 315 into the free EDI inspector to see it parsed segment by segment with a plain-English summary and any structural errors explained, or book a 15-minute walkthrough to see your own orders processed.
Frequently Asked Questions
What is an EDI 315?
The EDI 315 Status Details (Ocean) is the X12 transaction an ocean carrier sends to report a container or shipment event, such as loaded on vessel, vessel departure, discharge, availability for delivery or out-gate. Each message carries the status code, date, time, location, container number and references like the bill of lading and booking numbers.
What are the EDI 315 status codes?
The status code sits in B403. Common ocean codes from the X12 list include EE empty equipment dispatched, I in-gate, AE loaded on vessel, VD vessel departure, VA vessel arrival, UV unloaded from vessel, CT customs released, AV available for delivery, OA out-gate and RD return container. Each carrier's guide lists the subset it sends.
What is the difference between EDI 214 and 315?
Both report shipment status. The 214 is used by motor carriers and other modes and puts the status in the AT7 segment. The 315 is the ocean version: it puts the status, location and container number in the B4 segment and adds vessel details in Q2.
Who sends the EDI 315?
The ocean carrier sends it, often directly and sometimes through an NVOCC, forwarder or visibility platform. It goes to whoever subscribed to the shipment: the shipper, the consignee or importer, the forwarder, and sometimes the customs broker.
How do I tell an estimated vessel arrival from an actual one?
VA means the vessel is scheduled to arrive or has arrived. Read the date qualifier: in carrier guides that use DTM after the R4 port segment, 139 is estimated and 140 is actual. Only treat the arrival as fact once you have an actual date.
Where is the container number in a 315?
In the B4 segment. B407 is the four-letter owner prefix, B408 the serial number and B413 the check digit. Some carriers also send the container number in an N9 segment with the EQ qualifier.
What functional group and version does the 315 use?
The 315 travels in functional group QO, the value in GS01. Many carrier guides use X12 release 004010, and the version for a given carrier is named in GS08.
How does the 315 relate to the 300, 301 and 310?
The 300 and 301 book the space and produce the booking number. The 310 delivers the bill of lading data and charges. The 315 then reports events against the same booking, bill of lading and container numbers, so all four documents can be joined into one shipment record.