GET api/SellHistories?showDeletedItem={showDeletedItem}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| showDeletedItem | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Collection of SellHistoryListView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ProductId | integer |
None. |
|
| SellAt | date |
None. |
|
| Quantity | decimal number |
None. |
|
| TotalPrice | decimal number |
None. |
|
| UnitPrice | decimal number |
None. |
|
| FarmId | integer |
None. |
|
| OwnerId | integer |
None. |
|
| BuyerId | integer |
None. |
|
| Comment | string |
None. |
|
| CreatedAt | date |
None. |
|
| UpdatedAt | date |
None. |
|
| DeletedAt | date |
None. |
|
| DeletedBy | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdatedBy | integer |
None. |
|
| DeletedStatus | boolean |
None. |
|
| ProductTitle | string |
None. |
|
| ProductTypeId | integer |
None. |
|
| MeasurementUnitTitle | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ProductId": 2,
"SellAt": "2025-12-06T10:23:43.2185053+06:00",
"Quantity": 4.0,
"TotalPrice": 5.0,
"UnitPrice": 6.0,
"FarmId": 7,
"OwnerId": 8,
"BuyerId": 9,
"Comment": "sample string 10",
"CreatedAt": "2025-12-06T10:23:43.2185053+06:00",
"UpdatedAt": "2025-12-06T10:23:43.2185053+06:00",
"DeletedAt": "2025-12-06T10:23:43.2185053+06:00",
"DeletedBy": 13,
"CreatedBy": 14,
"UpdatedBy": 15,
"DeletedStatus": true,
"ProductTitle": "sample string 17",
"ProductTypeId": 18,
"MeasurementUnitTitle": "sample string 19"
},
{
"Id": 1,
"ProductId": 2,
"SellAt": "2025-12-06T10:23:43.2185053+06:00",
"Quantity": 4.0,
"TotalPrice": 5.0,
"UnitPrice": 6.0,
"FarmId": 7,
"OwnerId": 8,
"BuyerId": 9,
"Comment": "sample string 10",
"CreatedAt": "2025-12-06T10:23:43.2185053+06:00",
"UpdatedAt": "2025-12-06T10:23:43.2185053+06:00",
"DeletedAt": "2025-12-06T10:23:43.2185053+06:00",
"DeletedBy": 13,
"CreatedBy": 14,
"UpdatedBy": 15,
"DeletedStatus": true,
"ProductTitle": "sample string 17",
"ProductTypeId": 18,
"MeasurementUnitTitle": "sample string 19"
}
]
application/xml, text/xml
Sample:
<ArrayOfSellHistoryListView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
<SellHistoryListView>
<BuyerId>9</BuyerId>
<Comment>sample string 10</Comment>
<CreatedAt>2025-12-06T10:23:43.2185053+06:00</CreatedAt>
<CreatedBy>14</CreatedBy>
<DeletedAt>2025-12-06T10:23:43.2185053+06:00</DeletedAt>
<DeletedBy>13</DeletedBy>
<DeletedStatus>true</DeletedStatus>
<FarmId>7</FarmId>
<Id>1</Id>
<MeasurementUnitTitle>sample string 19</MeasurementUnitTitle>
<OwnerId>8</OwnerId>
<ProductId>2</ProductId>
<ProductTitle>sample string 17</ProductTitle>
<ProductTypeId>18</ProductTypeId>
<Quantity>4</Quantity>
<SellAt>2025-12-06T10:23:43.2185053+06:00</SellAt>
<TotalPrice>5</TotalPrice>
<UnitPrice>6</UnitPrice>
<UpdatedAt>2025-12-06T10:23:43.2185053+06:00</UpdatedAt>
<UpdatedBy>15</UpdatedBy>
</SellHistoryListView>
<SellHistoryListView>
<BuyerId>9</BuyerId>
<Comment>sample string 10</Comment>
<CreatedAt>2025-12-06T10:23:43.2185053+06:00</CreatedAt>
<CreatedBy>14</CreatedBy>
<DeletedAt>2025-12-06T10:23:43.2185053+06:00</DeletedAt>
<DeletedBy>13</DeletedBy>
<DeletedStatus>true</DeletedStatus>
<FarmId>7</FarmId>
<Id>1</Id>
<MeasurementUnitTitle>sample string 19</MeasurementUnitTitle>
<OwnerId>8</OwnerId>
<ProductId>2</ProductId>
<ProductTitle>sample string 17</ProductTitle>
<ProductTypeId>18</ProductTypeId>
<Quantity>4</Quantity>
<SellAt>2025-12-06T10:23:43.2185053+06:00</SellAt>
<TotalPrice>5</TotalPrice>
<UnitPrice>6</UnitPrice>
<UpdatedAt>2025-12-06T10:23:43.2185053+06:00</UpdatedAt>
<UpdatedBy>15</UpdatedBy>
</SellHistoryListView>
</ArrayOfSellHistoryListView>