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
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | ||
propertyId | Integer | true | ||
reservationRoomStayId | Integer | true |
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 }