Booking Website Flow
Contact our team
If you're having trouble, contact us at [email protected] for assistance!
We will focus on three phases of users who make an online hotel reservation to create a functional direct booking website:
Phase 1 - Search And Evaluation
- Input stay requirements โ includes optional parameters like location (city), number of guests, and proposed dates of stay
You can provide your guests an option to select a city by using Get listings cities
- Compare and evaluate results โ The user may view multiple hotel/room/rate
combinations
You can either provide a list of properties using Get listings or provide a list of available properties using Get available listings
The endpoints will provide a list of properties together with the price of the lowest available room, a unique ID, photos, and descriptive data such as location, address, description, and amenity list.
Phase 2 - Selection
-
Browse property details - Allow your users to get a full view of the property using the data you get from Guesty.
Using Get listing calendar, you can show the property calendar and availability in any given time period (up to 2 years ahead). -
Calculate - present the full and final price breakdown using Get reservation quote
-
Decide โ The user decides which hotel/room/rate combination meets their requirements
Phase 3 - Checkout
-
Input guest details โ such as name, address, email address, etc.
-
Input payment details โ For users that use instant book collect the payment details and pass the GuestyPay or Stripe token via API.
-
Confirm reservation - This will instantly register the reservation on the Guesty system and return a unique booking confirmation number for you to provide to your guests.
To create the booking, make aโฏ POST request using Create instant reservation based on quote or Create inquiry for reservation based on quote with the quoteId
, ratePlanId
, ccToken
, guest
, and policy
objects.โฏ
Reservation Amendments
When manipulating reservations created with BEAPI or via the Open API reservations endpoints, please allow up to 60 seconds between requests to allow each to complete and achieve the expected outcome.
The user can complete these phases over single or multiple visits.
Booking Options
Important
- If you have yet to create or receive direct bookings on your Guesty account. Please make sure to activate the booking engine by creating a test reservation in the UI. Booking Engine API reservation requests require this activation to work.
- Ensure that the value you select for Booking options in your Booking Engine API Instance matches the flow you're building; otherwise, reservation creation requests will fail.
Before implementing the checkout flow on your website, please check your settings on Guesty.
For each Booking Engine API instance in Guesty, users can choose how guests will be able to make reservations:
-
Only inquiries: Guests can place a booking request for available dates. Once you confirm the inquiry, obtain the guest's credit card details and enter them manually. This option is helpful when taking payment on location or if you want to pre-approve existing guests without a credit card.
-
Only instant booking: Guests can book available dates according to the availability of the listing. Once the guest's credit card is validated, the dates are booked.
-
Both: Booking engine API can generate both instant bookings and inquiries,
The choice can be left up to the guest or hard-coded into the booking engine by booking with or without a credit card token
Booking Option | Credit card token | Reservation status |
---|---|---|
Only Inquiries | No | Reserved |
Only Instant book | Yes* | Confirmed |
Both (Inquiry) | No | Reserved |
Both (Instant book) | Yes* | Confirmed |
* The reservation will still be created even if the payment method is invalid.
Updates & Cancellations
Guestyโs Booking Engine API does not support post-reservation updates or cancellations by guests. These updates can be made manually on Guesty.
Processing Payment Models
Decide how to collect payments for your guests, depending on the booking option you chose for your Booking Engine API instance:
GuestyPay
You can use the Javascript SDK to easily and quickly implement the capturing and tokenization of a guest's payment method. Find out more here/
By Stripe through Guesty
To charge a guestโs credit card in Guesty, you must generate a payment token in Stripe. Guesty accepts only payment tokens via our API, not credit card details. Follow this guide to learn how.
Note
Only create the payment method in Stripe. Guesty will create the customer or attach the payment method to an existing one when it collects a payment. Attempting that yourself will leaded to a failed payment error.
Once the Stripe token has been generated, you can either use the full response or only the token in the payment method call. Auto Payments can also be set to automate this process.
Using Guestyโs Guest Invoice:
If a credit card token is not added to the reservation, you can collect the payment using Guestyโs Guest Invoice feature.
Record the collected fee in Guesty:
Collect your payment manually using alternative payment methods.
Important
The creation and confirmation of inquiries or reservations are not dependent on the validity of the payment method. They will be processed regardless of the payment method's status.
How to Identify a Listing's Payment Processor Account
To identify the payment processor and account details for every listing, you can use the Get listing's payment provider endpoint
Coupon Codes
Add coupons and offer discounts, which can then be applied to all listings on the connected booking engine.
The coupons are set up on Guesty.
If you are using the 'Reservation V1' endpoints, you can and can be validated using the Get reservation quote endpoint
If you are using the 'Reservation quote' endpoints, the coupons are added to the quote and can be managed using the Update coupon in a quote endpoint and Create a reservation quote and
Coupon Name
Use numbers and letters for your coupons. Coupons containing special characters cannot be redeemed.
Coupon Limits
The limit on a coupon's uses under "Total Uses" is based on the number of reservations that can be created with that coupon. If the limit of 10, 10 guests can use it for one reservation each, or one guest can use it for 10 separate reservations.
Updated 7 months ago