DM Web Services Documentation

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.

Three modes, controlled by the integer mode field (default 0):
REST and SOAP: This function is available over both transports, sharing the same 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) and mode (optional integer, default 0)
  • 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

FieldTypeRequiredDescription
dmLoadNumberdecimalYesDM Load Number of the shipment. A value <= 0 (or a missing body) returns success: false with a validation message.
modeintegerNo0 = 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)

FieldTypeDescription
successbooleantrue when the request resolved a shipment; false on a bad DM Load Number.
errorTextstring?Populated when success is false; otherwise null.
modeintegerEcho of the requested mode (0 = NextUntransmitted, 1 = AllUntransmitted, 2 = FullHistory).
markedTransmittedbooleantrue when at least one returned status was marked transmitted (possible for modes 0 and 1; always false for mode 2).
shipmentobjectShipment header block (see below).
statusesarrayStatus items (see below). One entry for mode 0; the matching set for modes 1 and 2.
referencesobject (map)Reference type to value map. Keys are returned as stored (not camelCased).
poNumbersarray of stringPurchase order numbers on the shipment.

shipment fields

FieldDescription
shipmentGuidInternal shipment identifier.
dmLoadNumberDM Load Number (echo).
branchGuidOwning branch identifier.
senderCode / referenceCodeSender and client reference codes used by the 214 generator.
carrierScacCarrier SCAC.
shipper* / consignee*Shipper and consignee name and address fields.
actualPickupDate / expectedDeliveryDate / actualDeliveryDateRaw date string values as the 214 generator consumes them (format as stored).
totalPieces / totalProductWeightCalcRaw string totals as stored.

status item fields

FieldDescription
statusCodeMapped short status code (EDI 214 status).
reasonCodeMapped short reason code (may be empty).
statusDateStatus timestamp (nullable). This is the arrival-order sort key; manually back-filled statuses carry the correct statusDate even when their creation time differs.
equipmentLocationCity / equipmentLocationStateReported 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.

CodeStatus
A3Shipment Returned to Shipper
A7Refused by Consignee
A9Shipment Damaged
AFCarrier Departed Pick-up Location with Shipment
AGEstimated Delivery
AHAttempted Delivery
AIShipment has been Reconsigned
AJTendered for Delivery
AMLoaded on Truck
ANDiverted to Air Carrier
APDelivery Not Completed
ARRail Arrival at Destination Intermodal Ramp
AVAvailable for Delivery
B6Estimated to Arrive at Carrier Terminal
BAConnecting Line or Cartage Pick-up
BCStorage in Transit
C1Estimated to Depart Terminal Location
CAShipment Canceled
CDCarrier Departed Delivery Location
CLTrailer Closed Out
CPCompleted Loading at Pick-up Location
D1Completed Unloading at Delivery Location
I1In-Gate
J1Delivered to Connecting Line
K1Arrived at Customs
L1Loading
OAOut-Gate
OOPaperwork Received - Did not Receive Shipment or Equipment
P1Departed Terminal Location
PRU.S. Customs Hold at In-Bond Location
R1Received from Prior Carrier
RLRail Departure from Origin Intermodal Ramp
S1Trailer Spotted at Consignee's Location
SDShipment Delayed
X1Arrived at Delivery Location
X2Estimated Date/Time of Arrival at Consignee's Location
X3Arrived at Pick-up Location
X4Arrived at Terminal Location
X5Arrived at Delivery Location Loading Dock
X6En Route to Delivery Location
X8Arrived at Pick-up Location Loading Dock
XBShipment 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.

Authentication note: Pass your Bearer token as an HTTP header, not inside the SOAP envelope.
Authorization: Bearer <token>
Mode over SOAP: SOAP uses the enum member name (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>

Integration Samples


Related Resources