Back

Search

Search

Methods

Inventory

Orders

Stock /GetStockLevelByLocation

Response: GetStockLevelByLocationResponse



Use this call to retrieve report about "item stock level"

Parameters

NameTypeDescription
requestGetStockLevelByLocationRequest

HTTP Endpoint

Server /Stock / GetStockLevelByLocation

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Stock/GetStockLevelByLocation 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={
  "StockItemId": "3080d11c-b3a3-4ad4-9e00-59f6967c385d",
  "LocationId": "4dab1e5a-6ff9-4930-a289-6290f53d088d"
}

Response

This is an example response. Results may vary depending on your data.

{
  "StockLevel": {
    "Location": {
      "StockLocationId": "ef8f6d32-cca0-49dc-950c-0d384b1b3c20",
      "LocationName": "sample string 2",
      "IsFulfillmentCenter": true,
      "LocationTag": "sample string 4",
      "BinRack": "sample string 5",
      "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": "2019-11-28T09:46:00.6531668+00:00",
    "LastUpdateOperation": "sample string 10",
    "rowid": "7792c6ce-1a86-4aff-a53f-0bed8860ccc3",
    "PendingUpdate": true,
    "StockItemPurchasePrice": 13.1,
    "StockItemId": "ce970eb9-8b71-48ee-9d0c-1c57885998cb",
    "StockItemIntId": 15
  }
}