Revenue by Source [GET]
Operation
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | Unique identificator of the chain. | |
propertyId | Integer | true | path parameter | property identificator. | |
date | date | false | path parameter | ||
revenuePriceModelTypeId | Integer | false | request parameter | 1 | 1 GROSS 2 NET 3 MIX |
chainProductGroupIdList | List<Integer> | false | request parameter | 1-Accommodation 2-Food & Beverage 3-Conventions 4-Others | |
sumAsAccommodationRevenue | Boolean | false | request parameter | Adds to the revenue the service-type products that they specify it add up in the room |
Example request
GET https://publicapi-providers.ulysescloud.com/public/api/v1/con/chain/1/property/2/propertyManagement/revenueSource?date=2020-01-01&chainProductGroupIdList=1,2,3
Response
Entity
Field Type Required Description source Source revenueDay BigDecimal quantityDay Integer paxDay Integer avgRevenueByQuantityDay BigDecimal avgRevenueByPaxDay BigDecimal previousYearRevenueDay BigDecimal previousYearQuantityDay Integer previousYearPaxDay Integer previousYearAvgRevenueByQuantityDay BigDecimal previousYearAvgRevenueByPaxDay BigDecimal differencePreviousYearRevenueDay BigDecimal differencePreviousYearQuantityDay Integer differencePreviousYearPaxDay Integer differencePreviousYearAvgRevenueByQuantityDay BigDecimal differencePreviousYearAvgRevenueByPaxDay BigDecimal budgetRevenueDay BigDecimal budgetQuantityDay Integer budgetPaxDay Integer budgetAvgRevenueByQuantityDay BigDecimal budgetAvgRevenueByPaxDay BigDecimal differenceBudgetRevenueDay BigDecimal differenceBudgetQuantityDay Integer differenceBudgetPaxDay Integer differenceBudgetAvgRevenueByQuantityDay BigDecimal differenceBudgetAvgRevenueByPaxDay BigDecimal revenueMonth BigDecimal quantityMonth Integer paxMonth Integer avgRevenueByQuantityMonth BigDecimal avgRevenueByPaxMonth BigDecimal previousYearRevenueMonth BigDecimal previousYearQuantityMonth Integer previousYearPaxMonth Integer previousYearAvgRevenueByQuantityMonth BigDecimal previousYearAvgRevenueByPaxMonth BigDecimal differencePreviousYearRevenueMonth BigDecimal differencePreviousYearQuantityMonth Integer differencePreviousYearPaxMonth Integer differencePreviousYearAvgRevenueByQuantityMonth BigDecimal differencePreviousYearAvgRevenueByPaxMonth BigDecimal budgetRevenueMonth BigDecimal budgetQuantityMonth Integer budgetPaxMonth Integer budgetAvgRevenueByQuantityMonth BigDecimal budgetAvgRevenueByPaxMonth BigDecimal differenceBudgetRevenueMonth BigDecimal differenceBudgetQuantityMonth Integer differenceBudgetPaxMonth Integer differenceBudgetAvgRevenueByQuantityMonth BigDecimal differenceBudgetAvgRevenueByPaxMonth BigDecimal revenueYear BigDecimal quantityYear Integer paxYear Integer avgRevenueByQuantityYear BigDecimal avgRevenueByPaxYear BigDecimal previousYearRevenueYear BigDecimal previousYearQuantityYear Integer previousYearPaxYear Integer previousYearAvgRevenueByQuantityYear BigDecimal previousYearAvgRevenueByPaxYear BigDecimal differencePreviousYearRevenueYear BigDecimal differencePreviousYearQuantityYear Integer differencePreviousYearPaxYear Integer differencePreviousYearAvgRevenueByQuantityYear BigDecimal differencePreviousYearAvgRevenueByPaxYear BigDecimal budgetRevenueYear BigDecimal budgetQuantityYear Integer budgetPaxYear Integer budgetAvgRevenueByQuantityYear BigDecimal budgetAvgRevenueByPaxYear BigDecimal differenceBudgetRevenueYear BigDecimal differenceBudgetQuantityYear Integer differenceBudgetPaxYear Integer differenceBudgetAvgRevenueByQuantityYear differenceBudgetAvgRevenueByPaxYear
Example response
[ { "source": { "id": 1, "code": "AGE", "name": "Agency" }, "revenueDay": 0.000000, "quantityDay": 0, "paxDay": 0, "avgRevenueByQuantityDay": 0.000000, "avgRevenueByPaxDay": 0.000000, "previousYearRevenueDay": 0.000000, "previousYearQuantityDay": 0, "previousYearPaxDay": 0, "previousYearAvgRevenueByQuantityDay": 0.000000, "previousYearAvgRevenueByPaxDay": 0.000000, "differencePreviousYearRevenueDay": 0.000000, "differencePreviousYearQuantityDay": 0, "differencePreviousYearPaxDay": 0, "differencePreviousYearAvgRevenueByQuantityDay": 0.000000, "differencePreviousYearAvgRevenueByPaxDay": 0.000000, "budgetRevenueDay": 0.000000, "budgetQuantityDay": 0, "budgetPaxDay": 0, "budgetAvgRevenueByQuantityDay": 0.000000, "budgetAvgRevenueByPaxDay": 0.000000, "differenceBudgetRevenueDay": 0.000000, "differenceBudgetQuantityDay": 0, "differenceBudgetPaxDay": 0, "differenceBudgetAvgRevenueByQuantityDay": 0.000000, "differenceBudgetAvgRevenueByPaxDay": 0.000000, "revenueMonth": 0.000000, "quantityMonth": 0, "paxMonth": 0, "avgRevenueByQuantityMonth": 0.000000, "avgRevenueByPaxMonth": 0.000000, "previousYearRevenueMonth": 0.000000, "previousYearQuantityMonth": 0, "previousYearPaxMonth": 0, "previousYearAvgRevenueByQuantityMonth": 0.000000, "previousYearAvgRevenueByPaxMonth": 0.000000, "differencePreviousYearRevenueMonth": 0.000000, "differencePreviousYearQuantityMonth": 0, "differencePreviousYearPaxMonth": 0, "differencePreviousYearAvgRevenueByQuantityMonth": 0.000000, "differencePreviousYearAvgRevenueByPaxMonth": 0.000000, "budgetRevenueMonth": 0.000000, "budgetQuantityMonth": 0, "budgetPaxMonth": 0, "budgetAvgRevenueByQuantityMonth": 0.000000, "budgetAvgRevenueByPaxMonth": 0.000000, "differenceBudgetRevenueMonth": 0.000000, "differenceBudgetQuantityMonth": 0, "differenceBudgetPaxMonth": 0, "differenceBudgetAvgRevenueByQuantityMonth": 0.000000, "differenceBudgetAvgRevenueByPaxMonth": 0.000000, "revenueYear": 0.000000, "quantityYear": 0, "paxYear": 0, "avgRevenueByQuantityYear": 0.000000, "avgRevenueByPaxYear": 0.000000, "previousYearRevenueYear": 0.000000, "previousYearQuantityYear": 0, "previousYearPaxYear": 0, "previousYearAvgRevenueByQuantityYear": 0.000000, "previousYearAvgRevenueByPaxYear": 0.000000, "differencePreviousYearRevenueYear": 0.000000, "differencePreviousYearQuantityYear": 0, "differencePreviousYearPaxYear": 0, "differencePreviousYearAvgRevenueByQuantityYear": 0.000000, "differencePreviousYearAvgRevenueByPaxYear": 0.000000, "budgetRevenueYear": 0.000000, "budgetQuantityYear": 0, "budgetPaxYear": 0, "budgetAvgRevenueByQuantityYear": 0.000000, "budgetAvgRevenueByPaxYear": 0.000000, "differenceBudgetRevenueYear": 0.000000, "differenceBudgetQuantityYear": 0, "differenceBudgetPaxYear": 0, "differenceBudgetAvgRevenueByQuantityYear": 0.000000, "differenceBudgetAvgRevenueByPaxYear": 0.000000 } ... ]