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
Example Request (POST)
Example Response:
Method: POST
| Field Name | Required | Format | Notes |
| item_barcode | No | String | |
| item_barcode_2 | No | String | |
| item_barcode_3 | No | String | |
| item_barcode_4 | No | String | |
| name | No | String | |
| image | No | String | |
| stock_warn_level | No | Integer | |
| sync_stock | No | Boolean | |
| product_weight | No | String | |
| product_height | No | String | |
| product_width | No | String | |
| product_length | No | String | |
| description | No | String | |
| cost_price | No | String | |
| max_level | No | String | |
| multiplier | No | String | |
| retail_price | No | String |
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"
}