Operation
This endpoint allow to the user to send a list of ReservationRoomStayService to be added in the ReservationRoomStay.
Rw ui textbox macro | ||
---|---|---|
| ||
Only accessible with permission of pms.integration.reservation |
Style |
---|
table { width: 100%; } body.page-gadget { padding-top: 20px; } .separator{ margin: 5px 0; } |
Div | ||
---|---|---|
| ||
POST |
Div | ||
---|---|---|
| ||
https://{environment}.ulysescloud.com/piublic/api/{version}/con/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
Code Block | ||||
---|---|---|---|---|
| ||||
PUT https://prodpublicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservationRoomStay/1/reservationRoomStayService |
Example body
Code Block | ||
---|---|---|
| ||
[{ "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
Code Block | ||
---|---|---|
| ||
{ "httpStatus": "201", "userMessage": "Success", "technicalMessage": "Success ReservationRoomStayService added", "errorCode": "0", "id": 1 } |