post Reservation -> with Transport Information

POST {{HostName}}/book/v0/hotels/{{HotelCode1}}/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"=>"5"}, "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"}}, "arrivalTransport"=>{"comments"=>"Arrival by flight", "type"=>"AIR", "transportCode"=>"123", "carrierCode"=>"AI", "stationCode"=>"BLR", "dateTime"=>"{{currentdateplus10}}T19:21:00.000Z", "transportationReqd"=>true}, "departureTransport"=>{"comments"=>"Departure by flight", "type"=>"AIR", "transportCode"=>"123", "carrierCode"=>"AI", "stationCode"=>"BLR", "dateTime"=>"{{currentdateplus11}}T19:21:00.000Z", "transportationReqd"=>true}, "primary"=>true}], "reservationPaymentMethods"=>[{"paymentMethod"=>"5", "folioView"=>"1", "paymentCard"=>{"cardType"=>"AX", "cardNumber"=>"311111111111111", "expirationDate"=>"06/29", "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}}]}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring
x-channelCodestring
x-app-keystring
x-hdp-tracing-keystring