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
 
Field Name  Required FormatNotes
product_codeYesString 
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)
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"
}