List of expenses from guests
Operation
A list of expenses created from the invoices generated a certain date in a certain property related to a guest.
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/expenses/reservationRoomStayGuest
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | ||
propertyId | Integer | true | path parameter | ||
date | LocalDate | true | request parameter | Date when the invoices were created. | |
integrationId | Integer | false | request parameter | Integration to calculate after loyalty prices |
Example request
GET https://prod.ulysescloud.com/public/api/v1/con/chain/1/property/2/expenses/reservationRoomStayGuest?date=2021-10-11&integrationId=108
Response
Array of elements of type ExpensesFromGuest.
Entity
Field Type Required Description reservationRoomStayGuest ReservationRoomStayGuest true Guest related to this data invoice String true Serie + invoice number totalAccommodationRevenue BigDecimal true
totalServiceRevenue BigDecimal true
totalRevenue BigDecimal true
totalAccommodationRevenueBeforeTax BigDecimal true
totalServiceRevenueBeforeTax BigDecimal true
totalRevenueBeforeTax BigDecimal true
totalAccommodationRevenueAfterLoyalty BigDecimal true
totalServiceRevenueAfterLoyalty BigDecimal true
totalRevenueAfterLoyalty BigDecimal true
totalAccommodationRevenueBeforeTaxAfterLoyalty BigDecimal true
totalServiceRevenueBeforeTaxAfterLoyalty BigDecimal true
totalRevenueBeforeTaxAfterLoyalty BigDecimal true
Field | Type | Required | Description |
---|---|---|---|
reservationRoomStayGuest | ReservationRoomStayGuest | true | Guest related to this data |
invoice | String | true | Serie + invoice number |
totalAccommodationRevenue | BigDecimal | true | |
totalServiceRevenue | BigDecimal | true | |
totalRevenue | BigDecimal | true | |
totalAccommodationRevenueBeforeTax | BigDecimal | true | |
totalServiceRevenueBeforeTax | BigDecimal | true | |
totalRevenueBeforeTax | BigDecimal | true | |
totalAccommodationRevenueAfterLoyalty | BigDecimal | true | |
totalServiceRevenueAfterLoyalty | BigDecimal | true | |
totalRevenueAfterLoyalty | BigDecimal | true | |
totalAccommodationRevenueBeforeTaxAfterLoyalty | BigDecimal | true | |
totalServiceRevenueBeforeTaxAfterLoyalty | BigDecimal | true | |
totalRevenueBeforeTaxAfterLoyalty | BigDecimal | true |
Example response
[{ "reservationRoomStayGuest": { "id": 345, "documentType": { "id": 2, "code": "P", "name": "Passport", "nameI18n": "Passport" }, "documentNumber": "nAlGytkN", "givenName": "Tammy", "surName": "Daphnée", "secondSurName": "Nguyen", "genderType": { "id": 2, "code": "F", "name": "Female", "nameI18n": "Female" }, "birthDate": "2003-06-11", "birthCountryCode": "KI", "birthPlace": "Spokane", "effectiveDate": "2020-06-11", "expireDate": "2023-06-11", "street": "07347 Loeprich Pass", "city": "Spokane", "stateProvName": "Washington", "stateProvCode": null, "countryCode": "KI", "postalCode": "99205", "nationalityCountryCode": "KI", "countryOfIssuanceCode": "KI", "ocr": null, "email": "mreed59@dyndns.org", "phoneNumber": "1-(509)515-9095", "allowMarketing": null, "allowThirdParty": null, "language": null }, "invoice": "IN279", "totalAccommodationRevenue": 316.100000, "totalServiceRevenue": 316.100000, "totalRevenue": 316.100000, "totalAccommodationRevenueBeforeTax": 287.636364, "totalServiceRevenueBeforeTax": 287.636364, "totalRevenueBeforeTax": 287.636364, "totalAccommodationRevenueAfterLoyaltyRules": 916.000000, "totalServiceRevenueAfterLoyaltyRules": 0.000000, "totalRevenueAfterLoyaltyRules": 916.000000, "totalAccommodationRevenueBeforeTaxAfterLoyaltyRules": 832.727272, "totalServiceRevenueBeforeTaxAfterLoyaltyRules": 0.000000, "totalRevenueBeforeTaxAfterLoyaltyRules": 832.727272 }]