DM Web Services Documentation

UpdateShipmentDate

Upserts a date value by type. Certain date types update root Shipments columns directly; all others upsert into the Shipments_Date collection.

All responses are HTTP 200. Check the status field for Success or Error.

Lock rule: This call fails if ActualPickup is set and on or before today. Also fails if DateValue is DateTime.MinValue.

Function Overview

  • Purpose: Add or update a date entry on an existing shipment by type. If the type already exists it is updated; otherwise it is inserted.
  • REST Endpoint: POST /api/public/v1/shipping/UpdateShipmentDate
  • SOAP Operation: UpdateShipmentDate(UpdateShipmentDateRequest)
  • Authentication: Required -- Bearer token in HTTP Authorization header

Permitted Date Types

Only the following date types are accepted. This list is live -- it reflects the current system configuration and updates automatically when types are enabled or disabled.

Date TypeNotes
AppointmentUpserts into Shipments_Date collection
Available for PickupUpserts into Shipments_Date collection
Expected at ConsolidationUpserts into Shipments_Date collection
Expected PickupWrites to Shipments.ExpectedPickup
Install DateUpserts into Shipments_Date collection
Must Respond ByUpserts into Shipments_Date collection
P.O. ExpirationWrites to Shipments.POExpiration
Required PickupWrites to Shipments.RequiredPickup

REST Interface

Headers

Authorization: Bearer <token>
Content-Type: application/json

Request Body

{
  "dmLoadNumber": 4363968,
  "dateType": "Expected Pickup",
  "dateValue": "2026-04-15T00:00:00Z"
}

Request Fields

FieldTypeRequiredDescription
dmLoadNumberdecimalYesDM Load Number of the shipment
dateTypestringYesMust match an entry in the permitted types list above
dateValuedatetimeYesISO 8601 date/time. Must not be DateTime.MinValue.

Response -- Success

{
  "status": "Success",
  "dmLoadNumber": 4363968,
  "errors": []
}

Response -- Error (type not permitted)

{
  "status": "Error",
  "dmLoadNumber": 4363968,
  "errors": ["Date type 'CustomDate' is not permitted for API updates. Contact support to request this type be enabled."]
}

SOAP Interface

WSDL

/soap/public/v1/shipping?singlewsdl

Authentication note: Pass your Bearer token as an HTTP header, not inside the SOAP envelope.

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <UpdateShipmentDate xmlns="http://dmwebservices.com/shipping/public/v1">
      <request>
        <DMLoadNumber>4363968</DMLoadNumber>
        <DateType>Expected Pickup</DateType>
        <DateValue>2026-04-15T00:00:00Z</DateValue>
      </request>
    </UpdateShipmentDate>
  </soapenv:Body>
</soapenv:Envelope>

Integration Samples


Related Resources