Documentation

n8n-nodes-hotelplanet

This is an n8n community node. It lets you use HotelPlanet API in your n8n workflows.

n8n is a fair-code licensed workflow automation tool.

Installation
Operations
Credentials
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

HotelPlanet

  • Get Hotels by Location: Search for hotels by country and/or city with optional filters
  • Search Hotels: Search hotels by query string
  • Get Hotel Details: Get detailed information about a specific hotel
  • Check Availability: Check hotel availability for specific dates and guests
  • Book Hotel: Book a hotel room with guest information
  • Get Booking Details: Get details of a specific booking
  • Cancel Booking: Cancel an existing booking
  • Get User Bookings: Get all bookings for a user by email

Credentials

HotelPlanet API

To use this node, you need to configure the HotelPlanet API credentials:

  1. Base URL: The base URL of your HotelPlanet API server (default: http://localhost:3000)
  2. API Key: Optional API key for authentication (if required)

Resources

Version history

1.0.0

  • Initial release
  • Support for all hotel booking operations
  • Integration with HotelPlanet API

Usage Examples

Example 1: Search for Hotels in New York

  1. Add the HotelPlanet node to your workflow
  2. Configure credentials with your API base URL
  3. Select "Get Hotels by Location" operation
  4. Set Country to "USA" and City to "New York"
  5. Execute the workflow

Example 2: Book a Hotel Room

  1. Add the HotelPlanet node to your workflow
  2. Configure credentials with your API base URL
  3. Select "Book Hotel" operation
  4. Fill in all required fields:
    • Hotel ID
    • Room IDs (comma-separated)
    • Check-in and Check-out dates
    • Guest information
  5. Execute the workflow

Example 3: Check Hotel Availability

  1. Add the HotelPlanet node to your workflow
  2. Configure credentials with your API base URL
  3. Select "Check Availability" operation
  4. Fill in:
    • Hotel ID
    • Check-in and Check-out dates
    • Number of guests and rooms
  5. Execute the workflow

Development

To build the node:

npm run build

To watch for changes:

npm run dev

License

MIT

Discussion