Create a new reservation with roomId
POST {{HostName}}/rsv/v1/hotels/{{HotelId}}/reservations
Request Body
{"reservations"=>{"reservation"=>[{"sourceOfSale"=>{"sourceType"=>"PMS", "sourceCode"=>"{{HotelId}}"}, "roomStay"=>{"roomRates"=>[{"total"=>{"amountBeforeTax"=>"200"}, "rates"=>{"rate"=>[{"base"=>{"amountBeforeTax"=>"200", "currencyCode"=>"USD"}, "shareDistributionInstruction"=>"Full", "total"=>{"amountBeforeTax"=>"200"}, "start"=>"{{currentdate}}", "end"=>"{{currentdateplus1}}"}]}, "guestCounts"=>{"adults"=>"1", "children"=>"0"}, "roomType"=>"{{RoomTypeCode}}", "ratePlanCode"=>"{{RatePlanCode}}", "start"=>"{{currentdate}}", "end"=>"{{currentdateplus1}}", "suppressRate"=>true, "marketCode"=>"LEISURE", "marketCodeDescription"=>"Leisure", "sourceCode"=>"PHONE", "sourceCodeDescription"=>"Over the Phone", "roomId"=>"328", "numberOfUnits"=>"1", "pseudoRoom"=>false, "roomTypeCharged"=>"{{RoomTypeCode}}", "houseUseOnly"=>false, "complimentary"=>false, "fixedRate"=>true, "discountAllowed"=>false, "bogoDiscount"=>false}], "guestCounts"=>{"adults"=>"1", "children"=>"0"}, "arrivalDate"=>"{{currentdate}}", "departureDate"=>"{{currentdateplus1}}", "guarantee"=>{"guaranteeCode"=>"6PM", "shortDescription"=>"6PM Hold"}, "roomNumberLocked"=>false, "printRate"=>false}, "reservationGuests"=>[{"profileInfo"=>{"profile"=>{"customer"=>{"personName"=>[{"givenName"=>"Jane", "surname"=>"Smith", "nameType"=>"Primary"}, {"nameType"=>"External"}], "language"=>"E"}, "profileType"=>"Guest"}}, "primary"=>true}], "reservationPaymentMethods"=>[{"paymentMethod"=>"CA", "folioView"=>"1"}], "comments"=>[{"comment"=>{"text"=>{"value"=>"Please ensure I have tea in my room"}, "commentTitle"=>"General Notes", "notificationLocation"=>"RESERVATION", "type"=>"GEN", "internal"=>false}}], "hotelId"=>"{{HotelId}}", "roomStayReservation"=>true, "reservationStatus"=>"Reserved", "computedReservationStatus"=>"DueIn", "walkIn"=>false, "printRate"=>false, "preRegistered"=>false, "upgradeEligible"=>false, "allowAutoCheckin"=>false, "hasOpenFolio"=>false, "allowMobileCheckout"=>false, "allowMobileViewFolio"=>false, "allowPreRegistration"=>false, "optedForCommunication"=>false}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
x-hotelid | string | ||
x-app-key | string |