post Rate Plans

POST {{HostName}}/rtp/v1/hotels/{{HotelId}}/ratePlans

Request Body

{"ratePlan"=>{"primaryDetails"=>{"description"=>{"defaultText"=>"Rate Code Description Goes Here test"}, "startSellDate"=>"2023-05-03", "endSellDate"=>"2023-12-31", "privilegedRate"=>false, "privilegedRateRestriction"=>false, "lockStatus"=>"Unlocked"}, "classifications"=>{"rateCategory"=>"HOTEL", "marketCode"=>"LEISURE"}, "transactionDetails"=>{"folioText"=>{"defaultText"=>"Accommodation"}, "transactionCode"=>"1000", "currencyCode"=>"USD", "rateIncludesTax"=>true}, "roomTypeList"=>[{"code"=>"ECO"}, {"code"=>"SGL"}, {"code"=>"DBL"}, {"code"=>"SUP"}, {"code"=>"JSUI"}, {"code"=>"SUI"}], "controls"=>{"sell"=>{"minimumStayThrough"=>"1", "minimumLengthOfStay"=>"1"}, "yield"=>{"yieldable"=>"NonYieldable"}}, "distribution"=>{"restrictionUpdate"=>false, "rateUpdate"=>false, "myFidelioUploadAllowed"=>false, "channelRateMappingExists"=>false, "channelAllowed"=>false}, "ratePlanBasedOnRates"=>[{"basedOnRatePlanType"=>"None"}], "mobileCheckinAllowed"=>false, "mobileCheckoutAllowed"=>false, "hotelId"=>"{{HotelId}}", "ratePlanCode"=>"TEST99", "supressRate"=>false, "printRate"=>true, "discountAllowed"=>false, "redemption"=>false, "bARRate"=>false, "daily"=>false, "tiered"=>false, "dayUse"=>false, "dayType"=>false, "complimentary"=>false, "houseUse"=>false, "negotiated"=>false, "ownerRate"=>false, "membershipEligible"=>true, "advancedDailyBase"=>false, "advancedDailyRate"=>false}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
x-hotelidstring
x-app-keystring