Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Stock /GetStockItemsByKey

Allows 250 calls per minute

Response: List<StockItem>



Returns a list of Stock Items for the provided key and location

Parameters

NameTypeDescription
stockIdentifierSearch_Stock_ByKeyMade up of a string key, used to search Item Number, Barcode Number, Supplier Code and Supplier Basrcode Fields as well as Stock Location.

Permissions

GlobalPermissions.Inventory.Stock.StockReadNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Stock/GetStockItemsByKey

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

stockIdentifier={
  "Key": "sample string 1",
  "LocationId": "1d8b0a9b-8729-4d76-9a6a-7d3b7480ccd6"
}

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "ItemDescription": "sample string 1",
    "Quantity": 2,
    "InOrder": 3,
    "Due": 4,
    "MinimumLevel": 5,
    "Available": -1,
    "IsCompositeParent": true,
    "ItemNumber": "sample string 6",
    "ItemTitle": "sample string 7",
    "BarcodeNumber": "sample string 8",
    "MetaData": "sample string 9",
    "isBatchedStockType": false,
    "PurchasePrice": 10.1,
    "RetailPrice": 1.1,
    "TaxRate": 11.1,
    "PostalServiceId": "fdb8d36d-ba01-486e-8834-fac3c23498c7",
    "PostalServiceName": "sample string 13",
    "CategoryId": "2dd4da95-02d6-4c58-b4cd-737b5a650821",
    "CategoryName": "sample string 15",
    "PackageGroupId": "207d80be-605b-4285-a539-9d453efd90be",
    "PackageGroupName": "sample string 17",
    "Height": 18.1,
    "Width": 19.1,
    "Depth": 20.1,
    "Weight": 21.1,
    "CreationDate": "2021-07-29T09:24:42.7362219+01:00",
    "InventoryTrackingType": 22,
    "BatchNumberScanRequired": true,
    "SerialNumberScanRequired": true,
    "StockItemId": "39276124-0951-4e38-b589-0c05add78ef5",
    "StockItemIntId": 26
  }
]