SendEdi214Data
Returns EDI 214 (Transportation Carrier Shipment Status) data for a single shipment, identified by its DM Load Number.
This endpoint returns the 214 status data — not a generated 214 file or transmission.
mode field (default 0):
mode = 0— NextUntransmitted (default). Returns the earliest (oldest) status that has not yet been transmitted to the client, in arrival order. This path also marks that status as transmitted (setsTransmittedToClientand writes a record-status row), the same side effect as running a 214. Because the returned status is marked transmitted, successive calls return the untransmitted statuses oldest-first, one per call.markedTransmittedistruewhen a row was marked.mode = 1— AllUntransmitted. Returns every status that has not yet been transmitted, oldest-first, and marks every returned status transmitted (one record-status side effect per status).markedTransmittedistruewhen at least one row was marked.mode = 2— FullHistory. Returns the full status history, read-only. Nothing is marked or written.markedTransmittedisfalse.
Edi214DataRequest / Edi214DataResponse objects. The reports SOAP service is at /soap/public/v1/reports. Over REST, mode is the integer 0/1/2; over SOAP it is the matching enum member name (NextUntransmitted, AllUntransmitted, FullHistory), which the WSDL publishes as a restricted token set.
Function Overview
- Purpose: Retrieve EDI 214 shipment-status data by DM Load Number, optionally marking untransmitted statuses transmitted.
- REST Endpoint:
POST /api/public/v1/reports/214 - Request Body:
dmLoadNumber(required) andmode(optional integer, default0) - SOAP Operation:
SendEdi214Data(Edi214DataRequest) - Authentication: Required — Bearer token in HTTP Authorization header
REST Interface
Headers
Authorization: Bearer <token>
Content-Type: application/json
Request Body
The endpoint is a POST because the default mode mutates state (it marks the earliest untransmitted status transmitted). The DM Load Number and the integer mode are sent in the request body.
{
"dmLoadNumber": 104857,
"mode": 0
}
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
| dmLoadNumber | decimal | Yes | DM Load Number of the shipment. A value <= 0 (or a missing body) returns success: false with a validation message. |
| mode | integer | No | 0 = NextUntransmitted (default): earliest (oldest) not-yet-transmitted status, marks it transmitted (successive calls drain oldest-first). 1 = AllUntransmitted: every not-yet-transmitted status oldest-first, marks them all. 2 = FullHistory: full status history, read-only. Omitting the field defaults to 0. |
Response — Success (mode 0 / NextUntransmitted, earliest untransmitted status marked)
{
"success": true,
"errorText": null,
"mode": 0,
"markedTransmitted": true,
"shipment": {
"shipmentGuid": "8f3a1c2e-7b6d-4e51-9a0f-2c4d6e8b1a37",
"dmLoadNumber": "104857",
"branchGuid": "1b2c3d4e-5f60-7180-92a3-b4c5d6e7f809",
"senderCode": "DMWEB",
"referenceCode": "ACME-RETAIL",
"carrierScac": "FXFE",
"shipperName": "ACME Distribution",
"shipperFirstName": "",
"shipperLastName": "",
"shipperNumber": "",
"shipperOrderNumber": "SO-55920",
"shipperAddress1": "1400 Logistics Pkwy",
"shipperCity": "Memphis",
"shipperState": "TN",
"shipperZip": "38118",
"consigneeName": "Jane Buyer",
"consigneeFirstName": "Jane",
"consigneeLastName": "Buyer",
"consigneeNumber": "",
"consigneeAddress1": "82 Lakeview Ct",
"consigneeCity": "Orlando",
"consigneeState": "FL",
"consigneeZip": "32835",
"actualPickupDate": "2026-06-24 09:15:00",
"expectedDeliveryDate": "2026-06-27",
"actualDeliveryDate": "",
"totalPieces": "3",
"totalProductWeightCalc": "212.5"
},
"statuses": [
{
"statusCode": "AF",
"reasonCode": "NS",
"statusDate": "2026-06-25T14:32:00",
"equipmentLocationCity": "Ocala",
"equipmentLocationState": "FL"
}
],
"references": {
"BOL": "BOL-104857",
"PO": "PO-7741"
},
"poNumbers": ["PO-7741"]
}
Response — Success (mode 2 / FullHistory, read-only)
Mode 1 (AllUntransmitted) returns the same multi-status shape as below but includes only not-yet-transmitted statuses and sets markedTransmitted: true.
{
"success": true,
"errorText": null,
"mode": 2,
"markedTransmitted": false,
"shipment": { "dmLoadNumber": "104857", "carrierScac": "FXFE", "...": "(same header fields as above)" },
"statuses": [
{
"statusCode": "X3",
"reasonCode": "",
"statusDate": "2026-06-24T09:15:00",
"equipmentLocationCity": "Memphis",
"equipmentLocationState": "TN"
},
{
"statusCode": "AF",
"reasonCode": "NS",
"statusDate": "2026-06-25T14:32:00",
"equipmentLocationCity": "Ocala",
"equipmentLocationState": "FL"
}
],
"references": { "BOL": "BOL-104857", "PO": "PO-7741" },
"poNumbers": ["PO-7741"]
}
Response — Missing or Invalid DMLoadNumber (HTTP 200)
{
"success": false,
"errorText": "A valid DMLoadNumber is required.",
"mode": 0,
"markedTransmitted": false,
"shipment": { "shipmentGuid": "", "dmLoadNumber": "", "carrierScac": "" },
"statuses": [],
"references": {},
"poNumbers": []
}
Response — Unexpected Error (HTTP 500)
{
"status": "Error",
"message": "An unexpected error occurred while retrieving EDI 214 data."
}
Response Fields (top level)
| Field | Type | Description |
|---|---|---|
| success | boolean | true when the request resolved a shipment; false on a bad DM Load Number. |
| errorText | string? | Populated when success is false; otherwise null. |
| mode | integer | Echo of the requested mode (0 = NextUntransmitted, 1 = AllUntransmitted, 2 = FullHistory). |
| markedTransmitted | boolean | true when at least one returned status was marked transmitted (possible for modes 0 and 1; always false for mode 2). |
| shipment | object | Shipment header block (see below). |
| statuses | array | Status items (see below). One entry for mode 0; the matching set for modes 1 and 2. |
| references | object (map) | Reference type to value map. Keys are returned as stored (not camelCased). |
| poNumbers | array of string | Purchase order numbers on the shipment. |
shipment fields
| Field | Description |
|---|---|
| shipmentGuid | Internal shipment identifier. |
| dmLoadNumber | DM Load Number (echo). |
| branchGuid | Owning branch identifier. |
| senderCode / referenceCode | Sender and client reference codes used by the 214 generator. |
| carrierScac | Carrier SCAC. |
| shipper* / consignee* | Shipper and consignee name and address fields. |
| actualPickupDate / expectedDeliveryDate / actualDeliveryDate | Raw date string values as the 214 generator consumes them (format as stored). |
| totalPieces / totalProductWeightCalc | Raw string totals as stored. |
status item fields
| Field | Description |
|---|---|
| statusCode | Mapped short status code (EDI 214 status). |
| reasonCode | Mapped short reason code (may be empty). |
| statusDate | Status timestamp (nullable). This is the arrival-order sort key; manually back-filled statuses carry the correct statusDate even when their creation time differs. |
| equipmentLocationCity / equipmentLocationState | Reported equipment location (nullable). |
Status Codes
statusCode is a mapped short code from the EDI 214 status set. The codes below are
normally supported. The complete EDI 214 status and reason code sets are larger;
codes outside this list can be enabled by request, pending carrier support.
reasonCode follows the standard EDI 214 reason set (for example, NS = Normal Status) and may be empty.
| Code | Status |
|---|---|
| A3 | Shipment Returned to Shipper |
| A7 | Refused by Consignee |
| A9 | Shipment Damaged |
| AF | Carrier Departed Pick-up Location with Shipment |
| AG | Estimated Delivery |
| AH | Attempted Delivery |
| AI | Shipment has been Reconsigned |
| AJ | Tendered for Delivery |
| AM | Loaded on Truck |
| AN | Diverted to Air Carrier |
| AP | Delivery Not Completed |
| AR | Rail Arrival at Destination Intermodal Ramp |
| AV | Available for Delivery |
| B6 | Estimated to Arrive at Carrier Terminal |
| BA | Connecting Line or Cartage Pick-up |
| BC | Storage in Transit |
| C1 | Estimated to Depart Terminal Location |
| CA | Shipment Canceled |
| CD | Carrier Departed Delivery Location |
| CL | Trailer Closed Out |
| CP | Completed Loading at Pick-up Location |
| D1 | Completed Unloading at Delivery Location |
| I1 | In-Gate |
| J1 | Delivered to Connecting Line |
| K1 | Arrived at Customs |
| L1 | Loading |
| OA | Out-Gate |
| OO | Paperwork Received - Did not Receive Shipment or Equipment |
| P1 | Departed Terminal Location |
| PR | U.S. Customs Hold at In-Bond Location |
| R1 | Received from Prior Carrier |
| RL | Rail Departure from Origin Intermodal Ramp |
| S1 | Trailer Spotted at Consignee's Location |
| SD | Shipment Delayed |
| X1 | Arrived at Delivery Location |
| X2 | Estimated Date/Time of Arrival at Consignee's Location |
| X3 | Arrived at Pick-up Location |
| X4 | Arrived at Terminal Location |
| X5 | Arrived at Delivery Location Loading Dock |
| X6 | En Route to Delivery Location |
| X8 | Arrived at Pick-up Location Loading Dock |
| XB | Shipment Acknowledged |
SOAP Interface
WSDL
Live WSDL -- /soap/public/v1/reports?singlewsdl
The live WSDL is the authoritative schema. The envelopes below are illustrative and abbreviated; the full shipment and status fields match the REST response above.
Authorization: Bearer <token>
NextUntransmitted, AllUntransmitted, FullHistory), which the WSDL publishes as a restricted token set. The REST endpoint uses the matching integer (0/1/2) for the same field.
SOAP Operation
SendEdi214Data(Edi214DataRequest) returns Edi214DataResponse — the same objects used by the REST endpoint. The default-mode marking side effect is identical on both transports.
SOAP Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<SendEdi214Data xmlns="http://dmwebservices.com/reports/public/v1">
<request>
<DMLoadNumber>104857</DMLoadNumber>
<Mode>NextUntransmitted</Mode>
</request>
</SendEdi214Data>
</soapenv:Body>
</soapenv:Envelope>
SOAP Response -- Success (abbreviated)
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<SendEdi214DataResponse xmlns="http://dmwebservices.com/reports/public/v1">
<result>
<Success>true</Success>
<ErrorText i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<Mode>NextUntransmitted</Mode>
<MarkedTransmitted>true</MarkedTransmitted>
<Shipment>
<DMLoadNumber>104857</DMLoadNumber>
<CarrierScac>FXFE</CarrierScac>
<ConsigneeCity>Orlando</ConsigneeCity>
<ConsigneeState>FL</ConsigneeState>
<ConsigneeZip>32835</ConsigneeZip>
</Shipment>
<Statuses>
<Edi214StatusItem>
<StatusCode>AF</StatusCode>
<ReasonCode>NS</ReasonCode>
<StatusDate>2026-06-25T14:32:00</StatusDate>
</Edi214StatusItem>
</Statuses>
</result>
</SendEdi214DataResponse>
</s:Body>
</s:Envelope>