GET api/SellHistories/Dashboard?farmId={farmId}&farmType={farmType}&languageCode={languageCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
farmId

integer

Required

farmType

integer

Default value is 0

languageCode

string

Default value is en

Body Parameters

None.

Response Information

Resource Description

Collection of ReportSaleDashboard
NameDescriptionTypeAdditional information
RelatedId

integer

None.

FarmId

integer

None.

ItemTitle

string

None.

ItemTypeId

integer

None.

ItemTypeTitle

string

None.

CurrentAge

integer

None.

TotalQuantity

decimal number

None.

UsableQuantity

decimal number

None.

DateAt

date

None.

IconPath

string

None.

StockType

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RelatedId": 1,
    "FarmId": 2,
    "ItemTitle": "sample string 3",
    "ItemTypeId": 4,
    "ItemTypeTitle": "sample string 5",
    "CurrentAge": 6,
    "TotalQuantity": 7.0,
    "UsableQuantity": 8.0,
    "DateAt": "2025-12-06T10:23:14.6241168+06:00",
    "IconPath": "sample string 10",
    "StockType": "sample string 11"
  },
  {
    "RelatedId": 1,
    "FarmId": 2,
    "ItemTitle": "sample string 3",
    "ItemTypeId": 4,
    "ItemTypeTitle": "sample string 5",
    "CurrentAge": 6,
    "TotalQuantity": 7.0,
    "UsableQuantity": 8.0,
    "DateAt": "2025-12-06T10:23:14.6241168+06:00",
    "IconPath": "sample string 10",
    "StockType": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfReportSaleDashboard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
  <ReportSaleDashboard>
    <CurrentAge>6</CurrentAge>
    <DateAt>2025-12-06T10:23:14.6241168+06:00</DateAt>
    <FarmId>2</FarmId>
    <IconPath>sample string 10</IconPath>
    <ItemTitle>sample string 3</ItemTitle>
    <ItemTypeId>4</ItemTypeId>
    <ItemTypeTitle>sample string 5</ItemTypeTitle>
    <RelatedId>1</RelatedId>
    <StockType>sample string 11</StockType>
    <TotalQuantity>7</TotalQuantity>
    <UsableQuantity>8</UsableQuantity>
  </ReportSaleDashboard>
  <ReportSaleDashboard>
    <CurrentAge>6</CurrentAge>
    <DateAt>2025-12-06T10:23:14.6241168+06:00</DateAt>
    <FarmId>2</FarmId>
    <IconPath>sample string 10</IconPath>
    <ItemTitle>sample string 3</ItemTitle>
    <ItemTypeId>4</ItemTypeId>
    <ItemTypeTitle>sample string 5</ItemTypeTitle>
    <RelatedId>1</RelatedId>
    <StockType>sample string 11</StockType>
    <TotalQuantity>7</TotalQuantity>
    <UsableQuantity>8</UsableQuantity>
  </ReportSaleDashboard>
</ArrayOfReportSaleDashboard>