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

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

dateLocalDatetruerequest parameter
Date when the invoices were created.
integrationIdIntegerfalserequest 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


FieldTypeRequiredDescription
reservationRoomStayGuestReservationRoomStayGuesttrueGuest related to this data
invoiceStringtrueSerie + invoice number
totalAccommodationRevenueBigDecimaltrue
totalServiceRevenueBigDecimaltrue
totalRevenueBigDecimaltrue
totalAccommodationRevenueBeforeTaxBigDecimaltrue
totalServiceRevenueBeforeTaxBigDecimaltrue
totalRevenueBeforeTaxBigDecimaltrue
totalAccommodationRevenueAfterLoyaltyBigDecimaltrue
totalServiceRevenueAfterLoyaltyBigDecimaltrue
totalRevenueAfterLoyaltyBigDecimaltrue
totalAccommodationRevenueBeforeTaxAfterLoyaltyBigDecimaltrue
totalServiceRevenueBeforeTaxAfterLoyaltyBigDecimaltrue
totalRevenueBeforeTaxAfterLoyaltyBigDecimaltrue

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
}]