Back

Search

Search

Methods

Inventory

Orders

Stock /GetStockItemsByIds

Response: GetStockItemsByIdsResponse


Parameters

NameTypeDescription
requestGetStockItemsByIdsRequest

HTTP Endpoint

Server /Stock / GetStockItemsByIds

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": [
    "35ecf011-e293-4f67-8775-1b923e216939",
    "ce88ce15-65f8-4c2a-9c56-601990c4cf70"
  ]
}

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": "314261b3-c3ee-407c-b198-60904ca729d8",
      "PostalServiceName": "sample string 8",
      "CategoryId": "12de6e72-2d71-4808-bdb8-8d129a183d60",
      "CategoryName": "sample string 10",
      "PackageGroupId": "2ac9bf44-9bfc-4b16-a74d-5ba9a07a6741",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2020-05-20T15:01:59.5464701+01:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "f7c9ecc5-f236-4e92-8601-7e0bec652550",
      "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": "314261b3-c3ee-407c-b198-60904ca729d8",
      "PostalServiceName": "sample string 8",
      "CategoryId": "12de6e72-2d71-4808-bdb8-8d129a183d60",
      "CategoryName": "sample string 10",
      "PackageGroupId": "2ac9bf44-9bfc-4b16-a74d-5ba9a07a6741",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2020-05-20T15:01:59.5464701+01:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "f7c9ecc5-f236-4e92-8601-7e0bec652550",
      "StockItemIntId": 21
    }
  ]
}