Add Service to ReservationRoomStay [POST]

Add Service to ReservationRoomStay [POST]

Operation

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







POST





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





Request

Property

Type

Required

Type parameter

Default value

Description

Property

Type

Required

Type parameter

Default value

Description

chainId

Integer

true

path parameter





propertyId

Integer

true

path parameter





reservationRoomStayId

Integer

true

path parameter







Example request

PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/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 }



Related content