GET api/BuyHistories/ItemBalance?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 ViewReportBuyBalanceItemsAllLocale
NameDescriptionTypeAdditional information
FarmId

integer

None.

ItemTypeId

integer

None.

ItemTypeTitle

string

None.

LanguageCode

string

None.

IconPath

string

None.

TotalQuantity

decimal number

None.

UsableQuantity

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "FarmId": 1,
    "ItemTypeId": 1,
    "ItemTypeTitle": "sample string 1",
    "LanguageCode": "sample string 2",
    "IconPath": "sample string 3",
    "TotalQuantity": 4.0,
    "UsableQuantity": 5.0
  },
  {
    "FarmId": 1,
    "ItemTypeId": 1,
    "ItemTypeTitle": "sample string 1",
    "LanguageCode": "sample string 2",
    "IconPath": "sample string 3",
    "TotalQuantity": 4.0,
    "UsableQuantity": 5.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfViewReportBuyBalanceItemsAllLocale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <ViewReportBuyBalanceItemsAllLocale>
    <FarmId>1</FarmId>
    <IconPath>sample string 3</IconPath>
    <ItemTypeId>1</ItemTypeId>
    <ItemTypeTitle>sample string 1</ItemTypeTitle>
    <LanguageCode>sample string 2</LanguageCode>
    <TotalQuantity>4</TotalQuantity>
    <UsableQuantity>5</UsableQuantity>
  </ViewReportBuyBalanceItemsAllLocale>
  <ViewReportBuyBalanceItemsAllLocale>
    <FarmId>1</FarmId>
    <IconPath>sample string 3</IconPath>
    <ItemTypeId>1</ItemTypeId>
    <ItemTypeTitle>sample string 1</ItemTypeTitle>
    <LanguageCode>sample string 2</LanguageCode>
    <TotalQuantity>4</TotalQuantity>
    <UsableQuantity>5</UsableQuantity>
  </ViewReportBuyBalanceItemsAllLocale>
</ArrayOfViewReportBuyBalanceItemsAllLocale>