Back

Search

Search

Methods

Inventory

Orders

Inventory /GetInventoryItems

Response: PortionResult<InventoryItem>


Parameters

NameTypeDescription
viewInventoryView
stockLocationIdsList<Guid>
startIndexInt32
itemsCountInt32
preloadChildsBoolean

HTTP Endpoint

Server /Inventory / GetInventoryItems

Permissions

GlobalPermissions.Inventory.MyInventory.MyInventoryNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu1.linnworks.net//api/Inventory/GetInventoryItems 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": "185b0b32-bbbd-4327-a2ae-b71786e5502d",
  "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",
      "FilterLogic": 0,
      "Value": "sample string 1"
    },
    {
      "FilterName": 0,
      "DisplayName": "SKU / Title / Barcode",
      "FilterNameExact": [
        "sample string 1",
        "sample string 2"
      ],
      "Field": 2,
      "Condition": 0,
      "ConditionDisplayName": "Equals",
      "FilterLogic": 0,
      "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=[
  "ad75b40e-782e-4f33-83f5-f7db7172e207",
  "3be10a4a-eefc-4d90-bef4-817245dde098"
]&startIndex=1&itemsCount=1&preloadChilds=true

Response

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

{
  "Items": [
    {
      "Id": "3f0df707-1deb-4478-8856-3bce87d81ded",
      "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": "eee34a38-e71d-4d3e-b6da-a896f75e9491",
      "IsComposite": true,
      "IsArchived": true,
      "Image": "sample string 16",
      "CreatedDate": "2017-04-12T14:36:55.6660451+01:00",
      "ModifiedDate": "2017-04-12T14:36:55.6660451+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-04-12T14:36:55.6665463+01:00",
              "InventoryItemId": "4c1e20a6-ca50-4f0a-9b08-fc6e33a9c4f0",
              "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
    },
    {
    }
  ],
  "TotalItems": 1,
  "StartIndex": 2,
  "Token": "8f3844cc-63dd-4f60-9d6f-4d6492b9f1a1"
}