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
Example Request (POST):
Example Response:
Method: POST
| Field Name | Required | Format | Notes |
| id | Yes | Integer | |
| stock_code | Yes | String | |
| quantity | Yes | Integer | |
| name | No | String | |
| unit_price | No | String | |
| line_total_discount | No | String | |
| options | No | Integer | |
| notes | No | String | |
| sales_channel_item_id | No | String |
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" }