Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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": "6a525c64-88ea-46b5-ac09-4522decd3bfa",
      "StockLocationName": "sample string 2",
      "StockLocationId": "9d3c5d7d-7fbc-4504-8049-c5bb4fbd7683",
      "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": "2506c5d4-f8cc-44bf-9bcd-1959cb9cc4d3",
      "StockLocationName": "sample string 2",
      "StockLocationId": "c72f9fd4-e40b-4911-bdea-2f587072a26e",
      "StockLevel": 1,
      "StockValue": 1.1,
      "UnitCost": 1.1,
      "Binrack": "sample string 3",
      "MinimumLevel": 1,
      "RowIndex": 4
    }
  ]
}