DM Web Services Documentation

CancelInboundShipment

Cancels an existing inbound shipment (receipt order) in the DM Web Services system. Available via both REST and SOAP.


Function Overview

  • Purpose: Cancel an inbound shipment record by reference number.
  • Availability: REST and SOAP
  • Authentication: Bearer token in the HTTP Authorization header

REST Interface

Endpoint

POST /api/client/beyond/v1/shipping/CancelInboundShipment

Headers

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

Request Body

{
  "referenceNo": "PO-12345"
}

Response

{
  "status": "Success",
  "message": "Receipt Order cancelled."
}

Status Codes

  • 200 OK -- shipment cancelled successfully
  • 401 Unauthorized -- invalid or missing token
  • 409 Conflict -- shipment not found or cannot be cancelled (see response body)
  • 500 Internal Server Error -- unexpected server error

SOAP Interface

WSDL Endpoint

Live WSDL

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:ship="http://dmwebservices.com/shipping/client/beyond/v1">
  <soapenv:Header>
    <Authorization xmlns="http://schemas.microsoft.com/ws/2006/05/servicemodel/headers">
      Bearer <your-token>
    </Authorization>
  </soapenv:Header>
  <soapenv:Body>
    <ship:CancelInboundShipment>
      <ship:reference_no>PO-12345</ship:reference_no>
    </ship:CancelInboundShipment>
  </soapenv:Body>
</soapenv:Envelope>

SOAP Response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <CancelInboundShipmentResponseV1 xmlns="http://dmwebservices.com/shipping/client/beyond/v1">
      <Status>Success</Status>
      <Message>Receipt Order cancelled.</Message>
    </CancelInboundShipmentResponseV1>
  </soapenv:Body>
</soapenv:Envelope>

Integration Samples


Related Resources