Create Inventory
By sending through a JSON body, you can create inventory in your Despatch Cloud account.
Endpoint: https://YOUR-ACCOUNT-NAME.despatchcloud.co.uk/ws/v1/wsorders/create_inventory/
Method: POST
Example Request (POST)
Example Response:
Method: POST
| Field Name | Required | Format | Notes |
| product_code | Yes | String | |
| 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)
CopyCopyCopy{ "inventory":{ "product_code":"TESTSKU6", "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:
CopyCopyCopy{ "status": "SUCCESS" }