post Reservation -> add guest and company profile to reservation
POST {{HostName}}/rsv/v1/hotels/{{HotelId}}/reservations/
Request Body
{"reservations"=>{"reservation"=>[{"sourceOfSale"=>{"sourceType"=>"PMS", "sourceCode"=>"{{HotelId}}"}, "roomStay"=>{"roomRates"=>[{"total"=>{"amountBeforeTax"=>"145"}, "rates"=>{"rate"=>[{"base"=>{"amountBeforeTax"=>"145", "currencyCode"=>"USD"}, "shareDistributionInstruction"=>"Full", "total"=>{"amountBeforeTax"=>"145"}, "start"=>"{{currentdate}}", "end"=>"{{currentdateplus1}}"}]}, "guestCounts"=>{"adults"=>"1", "children"=>"0"}, "roomType"=>"{{RoomTypeCode}}", "ratePlanCode"=>"{{RatePlanCode}}", "start"=>"{{currentdate}}", "end"=>"{{currentdateplus1}}", "suppressRate"=>true, "marketCode"=>"BAR", "sourceCode"=>"PHONE", "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"=>"Sam", "middleName"=>"F", "surname"=>"Smith", "nameType"=>"Primary"}, {"nameType"=>"External"}], "language"=>"E"}, "addresses"=>{"addressInfo"=>[{"address"=>{"addressLine"=>["Riverside Corporate Park", "4 Julius Avenue"], "cityName"=>"North Ryde", "postalCode"=>"2113", "state"=>"NSW", "country"=>{"value"=>"AU", "code"=>"AU"}, "language"=>"EN", "type"=>"HOME", "primaryInd"=>true}}]}, "emails"=>{"emailInfo"=>{"email"=>{"emailAddress"=>"example@example.com", "type"=>"HOME", "typeDescription"=>"", "primaryInd"=>true}}}, "profileType"=>"Guest"}}, "primary"=>true}, {"profileInfo"=>{"profile"=>{"company"=>{"companyName"=>"Oracle Australia "}, "addresses"=>{"addressInfo"=>{"address"=>{"addressLine"=>["Riverside Corporate Park", "4 Julius Avenue"], "cityName"=>"North Ryde", "postalCode"=>"2113", "state"=>"NSW", "country"=>{"value"=>"AU", "code"=>"AU"}, "language"=>"E", "type"=>"BUSINESS"}}}, "profileType"=>"COMPANY"}}}], "reservationPaymentMethods"=>[{"paymentMethod"=>"CA", "folioView"=>"1"}], "hotelId"=>"{{HotelId}}", "roomStayReservation"=>true, "reservationStatus"=>"Reserved", "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 |