Revenue list detailed [GET]
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 | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | Unique identificator of the chain. | |
propertyId | Integer | true | path parameter | Unique identificator of the property. | |
from | LocalDate | true | request parameter | Start of date range | |
to | LocalDate | true | request parameter | End of date range | |
offset | Integer | false | request parameter | 0 | Offset of the array of results. |
limit | Integer | false | request parameter | 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": 910, "offset": 0, "limit": 10, "list": [ { "date": "2020-06-27", "product": { "id": 68, "code": "DINNER", "name": "Dinner", "productType": { "id": 2, "code": "SER", "name": "Service", "nameI18n": "Service" } }, "quantity": 4, "adults": 4, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 110.666667, "amountBeforeTax": 100.606060, "amountFoodBreakdownAfterTax": 55.333333, "amountFoodBreakdownBeforeTax": 50.303030, "amountBeverageBreakdownAfterTax": 55.333333, "amountBeverageBreakdownBeforeTax": 50.303030, "amountOtherBreakdownAfterTax": 0.000000, "amountOtherBreakdownBeforeTax": 0.000000, "amountNetAfterTax": 110.666667, "amountNetBeforeTax": 100.606060, "amountFoodBreakdownNetAfterTax": 55.333333, "amountFoodBreakdownNetBeforeTax": 50.303030, "amountBeverageBreakdownNetAfterTax": 55.333333, "amountBeverageBreakdownNetBeforeTax": 50.303030, "amountOtherBreakdownNetAfterTax": 0.000000, "amountOtherBreakdownNetBeforeTax": 0.000000, "amountDiscount": 0.000000, "amountTax": 0.000000, "amountCommission": 0.000000, "amountCommissionBeforeTax": null, "amountCommissionApplied": 0.000000, "amountCommissionAppliedBeforeTax": null, "amountCommissionFoodBreakdown": null, "amountCommissionFoodBreakdownBeforeTax": null, "amountCommissionFoodBreakdownApplied": null, "amountCommissionFoodBreakdownAppliedBeforeTax": null, "amountCommissionBeverageBreakdown": null, "amountCommissionBeverageBreakdownBeforeTax": null, "amountCommissionBeverageBreakdownApplied": null, "amountCommissionBeverageBreakdownAppliedBeforeTax": null, "amountCommissionOtherBreakdown": null, "amountCommissionOtherBreakdownBeforeTax": null, "amountCommissionOtherBreakdownApplied": null, "amountCommissionOtherBreakdownAppliedBeforeTax": null, "amountInvoiceAfterTax": 110.666667, "amountInvoiceBeforeTax": 100.606060, "segment": { "id": 27, "code": "CONL", "name": "Company Online" }, "source": { "id": 14, "code": "WAL", "name": "Walk-In" }, "channel": { "id": 11, "code": "WEB", "name": "Booking Engine" }, "rate": { "id": 2, "code": "BAR", "name": "Best Available Rate" }, "offer": null, "promotion": null, "booker": { "id": 847, "name": "Youfeed", "code": "YOUFE", "taxId": "62711834", "companyEmailList": [ { "id": 847, "primary": true, "emailAddressType": { "id": 1, "code": "1", "name": "Personal", "nameI18n": "Personal" }, "email": "cfreemann5@biblegateway.com", "remark": null } ], "companyAddressList": [ { "id": 847, "primary": true, "communicationLocationType": { "id": 1, "code": "1", "name": "Home", "nameI18n": "Home" }, "street": "232 Kim Way", "city": "Springfield", "stateProvName": "León", "stateProvCode": "ES-LE", "postalCode": "62711", "countryCode": "ES", "remark": "Address Remark" } ], "companyPhoneList": [ { "id": 847, "primary": true, "phoneLocationType": { "id": 6, "code": "6", "name": "Home", "nameI18n": "Home" }, "phoneTechType": { "id": 1, "code": "1", "name": "Voice", "nameI18n": "Voice" }, "countryAccessCode": "+34", "areaCityCode": "B", "phoneNumber": "1-(217)690-1739", "extension": "1", "remark": "Phone Remark" } ], "companyTaxAddress": { "id": 837, "communicationLocationType": null, "street": "232 Kim Way", "city": "Springfield", "stateProvName": "Valladolid", "stateProvCode": "ES-VA", "postalCode": "62711", "countryCode": "ES", "remark": "Address Remark" }, "remark": "Company Remarks" }, "billTo": null, "central": null, "company": null, "countryCode": "TD" }, ... ] }