DM Web Services Documentation

UpdateProduct

Updates an existing product record in the DM Web Services catalog. Available via both REST and SOAP.


Function Overview

  • Purpose: Update dimensions, weight, value, and description of an existing product SKU.
  • REST Endpoint: POST /api/client/beyond/v1/shipping/UpdateProduct
  • SOAP Operation: UpdateProduct(UpdateProductRequest)
  • Authentication: Required -- Bearer token in HTTP Authorization header

REST Interface

Headers

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

Request Body

{
  "productSku": "SKU-001",
  "referenceNo": "REF-001",
  "productTitle": "Widget A - Updated",
  "productWeight": 2.8,
  "productNetWeight": 2.4,
  "productLength": 12.0,
  "productWidth": 8.0,
  "productHeight": 4.0,
  "productDeclaredValue": 34.99,
  "productDescription": "Updated description for Widget A",
  "supplierSku": "SUPP-SKU-001",
  "shipmentType": "NON_SHIP_ALONE"
}

Field Reference

FieldTypeRequiredDescription
productSkustringYesSKU of the product to update
referenceNostringNoOptional reference number
productTitlestringNoProduct display name
productWeightdecimalNoGross weight in lbs
productNetWeightdecimalNoNet weight in lbs
productLengthdecimalNoLength in inches
productWidthdecimalNoWidth in inches
productHeightdecimalNoHeight in inches
productDeclaredValuedecimalNoDeclared value in USD
productDescriptionstringNoDetailed product description
supplierSkustringNoSupplier's own SKU reference
shipmentTypestringNoSHIP_ALONE or NON_SHIP_ALONE

Response

{
  "status": "Success",
  "message": "Product updated.",
  "productSku": "SKU-001"
}

Status Codes

  • 200 OK -- product updated successfully
  • 400 Bad Request -- SKU not found or validation failure (see response body)
  • 401 Unauthorized -- invalid or missing token
  • 500 Internal Server Error -- unexpected server error

SOAP Interface

WSDL

Live WSDL -- /soap/client/beyond/v1/shipping?singlewsdl

Authentication note: Pass your Bearer token as an HTTP header on the request, not inside the SOAP envelope.
Authorization: Bearer <token>

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:ship="http://dmwebservices.com/shipping/client/beyond/v1">
  <soapenv:Header/>
  <soapenv:Body>
    <ship:UpdateProduct>
      <ship:request>
        <ship:ProductSku>SKU-001</ship:ProductSku>
        <ship:ReferenceNo>REF-001</ship:ReferenceNo>
        <ship:ProductTitle>Widget A - Updated</ship:ProductTitle>
        <ship:ProductWeight>2.8</ship:ProductWeight>
        <ship:ProductNetWeight>2.4</ship:ProductNetWeight>
        <ship:ProductLength>12.0</ship:ProductLength>
        <ship:ProductWidth>8.0</ship:ProductWidth>
        <ship:ProductHeight>4.0</ship:ProductHeight>
        <ship:ProductDeclaredValue>34.99</ship:ProductDeclaredValue>
        <ship:ProductDescription>Updated description for Widget A</ship:ProductDescription>
        <ship:SupplierSku>SUPP-SKU-001</ship:SupplierSku>
        <ship:ShipmentType>NON_SHIP_ALONE</ship:ShipmentType>
      </ship:request>
    </ship:UpdateProduct>
  </soapenv:Body>
</soapenv:Envelope>

SOAP Response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <UpdateProductResponseV1 xmlns="http://dmwebservices.com/shipping/client/beyond/v1">
      <status>Success</status>
      <message>Product updated.</message>
      <productSku>SKU-001</productSku>
    </UpdateProductResponseV1>
  </soapenv:Body>
</soapenv:Envelope>

Integration Samples


Related Resources