Back

Search

Search

Methods

Inventory

Orders

Stock /UpdateStockLevelsBulk

Response: UpdateStockLevelsBulkResponse



Allows the change of non batched / composite stock levels in build. Accepts either StockItemId or SKU and Stock location name or id

Parameters

NameTypeDescription
requestUpdateStockLevelsBulkRequest

HTTP Endpoint

Server /Stock / UpdateStockLevelsBulk

Permissions

GlobalPermissions.Inventory.Stock.StockWrite.ChangeStockLevelsNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Stock/UpdateStockLevelsBulk HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

request={
  "Items": [
    {
      "SKU": "sample string 1",
      "StockItemId": "7c8471f8-16d0-4bc5-87a6-b1f8fe512d1d",
      "StockLocationName": "sample string 2",
      "StockLocationId": "6b8046a0-19b3-4079-914c-47f1e1802c4e",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    },
    {
      "SKU": "sample string 1",
      "StockItemId": "7c8471f8-16d0-4bc5-87a6-b1f8fe512d1d",
      "StockLocationName": "sample string 2",
      "StockLocationId": "6b8046a0-19b3-4079-914c-47f1e1802c4e",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}

Response

This is an example response. Results may vary depending on your data.

{
  "Items": [
    {
      "Errors": [
        "sample string 1",
        "sample string 2"
      ],
      "SKU": "sample string 1",
      "StockItemId": "a6430b18-85f4-4ac1-b7b7-9f20cd3f4e87",
      "StockLocationName": "sample string 2",
      "StockLocationId": "88a81514-3e15-4b3f-9ae6-0211e4f5644a",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    },
    {
      "Errors": [
        "sample string 1",
        "sample string 2"
      ],
      "SKU": "sample string 1",
      "StockItemId": "a6430b18-85f4-4ac1-b7b7-9f20cd3f4e87",
      "StockLocationName": "sample string 2",
      "StockLocationId": "88a81514-3e15-4b3f-9ae6-0211e4f5644a",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}