DM Web Services Documentation

AddProduct

Adds a new product record to the DM Web Services catalog. Available via both REST and SOAP.


Function Overview

  • Purpose: Register a new product with its dimensions, weights, and identifiers.
  • Availability: REST and SOAP
  • Authentication: Bearer token in the HTTP Authorization header

REST Interface

Endpoint

POST /api/client/beyond/v1/shipping/AddProduct

Headers

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

Request Body

{
  "productSku": "SKU-001",
  "referenceNo": "REF-001",
  "productTitle": "Widget A",
  "productWeight": 2.5,
  "productNetWeight": 2.2,
  "productLength": 12.0,
  "productWidth": 8.0,
  "productHeight": 4.0,
  "productDeclaredValue": 29.99,
  "productDescription": "Standard widget for general use",
  "supplierSku": "SUPP-SKU-001",
  "shipmentType": "NON_SHIP_ALONE"
}

Field Reference

FieldTypeRequiredDescription
productSkustringYesYour unique product identifier
referenceNostringNoOptional reference number
productTitlestringYesProduct display name
productWeightdecimalYesGross weight in lbs
productNetWeightdecimalNoNet weight in lbs
productLengthdecimalYesLength in inches
productWidthdecimalYesWidth in inches
productHeightdecimalYesHeight 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 added.",
  "productSku": "SKU-001"
}

Status Codes

  • 201 Created -- product added successfully
  • 401 Unauthorized -- invalid or missing token
  • 409 Conflict -- duplicate SKU or validation failure (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:AddProduct>
      <ship:request>
        <ship:ProductSku>SKU-001</ship:ProductSku>
        <ship:ReferenceNo>REF-001</ship:ReferenceNo>
        <ship:ProductTitle>Widget A</ship:ProductTitle>
        <ship:ProductWeight>2.5</ship:ProductWeight>
        <ship:ProductNetWeight>2.2</ship:ProductNetWeight>
        <ship:ProductLength>12.0</ship:ProductLength>
        <ship:ProductWidth>8.0</ship:ProductWidth>
        <ship:ProductHeight>4.0</ship:ProductHeight>
        <ship:ProductDeclaredValue>29.99</ship:ProductDeclaredValue>
        <ship:ProductDescription>Standard widget for general use</ship:ProductDescription>
        <ship:SupplierSku>SUPP-SKU-001</ship:SupplierSku>
        <ship:ShipmentType>NON_SHIP_ALONE</ship:ShipmentType>
      </ship:request>
    </ship:AddProduct>
  </soapenv:Body>
</soapenv:Envelope>

SOAP Response

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

Integration Samples


Related Resources