Back

Search

Search

Methods

Inventory

Orders

Stock /GetStockLevel_Batch

Response: List<GetStockLevel_BatchResponse>



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

Parameters

NameTypeDescription
requestGetStockLevel_BatchRequestMethod request parameters

HTTP Endpoint

Server /Stock / GetStockLevel_Batch

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Stock/GetStockLevel_Batch 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={
  "StockItemIds": [
    "118d7ccd-447d-4270-bad5-af3da534f379",
    "59607502-bac3-41d1-bd47-d2d16a5e5638"
  ]
}

Response

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

[
  {
    "pkStockItemId": "6b0ccbd4-be21-4360-9d11-0917af77532e",
    "StockItemLevels": [
      {
        "Location": {
          "StockLocationId": "855739d2-e8c4-4cea-853e-3938c6f40b42",
          "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-10-09T15:11:44.1202155+01:00",
        "LastUpdateOperation": "sample string 10",
        "rowid": "b70a2315-935e-4fd5-b713-c7c459892cc5",
        "PendingUpdate": true,
        "StockItemPurchasePrice": 13.1,
        "StockItemId": "d4c19396-05c1-45ed-8a8a-6134f4dfc93a"
      },
      {
        "Location": {
          "StockLocationId": "855739d2-e8c4-4cea-853e-3938c6f40b42",
          "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-10-09T15:11:44.1202155+01:00",
        "LastUpdateOperation": "sample string 10",
        "rowid": "b70a2315-935e-4fd5-b713-c7c459892cc5",
        "PendingUpdate": true,
        "StockItemPurchasePrice": 13.1,
        "StockItemId": "d4c19396-05c1-45ed-8a8a-6134f4dfc93a"
      }
    ]
  },
  {
    "pkStockItemId": "6b0ccbd4-be21-4360-9d11-0917af77532e",
    "StockItemLevels": [
      {
        "Location": {
          "StockLocationId": "855739d2-e8c4-4cea-853e-3938c6f40b42",
          "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-10-09T15:11:44.1202155+01:00",
        "LastUpdateOperation": "sample string 10",
        "rowid": "b70a2315-935e-4fd5-b713-c7c459892cc5",
        "PendingUpdate": true,
        "StockItemPurchasePrice": 13.1,
        "StockItemId": "d4c19396-05c1-45ed-8a8a-6134f4dfc93a"
      },
      {
        "Location": {
          "StockLocationId": "855739d2-e8c4-4cea-853e-3938c6f40b42",
          "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-10-09T15:11:44.1202155+01:00",
        "LastUpdateOperation": "sample string 10",
        "rowid": "b70a2315-935e-4fd5-b713-c7c459892cc5",
        "PendingUpdate": true,
        "StockItemPurchasePrice": 13.1,
        "StockItemId": "d4c19396-05c1-45ed-8a8a-6134f4dfc93a"
      }
    ]
  }
]