post Promotion Codes
POST {{HostName}}/rtp/v1/hotels/{{HotelId}}/promotionCodes/{{PromotionCode}}
Request Body
{"propertyPromotionCode"=>{"propertyPromotionRateCodes"=>[{"rateUseDesc"=>"BAR", "actionType"=>"CREATED", "hotelId"=>"{{HotelId}}", "promotionCode"=>"3FOR4", "rateCode"=>"BAR"}], "hotelId"=>"{{HotelId}}", "promotionCodeDetails"=>{"promotionName"=>{"defaultText"=>"New promotion code description"}, "promotionGroup"=>"SUMMER", "description"=>"Long description goes here", "bookingDate"=>{"startDate"=>"2023-07-08", "endDate"=>"2023-12-31"}, "stayDate"=>{"startDate"=>"2023-07-08", "endDate"=>"2023-06-30"}, "categoryDesc"=>"Long description goes here", "promoInstructions"=>"Any instructions can be added here", "promoInformation"=>"Information about this promo goes here", "upgradeAllowed"=>"Y"}, "promotionCode"=>"3FOR4"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-hotelid | string | ||
x-app-key | string |