Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /GetStockConsumption

Allows 250 calls per minute

Response: List<StockConsumption>



Use this call to retrieve report about "stock consumption between two dates"

Parameters

NameTypeDescription
stockItemIdGuidUsed to specify report stock id
locationIdNullable<Guid>Used to specify location id. If null, then will return combined result of every location
startDateDateTimeUsed to specify report start date
endDateDateTimeUsed to specify report end date

Example Request

The following request format is required for this method.

Endpoint URL

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

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=ec84096c-9492-4028-aad9-a8d01936b82d&locationId=985deba0-af50-45f7-bcde-7ee0fbf880ac&startDate=2023-01-10T13:49:46.1347492+00:00&endDate=2023-01-10T13:49:46.1347492+00:00

Response

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

[
  {
    "Date": "2023-01-10T13:49:54.9941476+00:00",
    "StockQuantity": 2,
    "StockValue": 3.1,
    "Shipped": 4,
    "StockItemId": "c20ca190-25f1-48d3-b658-eee78a3e8393",
    "StockItemIntId": 6
  }
]