GET StockPeriods/v1/GetStockPeriods?SiteID={SiteID}&StartDateFromUtc={StartDateFromUtc}&EndDateToUtc={EndDateToUtc}
Returns the stock period info for a given site.
Request Information
URI Parameters
| Name | Type | Description | Additional information |
|---|---|---|---|
| SiteID | integer |
ID of the site you want the stock periods for |
|
| StartDateFromUtc | datetime |
Optional: used to refine the search range of the stock peroids |
None. |
| EndDateToUtc | datetime |
Optional: used to refine the search range of the stock peroids |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of StockPeriodRowDto| Name | Type | Description | Additional information |
|---|---|---|---|
| StockPeriodID | integer |
None. |
|
| Name | string |
None. |
|
| StartDateUtc | datetime |
None. |
|
| EndDateUtc | datetime |
None. |
|
| Stocktakes | integer |
None. |
|
| Complete | boolean |
None. |
|
| LastDateTimeCompletedUtc | datetime |
None. |
|
| LastCompletedBy | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"StockPeriodID": 1,
"Name": "sample string 2",
"StartDateUtc": "2026-10-07T10:36:00.2680931",
"EndDateUtc": "2026-10-07T10:36:00.2680931",
"Stocktakes": 5,
"Complete": true,
"LastDateTimeCompletedUtc": "2026-10-07T10:36:00.2680931",
"LastCompletedBy": "sample string 7"
},
{
"StockPeriodID": 1,
"Name": "sample string 2",
"StartDateUtc": "2026-10-07T10:36:00.2680931",
"EndDateUtc": "2026-10-07T10:36:00.2680931",
"Stocktakes": 5,
"Complete": true,
"LastDateTimeCompletedUtc": "2026-10-07T10:36:00.2680931",
"LastCompletedBy": "sample string 7"
}
]
application/xml, text/xml
Sample:
System.Xml.XmlDocument