Versions Compared

Key

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

Operation

Get a list of Expenses of the ReservationRoomStay.

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.reservation


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}/reservationRoomStay/{reservationRoomStayId}/proforma/expenses



Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
Unique identificator of the chain.
propertyIdIntegertrue
Unique identificator of the property.
reservartionRoomStayIdIntegertrue
Unique identificator of the reservationRoomStay.


Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservationRoomStay/1/proforma/expenses



Response

The response is a list of Expenses objects.

Entity

Insert excerpt
Expenses
Expenses
nopaneltrue


Example response

Code Block
themeDJango
[{
	"customer": {
		"id": 1,
		"name": "Gerald Lèi Simpson"
	},
	"company": null,
	"name": "Gerald Lèi Simpson",
	"taxId": null,
	"street": "003 Merrick Junction",
	"city": "El Paso",
	"stateProvName": null,
	"stateProvCode": null,
	"postalCode": "79950",
	"countryCode": "ES",
	"remark": null,
	"channel": {
		"id": 32,
		"code": "IDS",
		"name": "IDS"
	},
	"source": {
		"id": 47,
		"code": "FAX",
		"name": "Fax"
	},
	"segment": {
		"id": 227,
		"code": "TOU",
		"name": "Tourism"
	},
	"businessDate": null,
	"expensesProductList": [{
		"postingDate": "2019-08-02",
		"quantity": 1,
		"product": {
			"id": 32,
			"code":"DBL",
			"name": "Double",
			"productType": {
				"id": 1,
				"code": "ACC",
				"name": "Accommodation"
			}
		},
		"name": "Double",
		"amountAfterTax": 10.000000,
		"amountBeforeTax": null,
		"currency": {
			"id": 1,
			"code": "EUR",
			"name": "Euro"
		},
		"amountTax": null,
		"amountDiscount": null,
		"amountCommission": null,
		"rate": null,
		"offer": null,
		"offerAmountDiscount": null,
		"offerPercentDiscount": null,
		"promotion": null,
		"promotionAmountDiscount": null,
		"promotionPercentDiscount": null,
		"channel": {
			"id": 32,
			"code": "IDS",
			"name": "IDS"
		},
		"source": {
			"id": 47,
			"code": "FAX",
			"name": "Fax"
		},
		"segment": {
			"id": 227,
			"code": "TOU",
			"name": "Tourism"
		},
		"remark": null,
		"expensesProductTaxList": [{
			"quantity": 1,
			"product": {
				"id": 782,
	 			"code":"TX10",
				"name": "Tax 10%",
				"productType": {
					"id": 8,
					"code": "TAX",
					"name": "Tax"
				}
			},
			"name": "Tax 10%",
			"price": 0.909091,
			"currency": {
				"id": 1,
				"code": "EUR",
				"name": "Euro"
			},
			"amount": null,
			"percentage": 10.000000
		}],
		"expensesProductCommissionList": null,
		"expensesProductDiscountList": null
	}, {
		"postingDate": "2019-08-02",
		"quantity": 1,
		"product": {
			"id": 227,
 			"code":"BR",
			"name": "Breakfast",
			"productType": {
				"id": 2,
				"code": "SER",
				"name": "Service"
			}
		},
		"name": "Breakfast",
		"amountAfterTax": 41.000000,
		"amountBeforeTax": 33.884298,
		"currency": {
			"id": 1,
			"code": "EUR",
			"name": "Euro"
		},
		"amountTax": 7.115702,
		"amountDiscount": 0.000000,
		"amountCommission": 0.000000,
		"rate": null,
		"offer": null,
		"offerAmountDiscount": null,
		"offerPercentDiscount": null,
		"promotion": null,
		"promotionAmountDiscount": null,
		"promotionPercentDiscount": null,
		"channel": {
			"id": 32,
			"code": "IDS",
			"name": "IDS"
		},
		"source": {
			"id": 47,
			"code": "FAX",
			"name": "Fax"
		},
		"segment": {
			"id": 227,
			"code": "TOU",
			"name": "Tourism"
		},
		"remark": null,
		"expensesProductTaxList": [{
			"quantity": 1,
			"product": {
				"id": 797,
	 			"code":"TX21",
				"name": "Tax 21%",
				"productType": {
					"id": 8,
					"code": "TAX",
					"name": "Tax"
				}
			},
			"name": "Tax 21%",
			"price": 7.115702,
			"currency": {
				"id": 1,
				"code": "EUR",
				"name": "Euro"
			},
			"amount": null,
			"percentage": 21.000000
		}],
		"expensesProductCommissionList": null,
		"expensesProductDiscountList": null
	}],
	"totalAmountAfterTax": null,
	"totalAmountBeforeTax": null,
	"totalAmountTax": null,
	"totalAmountDiscount": null,
	"totalAmountCommission": null,
	"nonTaxable": null,
	"total": 51.000000,
	"paid": 0,
	"balance": 51.000000
}]