Back

Search

Search

Methods

Inventory

Orders

Inventory /GetInventoryItemByIdForLocation

Response: StockItemInv



Use this call to get all product details for a defined location

Parameters

NameTypeDescription
idGuidStock item Id
locationIdGuidLocation of inventory item

HTTP Endpoint

Server /Inventory / GetInventoryItemByIdForLocation

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu1.linnworks.net//api/Inventory/GetInventoryItemByIdForLocation 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

id=d1dbec80-04e4-4a64-a2c3-14c3145f7103&locationId=f209c1ae-8dd2-41fb-bbb1-cd2a90f501e7

Response

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

{
  "VariationGroupName": "sample string 1",
  "Quantity": 1,
  "InOrder": 2,
  "Due": 3,
  "MinimumLevel": 4,
  "Available": -1,
  "CreationDate": "2017-02-28T10:48:51.0172748+00:00",
  "IsCompositeParent": true,
  "ItemNumber": "sample string 5",
  "ItemTitle": "sample string 6",
  "BarcodeNumber": "sample string 7",
  "MetaData": "sample string 8",
  "PurchasePrice": 9.1,
  "RetailPrice": 1.1,
  "TaxRate": 10.1,
  "PostalServiceId": "585a6cc7-91b0-4ff9-a7f8-1cb2b4307744",
  "PostalServiceName": "sample string 12",
  "CategoryId": "53c571a4-eac5-49dc-b91f-95843d2c3ed1",
  "CategoryName": "sample string 14",
  "PackageGroupId": "2aa5f47a-1f96-4353-a932-158e94aa4a25",
  "PackageGroupName": "sample string 16",
  "Height": 17.1,
  "Width": 18.1,
  "Depth": 19.1,
  "Weight": 20.1,
  "StockItemId": "11a0653b-53c6-4cdd-be88-c55151824c2a"
}