Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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=83fa9307-3b6b-4e75-9959-89c82432735c&locationId=fc21810a-5dba-4b52-a26a-8c8c7f30635d&startDate=2021-07-29T09:24:12.1230223+01:00&endDate=2021-07-29T09:24:12.1230223+01:00

Response

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

[
  {
    "Date": "2021-07-29T09:24:42.7032153+01:00",
    "StockQuantity": 2,
    "StockValue": 3.1,
    "Shipped": 4,
    "StockItemId": "7bd97dbc-4efd-4bcf-8226-c5d0f3bedb6e",
    "StockItemIntId": 6
  }
]