Back

Search

Search

Methods

Inventory

Orders

Stock /GetStockItemsByIds

Allows 150 calls per minute

Response: GetStockItemsByIdsResponse


Parameters

NameTypeDescription
requestGetStockItemsByIdsRequest

Permissions

GlobalPermissions.Inventory.Stock.StockReadNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Stock/GetStockItemsByIds

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "StockItemIds": [
    "c07f0cc2-0cab-4659-8f1a-22a22d43a223"
  ]
}

Response

This is an example of the response JSON. Results will 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": "e18cbf4c-6b17-4ab1-b136-f4ec0526efc1",
      "PostalServiceName": "sample string 8",
      "CategoryId": "5250e11d-f946-43d9-954a-d9c9a98c2654",
      "CategoryName": "sample string 10",
      "PackageGroupId": "e609cd70-377d-410c-b435-15ec3d9fee3c",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2021-05-05T15:35:23.9788488+01:00",
      "InventoryTrackingType": 17,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "5d7f4265-b11a-47b2-bdb3-1ca9e2fe9d32",
      "StockItemIntId": 21
    }
  ]
}