Back

Search

Search

Methods

Inventory

Orders

Inventory /GetInventoryItemsChilds

Response: Dictionary<Guid,List>


Parameters

NameTypeDescription
viewInventoryView
stockLocationIdsList<Guid>
itemIdsList<Guid>

HTTP Endpoint

Server /Inventory / GetInventoryItemsChilds

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu1.linnworks.net//api/Inventory/GetInventoryItemsChilds HTTP/1.1
Host: eu1.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

view={
  "Id": "d7eb881e-7367-4af0-bc80-576cb7ecf5f0",
  "Name": "sample string 2",
  "Mode": 0,
  "Source": "sample string 3",
  "SubSource": "sample string 4",
  "CountryCode": "sample string 5",
  "CountryName": "sample string 6",
  "Listing": 0,
  "ShowOnlyChanged": true,
  "IncludeProducts": 0,
  "Filters": [
    {
      "FilterName": 0,
      "DisplayName": "SKU / Title / Barcode",
      "FilterNameExact": [
        "sample string 1",
        "sample string 2"
      ],
      "Field": 2,
      "Condition": 0,
      "ConditionDisplayName": "Equals",
      "Value": "sample string 1"
    },
    {
      "FilterName": 0,
      "DisplayName": "SKU / Title / Barcode",
      "FilterNameExact": [
        "sample string 1",
        "sample string 2"
      ],
      "Field": 2,
      "Condition": 0,
      "ConditionDisplayName": "Equals",
      "Value": "sample string 1"
    }
  ],
  "Columns": [
    {
      "ColumnName": 0,
      "DisplayName": "SKU",
      "Group": 0,
      "Field": 2,
      "SortDirection": 0,
      "Width": 1.1,
      "IsEditable": false
    },
    {
      "ColumnName": 0,
      "DisplayName": "SKU",
      "Group": 0,
      "Field": 2,
      "SortDirection": 0,
      "Width": 1.1,
      "IsEditable": false
    }
  ],
  "Channels": [
    {
      "Source": "sample string 1",
      "SubSource": "sample string 2",
      "Width": 3.1
    },
    {
      "Source": "sample string 1",
      "SubSource": "sample string 2",
      "Width": 3.1
    }
  ]
}&stockLocationIds=[
  "12b4e940-d318-4918-9483-0c3826b13fee",
  "1fb63452-898a-4c41-8da5-4efd45d2c55b"
]&itemIds=[
  "61e27e6c-1259-47da-b61f-2a3a4f3c9967",
  "3aee88a3-e209-4414-b272-b4081e417ad9"
]

Response

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

{
  "226c8fea-d9e0-4a7e-9479-416afeb52253": [
    {
      "Id": "5f8e4300-f5b8-483b-9e43-22151cc0e449",
      "SKU": "sample string 2",
      "Title": "sample string 3",
      "RetailPrice": 1.1,
      "PurchasePrice": 1.1,
      "Barcode": "sample string 4",
      "Available": 5,
      "MinimumLevel": 6,
      "InOrder": 7,
      "StockLevel": 8,
      "StockValue": 9.1,
      "Due": 10,
      "Tracked": true,
      "BinRack": "sample string 12",
      "Category": "ad50daa7-44d7-4130-bbd8-ca561dddd00c",
      "IsComposite": true,
      "IsArchived": true,
      "Image": "sample string 16",
      "CreatedDate": "2017-06-29T15:47:27.9161032+01:00",
      "ModifiedDate": "2017-06-29T15:47:27.9161032+01:00",
      "BatchType": 64,
      "SerialNumberScanRequired": true,
      "BatchNumberScanRequired": true,
      "HasBatches": true,
      "VariationGroupName": "sample string 21",
      "Products": [
        {
        },
        {
        }
      ],
      "Channels": {
        "sample string 1": {
          "LinksCount": 1,
          "Templates": [
            {
              "IsErrorMsg": true,
              "Status": "sample string 2",
              "CreatedDate": "2017-06-29T15:47:27.9161032+01:00",
              "InventoryItemId": "88b5c1b6-622d-4619-9967-2800701985e6",
              "Source": "sample string 1",
              "SubSource": "sample string 2",
              "CombinedSource": "Sample string 1:sample string 2"
            },
            {
            }
          ],
          "Changes": [
            0,
            0
          ],
          "ContainsChanges": true
        },
        "sample string 2": {
        }
      },
      "TotalChangedProducts": 2,
      "ContainsChanges": true
    },
    {
    }
  ],
  "1b382fa5-ac6b-42ca-ab97-51328390d4f6": [
    {
    },
    {
    }
  ]
}