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
| Field | Type | Required | Description |
|---|---|---|---|
| productSku | string | Yes | SKU of the product to update |
| referenceNo | string | No | Optional reference number |
| productTitle | string | No | Product display name |
| productWeight | decimal | No | Gross weight in lbs |
| productNetWeight | decimal | No | Net weight in lbs |
| productLength | decimal | No | Length in inches |
| productWidth | decimal | No | Width in inches |
| productHeight | decimal | No | Height in inches |
| productDeclaredValue | decimal | No | Declared value in USD |
| productDescription | string | No | Detailed product description |
| supplierSku | string | No | Supplier's own SKU reference |
| shipmentType | string | No | SHIP_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>