GET api/DamageHistories?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
DamageHistoryListView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ProductId | integer |
None. |
|
| DamagedAt | date |
None. |
|
| Quantity | decimal number |
None. |
|
| FarmId | integer |
None. |
|
| BatchInfoId | integer |
None. |
|
| BuyHistoryId | integer |
None. |
|
| ProductStorageHistoryId | integer |
None. |
|
| CreatedAt | date |
None. |
|
| UpdatedAt | date |
None. |
|
| DeletedAt | date |
None. |
|
| DeletedBy | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdatedBy | integer |
None. |
|
| DeletedStatus | boolean |
None. |
|
| DamageCauseId | integer |
None. |
|
| ProductTitle | string |
None. |
|
| DamageCauseTitle | string |
None. |
|
| LanguageCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"ProductId": 2,
"DamagedAt": "2025-12-06T10:22:17.6782721+06:00",
"Quantity": 4.0,
"FarmId": 5,
"BatchInfoId": 6,
"BuyHistoryId": 7,
"ProductStorageHistoryId": 8,
"CreatedAt": "2025-12-06T10:22:17.6782721+06:00",
"UpdatedAt": "2025-12-06T10:22:17.6782721+06:00",
"DeletedAt": "2025-12-06T10:22:17.6782721+06:00",
"DeletedBy": 11,
"CreatedBy": 12,
"UpdatedBy": 13,
"DeletedStatus": true,
"DamageCauseId": 15,
"ProductTitle": "sample string 16",
"DamageCauseTitle": "sample string 17",
"LanguageCode": "sample string 18"
}
application/xml, text/xml
Sample:
<DamageHistoryListView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels"> <BatchInfoId>6</BatchInfoId> <BuyHistoryId>7</BuyHistoryId> <CreatedAt>2025-12-06T10:22:17.6782721+06:00</CreatedAt> <CreatedBy>12</CreatedBy> <DamageCauseId>15</DamageCauseId> <DamageCauseTitle>sample string 17</DamageCauseTitle> <DamagedAt>2025-12-06T10:22:17.6782721+06:00</DamagedAt> <DeletedAt>2025-12-06T10:22:17.6782721+06:00</DeletedAt> <DeletedBy>11</DeletedBy> <DeletedStatus>true</DeletedStatus> <FarmId>5</FarmId> <Id>1</Id> <LanguageCode>sample string 18</LanguageCode> <ProductId>2</ProductId> <ProductStorageHistoryId>8</ProductStorageHistoryId> <ProductTitle>sample string 16</ProductTitle> <Quantity>4</Quantity> <UpdatedAt>2025-12-06T10:22:17.6782721+06:00</UpdatedAt> <UpdatedBy>13</UpdatedBy> </DamageHistoryListView>