Back

Search

Search

Methods

Inventory

Orders

Stock /GetStockItemsByIds

Response: GetStockItemsByIdsResponse


Parameters

NameTypeDescription
requestGetStockItemsByIdsRequest

HTTP Endpoint

Server /Stock / GetStockItemsByIds

Permissions

linnworks.core.permissions.Permissions.GlobalPermissions.Inventory.Stock.StockReadNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Stock/GetStockItemsByIds 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": [
    "2ae9608a-1003-47c0-8d4b-cccc2e651cef",
    "de53ff8a-4caa-4cd3-a385-e7b360fab7e5"
  ]
}

Response

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

{
  "Items": [
    {
      "ItemNumber": "sample string 1",
      "ItemTitle": "sample string 2",
      "BarcodeNumber": "sample string 3",
      "MetaData": "sample string 4",
      "isBatchedStockType": false,
      "PurchasePrice": 5.1,
      "RetailPrice": 1.1,
      "TaxRate": 6.1,
      "PostalServiceId": "c32a7b81-7e89-4af8-8393-2b7971401799",
      "PostalServiceName": "sample string 8",
      "CategoryId": "358e7775-11b9-4bee-b110-0b07e9d7879a",
      "CategoryName": "sample string 10",
      "PackageGroupId": "9d802566-700e-44c7-8f9b-0b0cf9f4185c",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2020-11-10T15:13:04.2756608+00:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "565e8ef5-0191-4b9a-b265-0f897cf5b286",
      "StockItemIntId": 21
    },
    {
      "ItemNumber": "sample string 1",
      "ItemTitle": "sample string 2",
      "BarcodeNumber": "sample string 3",
      "MetaData": "sample string 4",
      "isBatchedStockType": false,
      "PurchasePrice": 5.1,
      "RetailPrice": 1.1,
      "TaxRate": 6.1,
      "PostalServiceId": "c32a7b81-7e89-4af8-8393-2b7971401799",
      "PostalServiceName": "sample string 8",
      "CategoryId": "358e7775-11b9-4bee-b110-0b07e9d7879a",
      "CategoryName": "sample string 10",
      "PackageGroupId": "9d802566-700e-44c7-8f9b-0b0cf9f4185c",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2020-11-10T15:13:04.2756608+00:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "565e8ef5-0191-4b9a-b265-0f897cf5b286",
      "StockItemIntId": 21
    }
  ]
}