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": [
    "7b09db36-5969-4230-83c8-be7d57806389",
    "560194ff-d24c-45d5-ac6e-223ad42668eb"
  ]
}

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": "65e4ab76-6e3a-4f0b-97a1-581d625f2b54",
      "PostalServiceName": "sample string 8",
      "CategoryId": "3909104c-c62b-44a2-a057-e85a46f9b5d7",
      "CategoryName": "sample string 10",
      "PackageGroupId": "b715a39b-f038-4a21-8aa3-d169a0f809dd",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2020-03-03T09:28:27.1941324+00:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "c4cec0e0-a90a-40a1-8b7b-fb158f9b4973",
      "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": "65e4ab76-6e3a-4f0b-97a1-581d625f2b54",
      "PostalServiceName": "sample string 8",
      "CategoryId": "3909104c-c62b-44a2-a057-e85a46f9b5d7",
      "CategoryName": "sample string 10",
      "PackageGroupId": "b715a39b-f038-4a21-8aa3-d169a0f809dd",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2020-03-03T09:28:27.1941324+00:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "c4cec0e0-a90a-40a1-8b7b-fb158f9b4973",
      "StockItemIntId": 21
    }
  ]
}