POST api/Report/GetStockHistory
Request Information
URI Parameters
None.
Body Parameters
GetProductStockHistoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductID | integer |
None. |
|
| ProductVariantID | integer |
None. |
|
| OutletID | integer |
None. |
|
| ToDate | date |
None. |
|
| FromDate | date |
None. |
|
| PageSize | integer |
None. |
|
| PageNo | integer |
None. |
|
| IsGetAll | boolean |
None. |
|
| IsAllProduct | boolean |
None. |
|
| DepartmentID | integer |
None. |
|
| ClassificationID | integer |
None. |
|
| Search | string |
None. |
|
| CategoryID | integer |
None. |
|
| SubCategoryID | integer |
None. |
|
| ColumnName | string |
None. |
|
| IsOrderBySearch | boolean |
None. |
|
| IsColumnSearch | boolean |
None. |
|
| IsOrderByAccending | boolean |
None. |
|
| ResellerID | integer |
None. |
|
| IsReseller | boolean |
None. |
|
| RequestedUserID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductID": 1,
"ProductVariantID": 2,
"OutletID": 3,
"ToDate": "2026-07-28T08:36:49.4706257+02:00",
"FromDate": "2026-07-28T08:36:49.4706257+02:00",
"PageSize": 6,
"PageNo": 7,
"IsGetAll": true,
"IsAllProduct": true,
"DepartmentID": 10,
"ClassificationID": 11,
"Search": "sample string 12",
"CategoryID": 13,
"SubCategoryID": 14,
"ColumnName": "sample string 15",
"IsOrderBySearch": true,
"IsColumnSearch": true,
"IsOrderByAccending": true,
"ResellerID": 1,
"IsReseller": true,
"RequestedUserID": 1
}
application/xml, text/xml
Sample:
<GetProductStockHistoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <RequestedUserID>1</RequestedUserID> <CategoryID>13</CategoryID> <ClassificationID>11</ClassificationID> <ColumnName>sample string 15</ColumnName> <DepartmentID>10</DepartmentID> <FromDate>2026-07-28T08:36:49.4706257+02:00</FromDate> <IsAllProduct>true</IsAllProduct> <IsColumnSearch>true</IsColumnSearch> <IsGetAll>true</IsGetAll> <IsOrderByAccending>true</IsOrderByAccending> <IsOrderBySearch>true</IsOrderBySearch> <IsReseller>true</IsReseller> <OutletID>3</OutletID> <PageNo>7</PageNo> <PageSize>6</PageSize> <ProductID>1</ProductID> <ProductVariantID>2</ProductVariantID> <ResellerID>1</ResellerID> <Search>sample string 12</Search> <SubCategoryID>14</SubCategoryID> <ToDate>2026-07-28T08:36:49.4706257+02:00</ToDate> </GetProductStockHistoryRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetAllStockHistoryResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| AllStockHistoryList | Collection of StockHistoryModel |
None. |
|
| ResponseCode | integer |
None. |
|
| ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"AllStockHistoryList": [
{
"ID": 1,
"Product": "sample string 2",
"ProductVariant": "sample string 3",
"TotalStock": 1,
"RemainingStock": 1,
"HoldStock": 1,
"SalePrice": 1.0,
"PurchasePrice": 1.0,
"SalePriceString": "sample string 4",
"PurchasePriceString": "sample string 5",
"ProductID": 1,
"ProductVariantID": 1,
"PurchaseID": 1,
"PurchaseDate": "2026-07-28T08:36:49.4706257+02:00",
"PurchaseDateString": "sample string 6",
"CreateAt": "2026-07-28T08:36:49.4706257+02:00",
"UpdatedAt": "2026-07-28T08:36:49.4706257+02:00",
"IsActive": true,
"By": "sample string 7"
},
{
"ID": 1,
"Product": "sample string 2",
"ProductVariant": "sample string 3",
"TotalStock": 1,
"RemainingStock": 1,
"HoldStock": 1,
"SalePrice": 1.0,
"PurchasePrice": 1.0,
"SalePriceString": "sample string 4",
"PurchasePriceString": "sample string 5",
"ProductID": 1,
"ProductVariantID": 1,
"PurchaseID": 1,
"PurchaseDate": "2026-07-28T08:36:49.4706257+02:00",
"PurchaseDateString": "sample string 6",
"CreateAt": "2026-07-28T08:36:49.4706257+02:00",
"UpdatedAt": "2026-07-28T08:36:49.4706257+02:00",
"IsActive": true,
"By": "sample string 7"
}
],
"ResponseCode": 1,
"ResponseText": "sample string 2"
}
application/xml, text/xml
Sample:
<GetAllStockHistoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response">
<ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode>
<ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText>
<AllStockHistoryList xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
<d2p1:StockHistoryModel>
<d2p1:By>sample string 7</d2p1:By>
<d2p1:CreateAt>2026-07-28T08:36:49.4706257+02:00</d2p1:CreateAt>
<d2p1:HoldStock>1</d2p1:HoldStock>
<d2p1:ID>1</d2p1:ID>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:Product>sample string 2</d2p1:Product>
<d2p1:ProductID>1</d2p1:ProductID>
<d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
<d2p1:ProductVariantID>1</d2p1:ProductVariantID>
<d2p1:PurchaseDate>2026-07-28T08:36:49.4706257+02:00</d2p1:PurchaseDate>
<d2p1:PurchaseDateString>sample string 6</d2p1:PurchaseDateString>
<d2p1:PurchaseID>1</d2p1:PurchaseID>
<d2p1:PurchasePrice>1</d2p1:PurchasePrice>
<d2p1:PurchasePriceString>sample string 5</d2p1:PurchasePriceString>
<d2p1:RemainingStock>1</d2p1:RemainingStock>
<d2p1:SalePrice>1</d2p1:SalePrice>
<d2p1:SalePriceString>sample string 4</d2p1:SalePriceString>
<d2p1:TotalStock>1</d2p1:TotalStock>
<d2p1:UpdatedAt>2026-07-28T08:36:49.4706257+02:00</d2p1:UpdatedAt>
</d2p1:StockHistoryModel>
<d2p1:StockHistoryModel>
<d2p1:By>sample string 7</d2p1:By>
<d2p1:CreateAt>2026-07-28T08:36:49.4706257+02:00</d2p1:CreateAt>
<d2p1:HoldStock>1</d2p1:HoldStock>
<d2p1:ID>1</d2p1:ID>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:Product>sample string 2</d2p1:Product>
<d2p1:ProductID>1</d2p1:ProductID>
<d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
<d2p1:ProductVariantID>1</d2p1:ProductVariantID>
<d2p1:PurchaseDate>2026-07-28T08:36:49.4706257+02:00</d2p1:PurchaseDate>
<d2p1:PurchaseDateString>sample string 6</d2p1:PurchaseDateString>
<d2p1:PurchaseID>1</d2p1:PurchaseID>
<d2p1:PurchasePrice>1</d2p1:PurchasePrice>
<d2p1:PurchasePriceString>sample string 5</d2p1:PurchasePriceString>
<d2p1:RemainingStock>1</d2p1:RemainingStock>
<d2p1:SalePrice>1</d2p1:SalePrice>
<d2p1:SalePriceString>sample string 4</d2p1:SalePriceString>
<d2p1:TotalStock>1</d2p1:TotalStock>
<d2p1:UpdatedAt>2026-07-28T08:36:49.4706257+02:00</d2p1:UpdatedAt>
</d2p1:StockHistoryModel>
</AllStockHistoryList>
</GetAllStockHistoryResponse>