Use this call to retrieve report about "stock consumption between two dates"
Name | Type | Description |
---|---|---|
stockItemId | Guid | Used to specify report stock id |
locationId | Nullable<Guid> | Used to specify location id. If null, then will return combined result of every location |
startDate | DateTime | Used to specify report start date |
endDate | DateTime | Used to specify report end date |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Stock/GetStockConsumption
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
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
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
}
]