Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

This endpoint will give as a result the revenue produced by every channel for a given date

Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/propertyManagement/revenueSource



Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter
Unique identificator of the chain.
propertyIdIntegertruepath parameter
property identificator.
datedatefalsepath parameter

revenuePriceModelTypeIdIntegerfalserequest parameter11 GROSS
2 NET
3 MIX
chainProductGroupIdListList<Integer>falserequest parameter
1-Accommodation
2-Food & Beverage
3-Conventions
4-Others
sumAsAccommodationRevenueBooleanfalserequest parameterSum as Accommodation Revenue
Adds to the revenue the service-type products that specify that they add up in the room


Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com/public/api/v1/con/chain/1/property/2/propertyManagement/revenueChannel?date=2020-01-01&chainProductGroupIdList=1,2,3



Response

Entity

Insert excerpt
ManagementPropertyRevenueChannelModel
ManagementPropertyRevenueChannelModel
nopaneltrue

Example response

Code Block
themeDJango
[
    {
        "channel": {
            "id": 1,
            "code": "CRS",
            "name": "Central ReservationSystem"
        },
        "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
    }
...
]