Back

Search

Search

Methods

Inventory

Orders

Stock /UpdateStockLevelsBulk

Response: UpdateStockLevelsBulkResponse


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": "43979a47-6ed9-44ee-83dd-d9ba1a6cfb08",
      "StockLocationName": "sample string 2",
      "StockLocationId": "4c430a19-2a74-48c1-96b5-0dacfb546bb4",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    },
    {
      "SKU": "sample string 1",
      "StockItemId": "43979a47-6ed9-44ee-83dd-d9ba1a6cfb08",
      "StockLocationName": "sample string 2",
      "StockLocationId": "4c430a19-2a74-48c1-96b5-0dacfb546bb4",
      "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": "c59ab54d-34c9-400a-947c-74fddd812a54",
      "StockLocationName": "sample string 2",
      "StockLocationId": "00b36f3d-5346-4122-bb92-649578a0def3",
      "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": "c59ab54d-34c9-400a-947c-74fddd812a54",
      "StockLocationName": "sample string 2",
      "StockLocationId": "00b36f3d-5346-4122-bb92-649578a0def3",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}