Add Inventory to Order

By specifying an Order ID, you can add inventory to an existing order.

Endpoint: https://YOUR-ACCOUNT-NAME.despatchcloud.co.uk/ws/v1/wsorders/add_order_inventory/{OrderId}
Method: POST
 
Field Name  Required FormatNotes
stock_codeYesString 
quantityYesInteger 
nameNoString 
unit_priceNoString  
line_total_discountNoString 
optionsNoInteger 
notesNoString 
sales_channel_item_idNoString 

Example Request (POST):
CopyCopyCopyCopyCopyCopyCopyCopy{
  "inventory": {
    "stock_code": "Test5",
    "quantity": "5",
    "name": "Test Product 5",
    "unit_price": "5.00",
    "line_total_discount": "0.00",
    "options": "",
    "notes": "",
    "sales_channel_item_id": ""
  }
}

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