Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /SetStockLevel

Allows 250 calls per minute

Response: List<StockItemLevel>



Set the stock level of a list of stock items identified by its SKU to the value provided

Parameters

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

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

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": "2aa13121-4871-46f1-a89c-81372b939ef4",
    "Level": 3
  }
]&changeSource=sample string 1

Response

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

[
  {
    "Location": {
      "StockLocationId": "ae4953b9-b3e7-4606-a544-cc91a166e35c",
      "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": "2023-01-10T13:49:55.1044514+00:00",
    "LastUpdateOperation": "sample string 10",
    "rowid": "a0a25c52-67a3-456d-b1d2-9616cc9886f9",
    "PendingUpdate": true,
    "StockItemPurchasePrice": 13.1,
    "StockItemId": "d40ea6c6-b937-40b0-9fcf-ea2108ff3737",
    "StockItemIntId": 15
  }
]