Post Reservation -> with Credit Card

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"=>"2023-07-01", "end"=>"2023-07-02"}]}, "stayProfiles"=>[{"profileIdList"=>[{"id"=>"{{ProfileId}}", "type"=>"Profile"}], "reservationProfileType"=>"Group"}], "guestCounts"=>{"adults"=>"1", "children"=>"0"}, "roomType"=>"{{RoomTypeCode}}", "ratePlanCode"=>"{{RatePlanCode}}", "start"=>"2023-07-01", "end"=>"2023-07-02", "suppressRate"=>true, "marketCode"=>"BUSINESS", "marketCodeDescription"=>"Business Association", "sourceCode"=>"PHONE", "sourceCodeDescription"=>"Phone Call", "numberOfUnits"=>"1", "pseudoRoom"=>false, "roomTypeCharged"=>"{{RoomTypeCode}}", "houseUseOnly"=>false, "complimentary"=>false, "fixedRate"=>true, "discountAllowed"=>false, "bogoDiscount"=>false}], "guestCounts"=>{"adults"=>"1", "children"=>"0"}, "arrivalDate"=>"2023-07-01", "departureDate"=>"2023-07-02", "guarantee"=>{"guaranteeCode"=>"6PM", "shortDescription"=>"6PM Hold"}, "roomNumberLocked"=>false, "printRate"=>false}, "reservationGuests"=>[{"profileInfo"=>{"profile"=>{"customer"=>{"personName"=>[{"givenName"=>"Jack", "surname"=>"Smith", "nameType"=>"Primary"}, {"nameType"=>"External"}], "language"=>"E"}, "profileType"=>"Guest"}}, "primary"=>true}], "reservationProfiles"=>{"reservationProfile"=>[{"profileIdList"=>[{"id"=>"{{ProfileId}}", "type"=>"Profile"}], "reservationProfileType"=>"Group"}]}, "reservationPaymentMethods"=>[{"paymentMethod"=>"CA", "folioView"=>"1"}], "comments"=>[{"comment"=>{"text"=>{"value"=>"Reservation Notes"}, "commentTitle"=>"Res General Notes", "notificationLocation"=>"RESERVATION", "type"=>"GEN", "internal"=>false}}], "reservationPackages"=>[{"packageHeaderType"=>{"primaryDetails"=>{"description"=>"Champage on arrival in Room"}, "transactionDetails"=>{"allowance"=>true, "currency"=>"USD", "postingType"=>"D", "calculationRule"=>"F"}, "postingAttributes"=>{"addToRate"=>false, "printSeparateLine"=>false, "postNextDay"=>false, "forecastNextDay"=>false}}, "scheduleList"=>[{"consumptionDate"=>"2023-07-01", "unitPrice"=>"25", "computedResvPrice"=>"25", "unitAllowance"=>"25", "reservationDate"=>"2023-07-01", "originalUnitPrice"=>"25", "originalUnitAllowance"=>"25"}], "consumptionDetails"=>{"defaultQuantity"=>"1", "totalQuantity"=>"1", "allowanceConsumed"=>false}, "packageCode"=>"CHAMP", "startDate"=>"2023-07-01", "endDate"=>"2023-07-02", "source"=>"Reservation"}], "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

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