Operation
The result of this operation gives us the total amount of daily revenue produced throughout a time period
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property{propertyId}/revenue/detail
Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | Unique identificator of the chain. | |
propertyId | Integer | true | Unique identificator of the property. | |
from | LocalDate | true | Start of date range | |
to | LocalDate | true | End of date range | |
offset | Integer | false | 0 | Offset of the array of results. |
limit | Integer | false | 10 | Limit of results. |
Example request
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/revenue/detail
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true |
Entity
Field | Type | Required | Description |
---|---|---|---|
date | LocalDate | true | Date of the revenue calculus |
product | Product | true | Product that groups the values |
quantity | Integer | true | |
adults | Integer | true | |
juniors | Integer | true | |
children | Integer | true | |
infants | Integer | true | |
amountAfterTax | BigDecimal | true | |
amountBeforeTax | BigDecimal | true | |
amountDiscount | BigDecimal | true | |
amountTax | BigDecimal | true | |
amountCommission | BigDecimal | true | |
amountCommissionApplied | BigDecimal | true | |
amountFoodBreakdownAfterTax | BigDecimal | ||
amountFoodBreakdownBeforeTax | BigDecimal | ||
amountBeverageBreakdownAfterTax | BigDecimal | ||
amountBeverageBreakdownBeforeTax | BigDecimal | ||
amountOtherBreakdownAfterTax | BigDecimal | ||
amountOtherBreakdownBeforeTax | BigDecimal | ||
amountNetAfterTax | BigDecimal | true | |
amountNetBeforeTax | BigDecimal | true | |
amountFoodBreakdownNetAfterTax | BigDecimal | ||
amountFoodBreakdownNetBeforeTax | BigDecimal | ||
amountBeverageBreakdownNetAfterTax | BigDecimal | ||
amountBeverageBreakdownNetBeforeTax | BigDecimal | ||
amountOtherBreakdownNetAfterTax | BigDecimal | ||
amountOtherBreakdownNetBeforeTax | BigDecimal | ||
amountInvoiceAfterTax | BigDecimal | ||
amountInvoiceBeforeTax | BigDecimal | ||
segment | |||
source | |||
channel | |||
rate | |||
offer | |||
promotion | |||
booker | |||
billTo | |||
central | |||
company | |||
countryCode | String |
Example response
{ "count": 1770, "offset": 0, "limit": 2, "list": [ { "date": "2020-04-03", "product": { "id": 71, "code":"MR", "name": "Meeting Room", "productType": { "id": 2, "code": "SER", "name": "Service" } }, "quantity": 2, "adults": 2, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 20.000000, "amountBeforeTax": 18.181818, "amountDiscount": 0.000000, "amountTax": 1.818182, "amountCommission": 0.000000, "amountCommissionApplied": 0.000000, "segment": { "id": 23, "code": "SPO", "name": "Sport Teams" }, "source": { "id": 12, "code": "EMA", "name": "Email" }, "channel": { "id": 9, "code": "IDS", "name": "IDS" }, "rate": { "id": 2, "code": "BAR", "name": "Best Available Rate" }, "offer": null, "promotion": null, "booker": { "id": 680, "name": "Lazzy", "code": null, "taxId": "75074669", "iataId": null, "companyEmailList": [ { "id": 680, "primary": true, "emailAddressType": { "id": 1, "code": "1", "name": "Personal" }, "email": "jbowmanik@alexa.com", "remark": null } ], "companyAddressList": [ { "id": 680, "primary": true, "communicationLocationType": { "id": 1, "code": "1", "name": "Home" }, "street": "82 High Crossing Drive", "city": "Plano", "stateProvName": "Texas", "stateProvCode": null, "postalCode": "75074", "countryCode": "GA", "remark": "Address Remark" } ], "companyPhoneList": [ { "id": 680, "primary": true, "phoneLocationType": { "id": 6, "code": "6", "name": "Home" }, "phoneTechType": { "id": 1, "code": "1", "name": "Voice" }, "countryAccessCode": "+34", "areaCityCode": "B", "phoneNumber": "1-(214)123-7392", "extension": "1", "remark": "Phone Remark" } ], "companyTaxAddress": { "id": 670, "communicationLocationType": null, "street": "82 High Crossing Drive", "city": "Plano", "stateProvName": "Texas", "stateProvCode": null, "postalCode": "75074", "countryCode": "BY", "remark": "Address Remark" }, "remark": "Company Remarks" }, "billTo": null, "central": null, "company": null, "countryCode": "MM" }, ... ] }