Back

Search

Search

Methods

Inventory

Orders

Stock /GetItemChangesHistory

Response: GenericPagedResult<StockItemChangeHistory>



Use this call to retrieve report about "stock changes of an item"

Parameters

NameTypeDescription
stockItemIdGuidUsed to specify report stock item id
locationIdGuidUsed to specify report location id. If null then combined
entriesPerPageInt32Used to specify number of entries per page in report
pageNumberInt32Used to specify report page number. If -1 then will return all pages

HTTP Endpoint

Server /Stock / GetItemChangesHistory

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Stock/GetItemChangesHistory 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

stockItemId=175cbabf-8831-41e1-9cb1-6579affdc8a7&locationId=b763269a-1974-41d5-9974-32b04124f2c7&entriesPerPage=1&pageNumber=1

Response

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

{
  "PageNumber": 1,
  "EntriesPerPage": 2,
  "TotalEntries": 3,
  "TotalPages": 2,
  "Data": [
    {
      "Date": "2018-10-03T11:12:34.5325334+01:00",
      "Level": 2,
      "StockValue": 3.1,
      "Note": "sample string 4",
      "ChangeQty": 5,
      "ChangeValue": 6.1,
      "StockItemId": "d3277401-6cf2-4037-9cbf-5c7c0d7f27b6"
    },
    {
      "Date": "2018-10-03T11:12:34.5325334+01:00",
      "Level": 2,
      "StockValue": 3.1,
      "Note": "sample string 4",
      "ChangeQty": 5,
      "ChangeValue": 6.1,
      "StockItemId": "d3277401-6cf2-4037-9cbf-5c7c0d7f27b6"
    }
  ]
}