Update Order Inventory

By specifying an Order ID, you can update the inventory attached to an order.

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

Example Request (POST):
CopyCopyCopyCopyCopyCopyCopyCopyCopyCopy{
  "inventory": {
    "id": 1234,
    "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:
CopyCopyCopyCopyCopyCopyCopyCopyCopyCopy{
  "status": "SUCCESS"
}