Update Inventory

You can update product attributes by specifying a product code at the end of the URL.

Endpoint: https://YOUR-ACCOUNT-NAME.despatchcloud.co.uk/ws/v1/wsorders/update_inventory/{product_code}
Method: POST
 
Field Name  Required FormatNotes
item_barcodeNoString 
item_barcode_2NoString 
item_barcode_3NoString 
item_barcode_4NoString 
nameNoString 
imageNoString  
stock_warn_levelNoInteger 
sync_stockNoBoolean 
product_weightNoString 
product_heightNoString 
product_widthNoString 
product_lengthNoString 
descriptionNoString 
cost_priceNoString 
max_levelNoString 
multiplierNoString 
retail_priceNoString 

Example Request (POST)
{
  "inventory": {
    "item_barcode": "0123456789101",
    "item_barcode_2": "",
    "item_barcode_3": "",
    "item_barcode_4": "",
    "item_barcode_5": "",
    "name": "Test Product 6",
    "image": "https://via.placeholder.com/500.jpg",
    "stock_warn_level": "0",
    "sync_stock": "1",
    "product_weight": "0.500",
    "product_height": "0.0",
    "product_width": "0.0",
    "product_length": "0.0",
    "description": "",
    "cost_price": "0.00",
    "max_level": "0",
    "multiplier": "1",
    "retail_price": "0.00"
  }
}

Example Response:
{
  "status": "SUCCESS"
}