put Reservation
PUT {{HostName}}/book/v0/hotels/{{HotelCode}}/reservations/{{ConfirmationNum}}
Sample message to modify to 2 nights, with rate changes. Modify Reservation full overlay
Request Body
{"reservations"=>[{"reservationIdList"=>[{"id"=>"{{ConfirmationNum}}", "type"=>"Confirmation", "idContext"=>"Central", "idExtension"=>"1"}], "roomStay"=>{"arrivalDate"=>"{{currentdateplus1}}", "departureDate"=>"{{currentdateplus3}}", "roomRates"=>[{"guestCounts"=>{"adults"=>2}, "roomType"=>"{{RoomTypeCode}}", "ratePlanCode"=>"{{RatePlanCode}}", "numberOfUnits"=>1, "start"=>"{{currentdateplus1}}", "end"=>"{{currentdateplus2}}"}], "guarantee"=>{"guaranteeCode"=>"GX"}, "printRate"=>true}, "reservationGuests"=>[{"profileInfo"=>{"profile"=>{"customer"=>{"personName"=>[{"surname"=>"{{$randomLastName}}", "givenName"=>"{{$randomFirstName}}", "nameTitle"=>"Mr and Mrs", "nameType"=>"Primary", "email"=>"{{$randomEmail}}", "phoneNumber"=>"{{$randomPhoneNumber}}", "address"=>{"addressLine"=>["{{$randomStreetAddress}}"], "cityName"=>"{{$randomCity}}", "postalCode"=>"CAA-90017", "country"=>{"code"=>"US"}, "state"=>"CA"}}], "language"=>"en-us"}, "profileType"=>"Guest"}}, "primary"=>true}], "reservationPaymentMethods"=>[{"paymentMethod"=>"5", "folioView"=>"1", "paymentCard"=>{"cardType"=>"VA", "cardNumber"=>"4444333322221111", "expirationDate"=>"06/25", "cardHolderName"=>"Card Holder Name"}}], "hotelCode"=>"{{HotelCode1}}", "messageId"=>"{{$randomUUID}}", "comments"=>[{"comment"=>{"text"=>{"value"=>"Channel Text note\n1 king bed\nNon-Smoking\nBill guest full stay"}, "commentTitle"=>"Notes from channel", "notificationLocation"=>"RESERVATION", "type"=>"GEN", "internal"=>true, "confidential"=>false, "overrideInternal"=>false}}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string | ||
x-channelCode | string | ||
x-app-key | string |