Back

Search

Search

Methods

Inventory

Orders

Inventory /GetInventoryItemsCompositionByIds

Response: GetInventoryItemsCompositionByIdsResponse


Parameters

NameTypeDescription
requestGetInventoryItemsCompositionByIdsRequest

HTTP Endpoint

Server /Inventory / GetInventoryItemsCompositionByIds

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/GetInventoryItemsCompositionByIds 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={
  "InventoryItemIds": [
    "247e9738-c415-4001-b6e1-e12eadc39d0f",
    "1d0e9932-07c9-423c-a517-2f3a0c705a9a"
  ]
}

Response

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

{
  "InventoryItemsCompositionByIds": {
    "36335d31-a2e0-4b28-8443-ae66040acbcf": [
      {
        "LinkedStockItemId": "e2e065bb-dd60-4910-9408-dbf08b933785",
        "ItemTitle": "sample string 2",
        "SKU": "sample string 3",
        "Quantity": 4,
        "PurchasePrice": 5.1,
        "InventoryTrackingType": 64,
        "DimHeight": 7.1,
        "DimWidth": 8.1,
        "DimDepth": 9.1,
        "StockItemId": "318ffa9b-18b2-4b1c-9703-d7d735a51341",
        "StockItemIntId": 2
      },
      {
        "LinkedStockItemId": "e2e065bb-dd60-4910-9408-dbf08b933785",
        "ItemTitle": "sample string 2",
        "SKU": "sample string 3",
        "Quantity": 4,
        "PurchasePrice": 5.1,
        "InventoryTrackingType": 64,
        "DimHeight": 7.1,
        "DimWidth": 8.1,
        "DimDepth": 9.1,
        "StockItemId": "318ffa9b-18b2-4b1c-9703-d7d735a51341",
        "StockItemIntId": 2
      }
    ],
    "9d7cd8bc-c4a4-4ca6-a4e5-18edc54add96": [
      {
        "LinkedStockItemId": "e2e065bb-dd60-4910-9408-dbf08b933785",
        "ItemTitle": "sample string 2",
        "SKU": "sample string 3",
        "Quantity": 4,
        "PurchasePrice": 5.1,
        "InventoryTrackingType": 64,
        "DimHeight": 7.1,
        "DimWidth": 8.1,
        "DimDepth": 9.1,
        "StockItemId": "318ffa9b-18b2-4b1c-9703-d7d735a51341",
        "StockItemIntId": 2
      },
      {
        "LinkedStockItemId": "e2e065bb-dd60-4910-9408-dbf08b933785",
        "ItemTitle": "sample string 2",
        "SKU": "sample string 3",
        "Quantity": 4,
        "PurchasePrice": 5.1,
        "InventoryTrackingType": 64,
        "DimHeight": 7.1,
        "DimWidth": 8.1,
        "DimDepth": 9.1,
        "StockItemId": "318ffa9b-18b2-4b1c-9703-d7d735a51341",
        "StockItemIntId": 2
      }
    ]
  }
}