Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /GetItemChangesHistory

Allows 250 calls per minute

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

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Stock/GetItemChangesHistory

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.

stockItemId=04f0335c-022d-43bd-a532-76476e0970dc&locationId=aa24e6c8-d13b-4c2d-a643-60cc872dd501&entriesPerPage=1&pageNumber=1

Response

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

{
  "PageNumber": 1,
  "EntriesPerPage": 2,
  "TotalEntries": 3,
  "TotalPages": 2,
  "Data": [
    {
      "Date": "2023-01-10T13:49:55.0000801+00:00",
      "Level": 2,
      "StockValue": 3.1,
      "Note": "sample string 4",
      "ChangeQty": 5,
      "ChangeValue": 6.1,
      "StockItemId": "854dffac-169a-4b3b-a61d-f58dce39399f",
      "StockItemIntId": 8
    }
  ]
}