post Reservation -> Create on Hold
POST {{HostName}}/book/v0/hotels/{{HotelCode}}/reservations
Sample wiht a single night with guest CC on folio 1
Request Body
{"reservations"=>[{"roomStay"=>{"arrivalDate"=>"{{currentdateplus10}}", "departureDate"=>"{{currentdateplus11}}", "roomRates"=>[{"guestCounts"=>{"adults"=>1, "children"=>1, "childAges"=>[4]}, "roomType"=>"{{RoomTypeCode}}", "ratePlanCode"=>"{{RatePlanCode}}", "numberOfUnits"=>1, "start"=>"{{currentdateplus10}}", "end"=>"{{currentdateplus10}}"}], "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"=>"AX", "cardNumber"=>"371449635398431", "expirationDate"=>"06/25", "cardHolderName"=>"SomeChannel VirtualCard"}}], "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}}], "isSessionRequest"=>true}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string | ||
x-channelCode | string | ||
x-app-key | string |