post Upsell Rules
POST {{HostName}}/rsv/config/V1/hotels/{{HotelId}}/upsellRules
Request Body
{"upsellRules"=>[{"description"=>"Testing for New Rule", "upsellByRoomType"=>true, "fromRoomTypeOrFromRoomClass"=>"ECO", "toRoomTypeOrToRoomClass"=>"SUP", "startDate"=>"2023-03-03", "endDate"=>"2023-12-31", "rateCodes"=>["BARBB", "BAR"], "upsellByOccupancyLevels"=>false, "formula"=>"FlatAmountAddedToOriginalRate", "upsellAmount"=>"5", "currencyCode"=>"USD", "roundingRule"=>"Down", "useDefaultTrxCode"=>true, "transactionCode"=>{"description"=>"Room Upsell", "transactionCode"=>"1500", "hotelId"=>"{{HotelId}}"}, "hotelId"=>"{{HotelId}}", "upsellRuleCode"=>"UPSELLRULE2"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
x-hotelid | string | ||
x-app-key | string |