Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | Unique identificator of the chain. | |
propertyId | Integer | true | Unique identificator of the property. | |
reservartionRoomStayId | Integer | true | Unique identificator of the reservationRoomStay. | |
consumptionModeId | Integer | true | consumption mode: 1- Everything I have generated in my stay 2-Everything I have in my bills for my stay 3-Everything that I have in my invoices and that I have generated from my stay |
Example request
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservationRoomStay/1/expenses
Response
The response is a ExpensesRevenue
Entity
Field Type Required Description totalAccommodationRevenue BigDecimal false Total of the product accommodation totalServiceRevenue BigDecimal false Total of the product service totalRevenue BigDecimal false Total accommadation + service totalAccommodationRevenueBeforeTax BigDecimal false Total of the product accommodation before tax totalServiceRevenueBeforeTax BigDecimal false Total of the product service before tax totalRevenueBeforeTax BigDecimal false Total accommadation + service before tax expensesProductList List of ExpensesProduct. false The products associated to this Expenses.
Example response
{ "totalAccommodationRevenue": 143.1, "totalServiceRevenue": 0, "totalRevenue": 143.1, "expensesProductList": [ { "postingDate": "2020-06-16", "quantity": 1, "product": { "id": 647, "code": "SGL", "name": "Single", "productType": { "id": 1, "code": "ACC", "name": "Accommodation", "nameI18n": "Accommodation" } }, "name": "Single", "amountAfterTax": 143.1, "amountBeforeTax": 130.090909, "currency": { "id": 1, "code": "EUR", "name": "Euro", "nameI18n": "Euro" }, "amountTax": 13.009091, "amountDiscount": 0, "amountCommission": 0, "rate": { "id": 2, "code": "BAR", "name": "Best Available Rate" }, "offer": { "id": 2, "code": "NR", "name": "Non Refundable" }, "offerAmountDiscount": 0, "offerPercentDiscount": 10, "promotion": null, "promotionAmountDiscount": null, "promotionPercentDiscount": null, "channel": { "id": 11, "code": "WEB", "name": "Booking Engine" }, "source": { "id": 14, "code": "WAL", "name": "Walk-In" }, "segment": { "id": 20, "code": "CONG", "name": "Congress" }, "remark": null, "expensesProductTaxList": [ { "quantity": 1, "product": { "id": 46, "code": "TAX10", "name": "Tax 10%", "productType": { "id": 5, "code": "TAX", "name": "Tax", "nameI18n": "Tax" } }, "name": "Tax 10%", "price": 13.009091, "currency": { "id": 1, "code": "EUR", "name": "Euro", "nameI18n": "Euro" }, "amount": 0, "percentage": 10 } ], "expensesProductCommissionList": null, "expensesProductDiscountList": null } ] }