POST api/Report/GetProductDetailHistoryReportDetailsOnly
Request Information
URI Parameters
None.
Body Parameters
RequestIDModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
Required |
|
| RequestedUserID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"RequestedUserID": 1
}
application/xml, text/xml
Sample:
<RequestIDModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <RequestedUserID>1</RequestedUserID> <ID>1</ID> </RequestIDModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetProductHistoryReportResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Purchases | Collection of PurchaseListModel |
None. |
|
| Sales | Collection of SaleListModel |
None. |
|
| Locations | Collection of string |
None. |
|
| Product | string |
None. |
|
| PurchaseQuantity | integer |
None. |
|
| SaleQuantity | integer |
None. |
|
| AvailableQuantity | integer |
None. |
|
| HoldQuantity | integer |
None. |
|
| PurchaseReturnQuantity | integer |
None. |
|
| SaleReturnQuantity | integer |
None. |
|
| LastPurchasePrice | decimal number |
None. |
|
| AveragePurchasePrice | decimal number |
None. |
|
| VaplongPrice | decimal number |
None. |
|
| WebsitePrice | decimal number |
None. |
|
| Status | string |
None. |
|
| ResponseCode | integer |
None. |
|
| ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Purchases": [
{
"ID": 1,
"Supplier": "sample string 2",
"Date": "2026-07-28T08:40:30.954994+02:00",
"Quantity": 4
},
{
"ID": 1,
"Supplier": "sample string 2",
"Date": "2026-07-28T08:40:30.954994+02:00",
"Quantity": 4
}
],
"Sales": [
{
"ID": 1,
"Customer": "sample string 2",
"Date": "2026-07-28T08:40:30.954994+02:00",
"Quantity": 4
},
{
"ID": 1,
"Customer": "sample string 2",
"Date": "2026-07-28T08:40:30.954994+02:00",
"Quantity": 4
}
],
"Locations": [
"sample string 1",
"sample string 2"
],
"Product": "sample string 1",
"PurchaseQuantity": 2,
"SaleQuantity": 3,
"AvailableQuantity": 4,
"HoldQuantity": 5,
"PurchaseReturnQuantity": 6,
"SaleReturnQuantity": 7,
"LastPurchasePrice": 8.0,
"AveragePurchasePrice": 9.0,
"VaplongPrice": 10.0,
"WebsitePrice": 11.0,
"Status": "sample string 12",
"ResponseCode": 13,
"ResponseText": "sample string 14"
}
application/xml, text/xml
Sample:
<GetProductHistoryReportResponse 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">13</ResponseCode>
<ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 14</ResponseText>
<AvailableQuantity>4</AvailableQuantity>
<AveragePurchasePrice>9</AveragePurchasePrice>
<HoldQuantity>5</HoldQuantity>
<LastPurchasePrice>8</LastPurchasePrice>
<Locations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Locations>
<Product>sample string 1</Product>
<PurchaseQuantity>2</PurchaseQuantity>
<PurchaseReturnQuantity>6</PurchaseReturnQuantity>
<Purchases>
<PurchaseListModel>
<Date>2026-07-28T08:40:30.954994+02:00</Date>
<ID>1</ID>
<Quantity>4</Quantity>
<Supplier>sample string 2</Supplier>
</PurchaseListModel>
<PurchaseListModel>
<Date>2026-07-28T08:40:30.954994+02:00</Date>
<ID>1</ID>
<Quantity>4</Quantity>
<Supplier>sample string 2</Supplier>
</PurchaseListModel>
</Purchases>
<SaleQuantity>3</SaleQuantity>
<SaleReturnQuantity>7</SaleReturnQuantity>
<Sales>
<SaleListModel>
<Customer>sample string 2</Customer>
<Date>2026-07-28T08:40:30.954994+02:00</Date>
<ID>1</ID>
<Quantity>4</Quantity>
</SaleListModel>
<SaleListModel>
<Customer>sample string 2</Customer>
<Date>2026-07-28T08:40:30.954994+02:00</Date>
<ID>1</ID>
<Quantity>4</Quantity>
</SaleListModel>
</Sales>
<Status>sample string 12</Status>
<VaplongPrice>10</VaplongPrice>
<WebsitePrice>11</WebsitePrice>
</GetProductHistoryReportResponse>