HotelPlanet

Complete hotel booking and management system. Search hotels, check availability, make bookings, and manage reservations. Perfect for travel agencies, booking platforms, and hotel management workflows.

Overview

This node integrates with a hotel booking and management system, enabling workflows to search hotels, check availability, make bookings, and manage reservations. It is ideal for travel agencies, booking platforms, or hotel management systems that want to automate hotel-related operations within n8n.

Specifically, the "Book Hotel" operation allows users to book hotel rooms by providing guest details, room selections, and stay dates. This can be used in scenarios such as:

  • Automating hotel reservations after customer confirmation.
  • Integrating hotel booking into a larger travel itinerary workflow.
  • Managing group bookings by specifying multiple room IDs.

Properties

Name Meaning
Hotel ID Identifier of the hotel where the booking will be made.
Check-in Date The date when the guest will check into the hotel.
Check-out Date The date when the guest will check out of the hotel.
Number of Guests Total number of guests staying in the booked rooms.
Room IDs Comma-separated list of specific room identifiers to book within the hotel.
Guest First Name First name of the primary guest making the booking.
Guest Last Name Last name of the primary guest.
Guest Email Email address of the guest for contact and confirmation.
Guest Phone Phone number of the guest (optional contact information).
Special Requests Any additional requests or notes related to the booking (optional).

Output

The node outputs JSON data containing the response from the hotel booking API. On successful booking, this includes booking confirmation details such as booking ID, hotel info, room details, guest info, and booking status.

If the booking fails, the output JSON contains an error message describing the failure reason.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the hotel booking service.
  • The base URL for the hotel API is configured via credentials; defaults to http://localhost:3000 if not set.
  • Uses HTTP requests to interact with the external hotel booking API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing hotel ID or room IDs may cause booking failures.
    • Incorrect date formats or check-out dates earlier than check-in dates will result in errors.
    • Missing required guest information (name, email) can cause the API to reject the booking.
    • Network connectivity or incorrect API base URL configuration can lead to request failures.
  • Error messages:

    • "API request failed" indicates a generic failure from the hotel API; check the API response for more details.
    • Errors returned from the API are passed through in the output JSON under an error field.
    • If the node throws an error about unsupported operations, verify that the selected operation is valid.
  • Resolution tips:

    • Ensure all required fields are correctly filled before executing the node.
    • Validate date inputs and ensure they follow ISO date format.
    • Confirm API credentials and base URL are correctly configured in n8n.
    • Use the "Continue on Fail" option to handle errors gracefully in workflows.

Links and References

  • No direct external links provided in the source code.
  • For further details, consult the documentation of the hotel booking API you connect to with this node.

Discussion