Back

Search

Search

Methods

Inventory

OrderPrintStatus
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

GET | 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": "2c4762d0-362b-4487-a0a4-8c80ac0fa1a6",
      "StockLocationName": "sample string 2",
      "StockLocationId": "9e0d1262-ad6c-4350-99dc-a1066f94669c",
      "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": "b770340d-f7e0-4d2f-9a20-dd5152c7ea10",
      "StockLocationName": "sample string 2",
      "StockLocationId": "6604cb2b-4734-421b-b768-e54e855f7aac",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}