Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

A list of expenses created from the invoices generated a certain date in a certain property related to a guest.

Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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

Code Block
languagepowershell
themeDJango
GET https://prod.ulysescloud.com/public/api/v1/con/chain/1/property/2/expenses/reservationRoomStayGuest?date=2021-05-2710-11&integrationId=108



Response

Array of elements of type ExpensesFromGuest.

Entity

Insert excerpt
ExpensesFromGuest
ExpensesFromGuest
nopaneltrue

Example response

Code Block
themeDJango
[{
	"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
}]