Common Workflows-Search Availability and Book a Reservation in OPERA Cloud

Number of APIs: 10

  1. Cancel a reservation POST {{HostName}}/rsv/v1/hotels/{{HotelId}}/reservations/{{ReservationId}}/cancellations

  2. Search hotel availability GET {{HostName}}/par/v0/hotels/{{HotelId}}/availability?roomStayStartDate={{currentdate}}&roomStayEndDate={{currentdateplus1}}&roomStayQuantity=2&adults=1&children=0&limit=5

  3. Get rate plan Details including the long description GET {{HostName}}/par/v0/hotels/{{HotelId}}/rates/{{RatePlanCode}}

  4. Get source codes for a property GET {{HostName}}/lov/v1/listOfValues/{{Name}}?parameterName=HotelCode&includeInactiveFlag=false&parameterValue={{HotelId}}

  5. Get available guarantee policies GET {{HostName}}/par/v0/hotels/{{HotelId}}/guarantees?hotelId={{HotelId}}&ratePlanCode={{RatePlanCode}}&arrivalDate={{currentdate}}

  6. Get payment methods, such as cash, Visa etc GET {{HostName}}/lov/v1/listOfValues/hotels/{{HotelId}}/paymentMethods?includeInactiveFlag=false

  7. Get reservation packages GET {{HostName}}/lov/v1/listOfValues/hotels/{{HotelId}}/adults/{{Adults}}/children/{{Children}}/arrival/{{arrival}}/departure/{{departure}}/reservationPackages

  8. Search for a guest profile GET {{HostName}}/crm/v0/profiles?profileName=Smith&profileType=Guest&summaryInfo=true&searchType=Any&fetchInstructions=Comment

  9. Create a new reservation with a package POST {{HostName}}/rsv/v1/hotels/{{HotelId}}/reservations

  10. Get available packages GET {{HostName}}/rtp/v0/packages?fetchInstructions=Header&fetchInstructions=Items&startDate=2021-04-07&endDate=2021-04-08&children=0&adults=1&hotelId={{HotelId}}&packageCode=CHAMP