/
Cancel Reservation [PUT]
Cancel Reservation [PUT]
Operation
Information of the operation
PUT
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/reservation/{reservationId}/cancel
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | ||
propertyId | Integer | true | path parameter | ||
reservationId | Integer | true | path parameter | ||
sendEmail | Boolean | false | request parameter | false |
Example request
PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservation/1/cancel
Body
An array of elements of type ReservationRoomStayStatusInfoChange.
Example body
{ "chainCancellationReasonTypeId":1, "cancellationReason":"Agency change the prices", "refundDeposit": false }
Response
A success or error message.
Example response
{ "httpStatus": "200", "userMessage": "Success", "technicalMessage": "Success ReservationRoomStay/s Status updated to cancel.", "errorCode": "0", "moreInfo": "0", "id": 1, "entity": null, "responseApiErrorList": null }
{ "httpStatus": "200", "userMessage": "Success", "technicalMessage": "Success ReservationRoomStay/s Status updated to cancel AND related Deposit/s refunded.", "errorCode": "0", "moreInfo": "0", "id": 1, "entity": null, "responseApiErrorList": null }
{ "httpStatus": "500", "userMessage": "Error", "technicalMessage": "Success ReservationRoomStay/s Status updated to cancel BUT related Deposit/s NOT refunded.", "errorCode": "0", "moreInfo": "0", "id": 1, "entity": null, "responseApiErrorList": null }
, multiple selections available,
Related content
Policy Charges Cancellation Summary [GET]
Policy Charges Cancellation Summary [GET]
More like this
Reservation Endpoints
Reservation Endpoints
Read with this
Operations
Operations
Read with this
Reservation By Id [GET]
Reservation By Id [GET]
More like this
Reservation Save [POST]
Reservation Save [POST]
More like this
Get Assigned Room to ReservationRoomStay [GET]
Get Assigned Room to ReservationRoomStay [GET]
More like this