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": "5f3f4ede-376a-4b6d-83b4-b21f77f46ad1",
      "StockLocationName": "sample string 2",
      "StockLocationId": "97961860-108b-49e9-b548-0dd957a8494d",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    },
    {
      "SKU": "sample string 1",
      "StockItemId": "5f3f4ede-376a-4b6d-83b4-b21f77f46ad1",
      "StockLocationName": "sample string 2",
      "StockLocationId": "97961860-108b-49e9-b548-0dd957a8494d",
      "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": "84503e2a-72bd-460c-b08e-d3b7680550ec",
      "StockLocationName": "sample string 2",
      "StockLocationId": "cfb25961-6fef-4e3d-9e5b-0d236ae5540f",
      "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": "84503e2a-72bd-460c-b08e-d3b7680550ec",
      "StockLocationName": "sample string 2",
      "StockLocationId": "cfb25961-6fef-4e3d-9e5b-0d236ae5540f",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}