Use this call to retrieve report about "item sold stat"
Name | Type | Description |
---|---|---|
stockItemId | Guid | Used to specify report stock item id |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Stock/GetSoldStat
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=25cb1c4e-9488-4839-9485-ec7f155d6feb
This is an example of the response JSON. Results will vary depending on your data.
[
{
"Source": "sample string 1",
"Quantity": 2,
"Total": 3.1,
"Cost": 4.1,
"ProfitMargin": 5.1,
"Detail": [
{
"Subsource": "sample string 1",
"Quantity": 2,
"Total": 3.1,
"Cost": 4.1,
"ProfitMargin": 5.1,
"Detail": [
{
"Date": "2023-01-10T13:49:55.0974753+00:00",
"Quantity": 2,
"Total": 3.1,
"Cost": 4.1,
"ProfitMargin": 5.1
}
]
}
],
"StockItemId": "8dd9f543-d394-41c5-b2e5-f004e8221e0c",
"StockItemIntId": 7
}
]