Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /UpdateStockLevelsBySKU

Allows 150 calls per minute

Response: List<StockItemLevel>



Change the stock level of a list of stock items by the provided value

Parameters

NameTypeDescription
stockLevelsList<StockLevelUpdate>The new stock items levels to adjust
changeSourceString

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/UpdateStockLevelsBySKU

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.

stockLevels=[
  {
    "SKU": "sample string 1",
    "LocationId": "693766e4-bd56-4ff0-bcb4-52796c8470dd",
    "Level": 3
  }
]&changeSource=sample string 1

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "Location": {
      "StockLocationId": "f1c34525-e5b5-4d44-ab12-e21cfa46a813",
      "StockLocationIntId": 2,
      "LocationName": "sample string 3",
      "IsFulfillmentCenter": true,
      "LocationTag": "sample string 5",
      "BinRack": "sample string 6",
      "IsWarehouseManaged": true
    },
    "StockLevel": 1,
    "StockValue": 2.1,
    "MinimumLevel": 3,
    "InOrderBook": 4,
    "Due": 5,
    "JIT": true,
    "InOrders": 4,
    "Available": -3,
    "UnitCost": 2.1,
    "SKU": "sample string 7",
    "AutoAdjust": true,
    "LastUpdateDate": "2022-03-09T13:04:11.9924127+00:00",
    "LastUpdateOperation": "sample string 10",
    "rowid": "2690308d-0c5f-4f69-becf-4eccc50c13e2",
    "PendingUpdate": true,
    "StockItemPurchasePrice": 13.1,
    "StockItemId": "a8d87141-ae82-4c66-bfd7-8c9246760aa9",
    "StockItemIntId": 15
  }
]