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": "3b7fc93a-ebe1-4351-97e2-eb3941e6fc24",
      "StockLocationName": "sample string 2",
      "StockLocationId": "02c5502f-a2e9-42a5-8f93-7f275d475bd2",
      "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": "c33682c0-3cdc-4c21-9ba0-5dc69adae0c4",
      "StockLocationName": "sample string 2",
      "StockLocationId": "69e81d7d-c284-4cde-a9c4-899201563493",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}