Back

Search

Search

Methods

Inventory

Orders

Stock /UpdateStockLevelsBulk

Response: UpdateStockLevelsBulkResponse


Parameters

NameTypeDescription
requestUpdateStockLevelsBulkRequest

HTTP Endpoint

Server /Stock / UpdateStockLevelsBulk

Permissions

linnworks.core.permissions.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": "98d78f45-a417-4270-aba0-d736d86ac327",
      "StockLocationName": "sample string 2",
      "StockLocationId": "57e0053f-dc54-4a3c-adca-93feb99280da",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    },
    {
      "SKU": "sample string 1",
      "StockItemId": "98d78f45-a417-4270-aba0-d736d86ac327",
      "StockLocationName": "sample string 2",
      "StockLocationId": "57e0053f-dc54-4a3c-adca-93feb99280da",
      "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": "8949cc9b-fbbc-498c-9aea-1ca0ad4443d6",
      "StockLocationName": "sample string 2",
      "StockLocationId": "9871ad30-38a9-40d0-a038-06937c430f77",
      "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": "8949cc9b-fbbc-498c-9aea-1ca0ad4443d6",
      "StockLocationName": "sample string 2",
      "StockLocationId": "9871ad30-38a9-40d0-a038-06937c430f77",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}