DM Web Services Documentation

AddShipmentDate

Inserts a new date entry into the Shipments_Date collection. Fails if that date type already exists on the shipment. Use UpdateShipmentDate for upsert behaviour.

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.

Function Overview

  • Purpose: Add a new date entry of a specific type to a shipment. Fails if the type is already present.
  • REST Endpoint: POST /api/public/v1/shipping/AddShipmentDate
  • SOAP Operation: AddShipmentDate(AddShipmentDateRequest)
  • Authentication: Required -- Bearer token in HTTP Authorization header

Permitted Date Types

Only the following date types are accepted. This list reflects the current system configuration and updates automatically.

  • Appointment
  • Available for Pickup
  • Expected at Consolidation
  • Expected Pickup
  • Install Date
  • Must Respond By
  • P.O. Expiration
  • Required Pickup

REST Interface

Headers

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

Request Body

{
  "dmLoadNumber": 4363968,
  "dateType": "Appointment",
  "dateValue": "2026-04-15T08:00:00Z"
}

Request Fields

FieldTypeRequiredDescription
dmLoadNumberdecimalYesDM Load Number of the shipment
dateTypestringYesMust match a permitted type. Fails if type already exists on shipment.
dateValuedatetimeYesISO 8601 date/time value

Response -- Success

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

Response -- Error (duplicate)

{
  "status": "Error",
  "dmLoadNumber": 4363968,
  "errors": ["Date type 'Appointment' already exists on this shipment. Use UpdateShipmentDate to overwrite it."]
}

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>
    <AddShipmentDate xmlns="http://dmwebservices.com/shipping/public/v1">
      <request>
        <DMLoadNumber>4363968</DMLoadNumber>
        <DateType>Appointment</DateType>
        <DateValue>2026-04-15T08:00:00Z</DateValue>
      </request>
    </AddShipmentDate>
  </soapenv:Body>
</soapenv:Envelope>

Integration Samples


Related Resources