Allows the change of non batched / composite stock levels in build. Accepts either StockItemId or SKU and Stock location name or id
Name | Type | Description |
---|---|---|
request | UpdateStockLevelsBulkRequest |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Stock/UpdateStockLevelsBulk
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
request={
"Items": [
{
"SKU": "sample string 1",
"StockItemId": "f848068a-9882-4145-b7f6-bee2b16266fe",
"StockLocationName": "sample string 2",
"StockLocationId": "b555ad2b-e7b2-46b5-8779-6659987d4303",
"StockLevel": 1,
"StockValue": 1.1,
"UnitCost": 1.1,
"Binrack": "sample string 3",
"MinimumLevel": 1,
"RowIndex": 4
}
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Items": [
{
"Errors": [
"sample string 1"
],
"SKU": "sample string 1",
"StockItemId": "99f1dd30-b86d-4e5e-a4ed-1c538e142dcf",
"StockLocationName": "sample string 2",
"StockLocationId": "3fe55ea6-10f9-45dd-b469-3e09ea08035a",
"StockLevel": 1,
"StockValue": 1.1,
"UnitCost": 1.1,
"Binrack": "sample string 3",
"MinimumLevel": 1,
"RowIndex": 4
}
]
}