Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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=1707c14e-2822-4c53-a250-af1f498ca48f&locationId=46e05011-5b04-4d5f-a5f7-05c5591ebe80&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": "2021-07-29T09:24:42.7102151+01:00",
      "Level": 2,
      "StockValue": 3.1,
      "Note": "sample string 4",
      "ChangeQty": 5,
      "ChangeValue": 6.1,
      "StockItemId": "a6ef5d05-c65b-4a16-afc2-122cc1625ce2",
      "StockItemIntId": 8
    }
  ]
}