Back

Search

Search

Methods

Inventory

Orders

Stock /UpdateStockLevelsBulk

Allows 150 calls per minute

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

Permissions

GlobalPermissions.Inventory.Stock.StockWrite.ChangeStockLevelsNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Stock/UpdateStockLevelsBulk

Headers

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

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "Items": [
    {
      "SKU": "sample string 1",
      "StockItemId": "a3c1cc84-8ba6-405b-a9c7-871238949b11",
      "StockLocationName": "sample string 2",
      "StockLocationId": "448cb9e5-ffa9-4864-9f00-802d85ac049d",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}

Response

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": "882cab48-31f6-4bd5-8c7b-7bb27dbc8cb2",
      "StockLocationName": "sample string 2",
      "StockLocationId": "96ff5d71-f76d-4167-a509-cf1e699781bc",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}