GET Stock/GetClosingLevelsAtLocation/{SiteID}?StocktakeID={StocktakeID}
Returns the Closing Stock Levels at the Site.Optional Stock Location
Request Information
URI Parameters
| Name | Type | Description | Additional information |
|---|---|---|---|
| SiteID | integer |
SiteID you want the closing levels for |
|
| StocktakeID | integer |
StocktakeID you want the closing levels from |
Body Parameters
None.
Response Information
Resource Description
StockClosingLevelsModel| Name | Type | Description | Additional information |
|---|---|---|---|
| SiteID | integer |
None. |
|
| StocktakeID | integer |
None. |
|
| Date | date |
None. |
|
| StockLocationID | integer |
None. |
|
| StockLocation | string |
None. |
|
| StockPeriodID | integer |
None. |
|
| StockPeriod | string |
None. |
|
| Products | Collection of StocktakeItemDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"SiteID": 1,
"StocktakeID": 2,
"Date": "2025-10-29T20:28:10.303234",
"StockLocationID": 4,
"StockLocation": "sample string 5",
"StockPeriodID": 6,
"StockPeriod": "sample string 7",
"Products": [
{
"StocktakeItemID": 1,
"SiteID": 2,
"StocktakeID": 3,
"ProductID": 4,
"ProductName": "sample string 5",
"ProductGroupID": 6,
"ProductGroupName": "sample string 7",
"ProductTypeID": 8,
"ProductTypeName": "sample string 9",
"CountedQty": 1.0
},
{
"StocktakeItemID": 1,
"SiteID": 2,
"StocktakeID": 3,
"ProductID": 4,
"ProductName": "sample string 5",
"ProductGroupID": 6,
"ProductGroupName": "sample string 7",
"ProductTypeID": 8,
"ProductTypeName": "sample string 9",
"CountedQty": 1.0
}
]
}
application/xml, text/xml
Sample:
<StockClosingLevelsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models">
<_x003C_Date_x003E_k__BackingField>2025-10-29T20:28:10.303234</_x003C_Date_x003E_k__BackingField>
<_x003C_Products_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tevalis.StockMid.Core.Models.StockPeriods.Dto">
<d2p1:StocktakeItemDto>
<d2p1:CountedQty>1</d2p1:CountedQty>
<d2p1:ProductGroupID>6</d2p1:ProductGroupID>
<d2p1:ProductGroupName>sample string 7</d2p1:ProductGroupName>
<d2p1:ProductID>4</d2p1:ProductID>
<d2p1:ProductName>sample string 5</d2p1:ProductName>
<d2p1:ProductTypeID>8</d2p1:ProductTypeID>
<d2p1:ProductTypeName>sample string 9</d2p1:ProductTypeName>
<d2p1:SiteID>2</d2p1:SiteID>
<d2p1:StocktakeID>3</d2p1:StocktakeID>
<d2p1:StocktakeItemID>1</d2p1:StocktakeItemID>
</d2p1:StocktakeItemDto>
<d2p1:StocktakeItemDto>
<d2p1:CountedQty>1</d2p1:CountedQty>
<d2p1:ProductGroupID>6</d2p1:ProductGroupID>
<d2p1:ProductGroupName>sample string 7</d2p1:ProductGroupName>
<d2p1:ProductID>4</d2p1:ProductID>
<d2p1:ProductName>sample string 5</d2p1:ProductName>
<d2p1:ProductTypeID>8</d2p1:ProductTypeID>
<d2p1:ProductTypeName>sample string 9</d2p1:ProductTypeName>
<d2p1:SiteID>2</d2p1:SiteID>
<d2p1:StocktakeID>3</d2p1:StocktakeID>
<d2p1:StocktakeItemID>1</d2p1:StocktakeItemID>
</d2p1:StocktakeItemDto>
</_x003C_Products_x003E_k__BackingField>
<_x003C_SiteID_x003E_k__BackingField>1</_x003C_SiteID_x003E_k__BackingField>
<_x003C_StockLocationID_x003E_k__BackingField>4</_x003C_StockLocationID_x003E_k__BackingField>
<_x003C_StockLocation_x003E_k__BackingField>sample string 5</_x003C_StockLocation_x003E_k__BackingField>
<_x003C_StockPeriodID_x003E_k__BackingField>6</_x003C_StockPeriodID_x003E_k__BackingField>
<_x003C_StockPeriod_x003E_k__BackingField>sample string 7</_x003C_StockPeriod_x003E_k__BackingField>
<_x003C_StocktakeID_x003E_k__BackingField>2</_x003C_StocktakeID_x003E_k__BackingField>
</StockClosingLevelsModel>