Back

Search

Search

Methods

Inventory

Orders

Stock /GetStockItemsFullByIds

Response: GetStockItemsFullByIdsResponse


Parameters

NameTypeDescription
requestGetStockItemsFullByIdsRequest

HTTP Endpoint

Server /Stock / GetStockItemsFullByIds

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Stock/GetStockItemsFullByIds 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": [
    "ad0b8148-d7a0-4588-804a-b437957e30a2",
    "2bc9577b-8c09-4378-97a4-8bbbf13ba47e"
  ],
  "DataRequirements": [
    0,
    0
  ]
}

Response

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

{
  "StockItemsFullExtended": [
    {
      "ItemChannelDescriptions": [
        {
          "pkRowId": "89f01355-f6f1-42db-a0ce-d5efdcad2f11",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "935ac2e7-0787-4e2c-8deb-07eaa0effdcf"
        },
        {
          "pkRowId": "89f01355-f6f1-42db-a0ce-d5efdcad2f11",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "935ac2e7-0787-4e2c-8deb-07eaa0effdcf"
        }
      ],
      "ItemExtendedProperties": [
        {
          "pkRowId": "5a294139-b8bf-4ad4-97b5-3578f9c7bb93",
          "fkStockItemId": "9d1b22a2-8f01-4160-9615-194e2e25095e",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        },
        {
          "pkRowId": "5a294139-b8bf-4ad4-97b5-3578f9c7bb93",
          "fkStockItemId": "9d1b22a2-8f01-4160-9615-194e2e25095e",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        }
      ],
      "ItemChannelTitles": [
        {
          "pkRowId": "17a87200-ec10-47d0-b54b-07c94d14b77a",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "b8d12538-dbd0-4164-83b0-43943e1140d3"
        },
        {
          "pkRowId": "17a87200-ec10-47d0-b54b-07c94d14b77a",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "b8d12538-dbd0-4164-83b0-43943e1140d3"
        }
      ],
      "ItemChannelPrices": [
        {
          "pkRowId": "a68ef82f-7387-49d2-91cc-e94d6d080baa",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "300445b4-94b8-4808-9ad3-a07c028ca6d6"
        },
        {
          "pkRowId": "a68ef82f-7387-49d2-91cc-e94d6d080baa",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "300445b4-94b8-4808-9ad3-a07c028ca6d6"
        }
      ],
      "Suppliers": [
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "c35ab757-c612-47fe-8011-2ae7de4b37f5",
          "Code": "sample string 4",
          "SupplierBarcode": "sample string 5",
          "LeadTime": 6,
          "PurchasePrice": 7.1,
          "MinPrice": 8.1,
          "MaxPrice": 9.1,
          "AveragePrice": 10.1,
          "AverageLeadTime": 11.1,
          "SupplierMinOrderQty": 12,
          "SupplierPackSize": 13,
          "SupplierCurrency": "sample string 14",
          "StockItemId": "8282f9e1-4874-40e1-8e73-5298cb6e7053"
        },
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "c35ab757-c612-47fe-8011-2ae7de4b37f5",
          "Code": "sample string 4",
          "SupplierBarcode": "sample string 5",
          "LeadTime": 6,
          "PurchasePrice": 7.1,
          "MinPrice": 8.1,
          "MaxPrice": 9.1,
          "AveragePrice": 10.1,
          "AverageLeadTime": 11.1,
          "SupplierMinOrderQty": 12,
          "SupplierPackSize": 13,
          "SupplierCurrency": "sample string 14",
          "StockItemId": "8282f9e1-4874-40e1-8e73-5298cb6e7053"
        }
      ],
      "StockLevels": [
        {
          "Location": {
            "StockLocationId": "a0981589-7870-4961-ae52-c91b28c540fe",
            "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-06-12T09:27:50.9228593+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "6bf40234-2f59-44ce-ba8e-f0c0005ee849",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "8af85421-c974-4ebc-9a38-6f1d8167e55a"
        },
        {
          "Location": {
            "StockLocationId": "a0981589-7870-4961-ae52-c91b28c540fe",
            "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-06-12T09:27:50.9228593+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "6bf40234-2f59-44ce-ba8e-f0c0005ee849",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "8af85421-c974-4ebc-9a38-6f1d8167e55a"
        }
      ],
      "Images": [
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "4269822a-f3ae-4701-a6f2-cd54409fa247",
          "IsMain": true,
          "SortOrder": 6,
          "StockItemId": "b30833ed-633e-4bbe-9408-528767470f48"
        },
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "4269822a-f3ae-4701-a6f2-cd54409fa247",
          "IsMain": true,
          "SortOrder": 6,
          "StockItemId": "b30833ed-633e-4bbe-9408-528767470f48"
        }
      ],
      "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": "912cc3c8-7743-4282-b800-8b4d2539934d",
      "PostalServiceName": "sample string 8",
      "CategoryId": "3bf759ee-26be-4fdf-8253-841fa854b48b",
      "CategoryName": "sample string 10",
      "PackageGroupId": "a7585726-0394-44a6-a31b-a92266a4ebea",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2019-06-12T09:27:50.9238602+01:00",
      "IsCompositeParent": true,
      "InventoryTrackingType": 18,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "7976c873-69d6-4606-a249-3e04f38603a6"
    },
    {
      "ItemChannelDescriptions": [
        {
          "pkRowId": "89f01355-f6f1-42db-a0ce-d5efdcad2f11",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "935ac2e7-0787-4e2c-8deb-07eaa0effdcf"
        },
        {
          "pkRowId": "89f01355-f6f1-42db-a0ce-d5efdcad2f11",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "935ac2e7-0787-4e2c-8deb-07eaa0effdcf"
        }
      ],
      "ItemExtendedProperties": [
        {
          "pkRowId": "5a294139-b8bf-4ad4-97b5-3578f9c7bb93",
          "fkStockItemId": "9d1b22a2-8f01-4160-9615-194e2e25095e",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        },
        {
          "pkRowId": "5a294139-b8bf-4ad4-97b5-3578f9c7bb93",
          "fkStockItemId": "9d1b22a2-8f01-4160-9615-194e2e25095e",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        }
      ],
      "ItemChannelTitles": [
        {
          "pkRowId": "17a87200-ec10-47d0-b54b-07c94d14b77a",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "b8d12538-dbd0-4164-83b0-43943e1140d3"
        },
        {
          "pkRowId": "17a87200-ec10-47d0-b54b-07c94d14b77a",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "b8d12538-dbd0-4164-83b0-43943e1140d3"
        }
      ],
      "ItemChannelPrices": [
        {
          "pkRowId": "a68ef82f-7387-49d2-91cc-e94d6d080baa",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "300445b4-94b8-4808-9ad3-a07c028ca6d6"
        },
        {
          "pkRowId": "a68ef82f-7387-49d2-91cc-e94d6d080baa",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "48b6698e-1b2b-4a8e-b359-7aa0e3da9658",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "300445b4-94b8-4808-9ad3-a07c028ca6d6"
        }
      ],
      "Suppliers": [
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "c35ab757-c612-47fe-8011-2ae7de4b37f5",
          "Code": "sample string 4",
          "SupplierBarcode": "sample string 5",
          "LeadTime": 6,
          "PurchasePrice": 7.1,
          "MinPrice": 8.1,
          "MaxPrice": 9.1,
          "AveragePrice": 10.1,
          "AverageLeadTime": 11.1,
          "SupplierMinOrderQty": 12,
          "SupplierPackSize": 13,
          "SupplierCurrency": "sample string 14",
          "StockItemId": "8282f9e1-4874-40e1-8e73-5298cb6e7053"
        },
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "c35ab757-c612-47fe-8011-2ae7de4b37f5",
          "Code": "sample string 4",
          "SupplierBarcode": "sample string 5",
          "LeadTime": 6,
          "PurchasePrice": 7.1,
          "MinPrice": 8.1,
          "MaxPrice": 9.1,
          "AveragePrice": 10.1,
          "AverageLeadTime": 11.1,
          "SupplierMinOrderQty": 12,
          "SupplierPackSize": 13,
          "SupplierCurrency": "sample string 14",
          "StockItemId": "8282f9e1-4874-40e1-8e73-5298cb6e7053"
        }
      ],
      "StockLevels": [
        {
          "Location": {
            "StockLocationId": "a0981589-7870-4961-ae52-c91b28c540fe",
            "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-06-12T09:27:50.9228593+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "6bf40234-2f59-44ce-ba8e-f0c0005ee849",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "8af85421-c974-4ebc-9a38-6f1d8167e55a"
        },
        {
          "Location": {
            "StockLocationId": "a0981589-7870-4961-ae52-c91b28c540fe",
            "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-06-12T09:27:50.9228593+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "6bf40234-2f59-44ce-ba8e-f0c0005ee849",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "8af85421-c974-4ebc-9a38-6f1d8167e55a"
        }
      ],
      "Images": [
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "4269822a-f3ae-4701-a6f2-cd54409fa247",
          "IsMain": true,
          "SortOrder": 6,
          "StockItemId": "b30833ed-633e-4bbe-9408-528767470f48"
        },
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "4269822a-f3ae-4701-a6f2-cd54409fa247",
          "IsMain": true,
          "SortOrder": 6,
          "StockItemId": "b30833ed-633e-4bbe-9408-528767470f48"
        }
      ],
      "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": "912cc3c8-7743-4282-b800-8b4d2539934d",
      "PostalServiceName": "sample string 8",
      "CategoryId": "3bf759ee-26be-4fdf-8253-841fa854b48b",
      "CategoryName": "sample string 10",
      "PackageGroupId": "a7585726-0394-44a6-a31b-a92266a4ebea",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2019-06-12T09:27:50.9238602+01:00",
      "IsCompositeParent": true,
      "InventoryTrackingType": 18,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "7976c873-69d6-4606-a249-3e04f38603a6"
    }
  ]
}