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": [
    "d28405ec-112b-4511-9e88-1180cfc15cc2",
    "a8c71d07-8ed4-4f95-8553-f697f3bb1984"
  ],
  "DataRequirements": [
    0,
    0
  ]
}

Response

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

{
  "StockItemsFullExtended": [
    {
      "ItemChannelDescriptions": [
        {
          "pkRowId": "d436f031-5803-4ec8-86ad-f335b6a5dc61",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "7c88c8a4-81cb-43fb-9d22-5e77c5d24343"
        },
        {
          "pkRowId": "d436f031-5803-4ec8-86ad-f335b6a5dc61",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "7c88c8a4-81cb-43fb-9d22-5e77c5d24343"
        }
      ],
      "ItemExtendedProperties": [
        {
          "pkRowId": "3b1ff5b2-8b2f-4eea-aad7-100a4e9be0e4",
          "fkStockItemId": "6947105b-e682-42ab-9460-d05a958a57d2",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        },
        {
          "pkRowId": "3b1ff5b2-8b2f-4eea-aad7-100a4e9be0e4",
          "fkStockItemId": "6947105b-e682-42ab-9460-d05a958a57d2",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        }
      ],
      "ItemChannelTitles": [
        {
          "pkRowId": "626fc304-f27e-47ab-b6e6-143581a4c487",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "eebcf4bb-a183-4b71-bc10-590464449e99"
        },
        {
          "pkRowId": "626fc304-f27e-47ab-b6e6-143581a4c487",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "eebcf4bb-a183-4b71-bc10-590464449e99"
        }
      ],
      "ItemChannelPrices": [
        {
          "pkRowId": "bf433004-e2c1-4879-8cd6-85981095187f",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "8b58ea87-78f6-47af-8658-b5c53e00c0b3"
        },
        {
          "pkRowId": "bf433004-e2c1-4879-8cd6-85981095187f",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "8b58ea87-78f6-47af-8658-b5c53e00c0b3"
        }
      ],
      "Suppliers": [
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "232144e3-cde0-49d5-88d2-3fb29ff2a4a8",
          "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": "4799b104-781c-4e82-bde5-f21db59b7139"
        },
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "232144e3-cde0-49d5-88d2-3fb29ff2a4a8",
          "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": "4799b104-781c-4e82-bde5-f21db59b7139"
        }
      ],
      "StockLevels": [
        {
          "Location": {
            "StockLocationId": "85daacbc-65a7-4d01-9a62-bf65e98e9864",
            "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-07-23T15:31:55.0004848+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "5ecff335-9ddd-48a1-8484-ade5cdfaa72c",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "a7355b58-7002-4e35-8b68-bb8bf240f6f5"
        },
        {
          "Location": {
            "StockLocationId": "85daacbc-65a7-4d01-9a62-bf65e98e9864",
            "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-07-23T15:31:55.0004848+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "5ecff335-9ddd-48a1-8484-ade5cdfaa72c",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "a7355b58-7002-4e35-8b68-bb8bf240f6f5"
        }
      ],
      "Images": [
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "22ee0bfd-5e7a-468f-aebc-9e47a063a83d",
          "IsMain": true,
          "SortOrder": 6,
          "ChecksumValue": "sample string 7",
          "RawChecksum": "sample string 8",
          "StockItemId": "324fd792-bf5e-460d-8a63-cfb6bc72d663"
        },
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "22ee0bfd-5e7a-468f-aebc-9e47a063a83d",
          "IsMain": true,
          "SortOrder": 6,
          "ChecksumValue": "sample string 7",
          "RawChecksum": "sample string 8",
          "StockItemId": "324fd792-bf5e-460d-8a63-cfb6bc72d663"
        }
      ],
      "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": "662a0674-cce8-4c40-bc2a-ab08b5e64506",
      "PostalServiceName": "sample string 8",
      "CategoryId": "81160d8d-bc8f-4146-bbb9-3af31dba2f81",
      "CategoryName": "sample string 10",
      "PackageGroupId": "eb24755b-492f-4de7-a9bb-fc82777d40ce",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2019-07-23T15:31:55.0014855+01:00",
      "IsCompositeParent": true,
      "InventoryTrackingType": 18,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "d1013b02-cc80-426e-ab00-5c8d523e16b1"
    },
    {
      "ItemChannelDescriptions": [
        {
          "pkRowId": "d436f031-5803-4ec8-86ad-f335b6a5dc61",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "7c88c8a4-81cb-43fb-9d22-5e77c5d24343"
        },
        {
          "pkRowId": "d436f031-5803-4ec8-86ad-f335b6a5dc61",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Description": "sample string 4",
          "StockItemId": "7c88c8a4-81cb-43fb-9d22-5e77c5d24343"
        }
      ],
      "ItemExtendedProperties": [
        {
          "pkRowId": "3b1ff5b2-8b2f-4eea-aad7-100a4e9be0e4",
          "fkStockItemId": "6947105b-e682-42ab-9460-d05a958a57d2",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        },
        {
          "pkRowId": "3b1ff5b2-8b2f-4eea-aad7-100a4e9be0e4",
          "fkStockItemId": "6947105b-e682-42ab-9460-d05a958a57d2",
          "ProperyName": "sample string 3",
          "PropertyValue": "sample string 4",
          "PropertyType": "sample string 5"
        }
      ],
      "ItemChannelTitles": [
        {
          "pkRowId": "626fc304-f27e-47ab-b6e6-143581a4c487",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "eebcf4bb-a183-4b71-bc10-590464449e99"
        },
        {
          "pkRowId": "626fc304-f27e-47ab-b6e6-143581a4c487",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Title": "sample string 4",
          "StockItemId": "eebcf4bb-a183-4b71-bc10-590464449e99"
        }
      ],
      "ItemChannelPrices": [
        {
          "pkRowId": "bf433004-e2c1-4879-8cd6-85981095187f",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "8b58ea87-78f6-47af-8658-b5c53e00c0b3"
        },
        {
          "pkRowId": "bf433004-e2c1-4879-8cd6-85981095187f",
          "Source": "sample string 2",
          "SubSource": "sample string 3",
          "Price": 4.1,
          "UpdateStatus": 0,
          "Tag": "sample string 5",
          "Rules": [
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            },
            {
              "pkRowId": 1,
              "fkStockPricingId": "0a4ffaa0-9838-462d-b492-8b2e8a779e9f",
              "Type": "sample string 2",
              "LowerBound": 3,
              "Value": 4.1
            }
          ],
          "StockItemId": "8b58ea87-78f6-47af-8658-b5c53e00c0b3"
        }
      ],
      "Suppliers": [
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "232144e3-cde0-49d5-88d2-3fb29ff2a4a8",
          "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": "4799b104-781c-4e82-bde5-f21db59b7139"
        },
        {
          "IsDefault": true,
          "Supplier": "sample string 2",
          "SupplierID": "232144e3-cde0-49d5-88d2-3fb29ff2a4a8",
          "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": "4799b104-781c-4e82-bde5-f21db59b7139"
        }
      ],
      "StockLevels": [
        {
          "Location": {
            "StockLocationId": "85daacbc-65a7-4d01-9a62-bf65e98e9864",
            "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-07-23T15:31:55.0004848+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "5ecff335-9ddd-48a1-8484-ade5cdfaa72c",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "a7355b58-7002-4e35-8b68-bb8bf240f6f5"
        },
        {
          "Location": {
            "StockLocationId": "85daacbc-65a7-4d01-9a62-bf65e98e9864",
            "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-07-23T15:31:55.0004848+01:00",
          "LastUpdateOperation": "sample string 10",
          "rowid": "5ecff335-9ddd-48a1-8484-ade5cdfaa72c",
          "PendingUpdate": true,
          "StockItemPurchasePrice": 13.1,
          "StockItemId": "a7355b58-7002-4e35-8b68-bb8bf240f6f5"
        }
      ],
      "Images": [
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "22ee0bfd-5e7a-468f-aebc-9e47a063a83d",
          "IsMain": true,
          "SortOrder": 6,
          "ChecksumValue": "sample string 7",
          "RawChecksum": "sample string 8",
          "StockItemId": "324fd792-bf5e-460d-8a63-cfb6bc72d663"
        },
        {
          "Source": "sample string 1",
          "FullSource": "sample string 2",
          "CheckSumValue": "sample string 3",
          "pkRowId": "22ee0bfd-5e7a-468f-aebc-9e47a063a83d",
          "IsMain": true,
          "SortOrder": 6,
          "ChecksumValue": "sample string 7",
          "RawChecksum": "sample string 8",
          "StockItemId": "324fd792-bf5e-460d-8a63-cfb6bc72d663"
        }
      ],
      "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": "662a0674-cce8-4c40-bc2a-ab08b5e64506",
      "PostalServiceName": "sample string 8",
      "CategoryId": "81160d8d-bc8f-4146-bbb9-3af31dba2f81",
      "CategoryName": "sample string 10",
      "PackageGroupId": "eb24755b-492f-4de7-a9bb-fc82777d40ce",
      "PackageGroupName": "sample string 12",
      "Height": 13.1,
      "Width": 14.1,
      "Depth": 15.1,
      "Weight": 16.1,
      "CreationDate": "2019-07-23T15:31:55.0014855+01:00",
      "IsCompositeParent": true,
      "InventoryTrackingType": 18,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "d1013b02-cc80-426e-ab00-5c8d523e16b1"
    }
  ]
}