post Cancellation Policy
POST {{HostName}}/rsv/V1/hotels/{{HotelId}}/reservations/{{ReservationId}}/cancellationPolicies
To update an existing reservation in OPERA by adding or updating reservation comments.
Request Body
{"policy"=>{"hotelId"=>"{{HotelId}}", "reservationId"=>{"type"=>"Reservation", "id"=>"{{ReservationId}}"}, "revenueType"=>"Rooms", "policy"=>{"deadline"=>{"absoluteDeadline"=>"2023-07-14"}, "amountPercent"=>{"amount"=>"50"}, "policyCode"=>"FLAT", "manual"=>true}, "percentageDue"=>"100", "comments"=>"FLATRATE", "policyId"=>{"type"=>"PolicyScheduleId", "id"=>"-1"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
x-hotelid | string | ||
x-app-key | string |