Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

Operation

This endpoint allow to the user to send a list of ReservationRoomStayService to be added in the ReservationRoomStay.

POST
https://{environment}.ulysescloud.com/api/{version}/chain/{chainId}/property/{propertyId}/reservationRoomStay/{reservationRoomStayId}/reservationRoomStayService


Request

PropertyTypeRequiredDefault valueDescription

chainId

Integertrue

propertyIdIntegertrue

reservationRoomStayIdIntegertrue

Example request

PUT https://prod.ulysescloud.com/api/v1/chain/1/property/1/reservationRoomStay/1/reservationRoomStayService


Body

An array of elements of type ReservationRoomStayService.

Example body

[{
	"service": {
		"id": 233,
		"name": "Pet"
	},
	"startDate": "2019-05-03",
	"endDate": "2019-05-04",
	"quantity": 1,
	"reservationRoomStayServiceDailyList": [{
			"date": "2019-05-03",
			"rate": null,
			"amountAfterTax": 10,
			"currency": {
				"code": "EUR",
				"name": "Euro"
			},
			"offer": null,
			"offerAmountDiscount": null,
			"offerPercentDiscount": null,
			"promotion": null,
			"promotionAmountDiscount": null,
			"promotionPercentDiscount": null,
			"postingDate": null
		},
		{
			"date": "2019-05-04",
			"rate": null,
			"amountAfterTax": 11,
			"currency": {
				"code": "EUR",
				"name": "Euro"
			},
			"offer": null,
			"offerAmountDiscount": null,
			"offerPercentDiscount": null,
			"promotion": null,
			"promotionAmountDiscount": null,
			"promotionPercentDiscount": null,
			"postingDate": null
		}
	]
}]

Response

A success or error message.

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success ReservationRoomStayService added",
  "errorCode": "0",
  "id": 1
}
  • No labels