HotelPlanet
Actions8
Overview
The node integrates with a hotel booking and management system, allowing users to perform various operations such as searching hotels, checking availability, making bookings, retrieving booking details, and cancelling bookings. Specifically, the Cancel Booking operation enables users to cancel an existing hotel booking by providing the booking ID.
This node is beneficial for travel agencies, booking platforms, or hotel management workflows that need to automate hotel reservation management within their processes. For example, a travel agency could use this node to automatically cancel a customer's booking if their travel plans change, ensuring up-to-date reservation status without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Booking ID | The unique identifier of the booking to be cancelled. |
Output
The output is a JSON object representing the API response from the cancellation request. It typically contains a success field indicating whether the cancellation was successful, and may include additional data or error messages.
Example structure:
{
"success": true,
// Additional fields depending on API response
}
If the cancellation fails, the output will contain an error message describing the failure.
Dependencies
- Requires an API key credential for authenticating with the hotel booking system's API.
- The base URL for the API is obtained from the credentials configuration.
- Uses HTTP DELETE requests to the
/api/bookings/{bookingId}endpoint to cancel bookings.
Troubleshooting
Common issues:
- Invalid or missing Booking ID: Ensure the Booking ID provided is correct and corresponds to an existing booking.
- API authentication errors: Verify that the API key credential is correctly configured and has necessary permissions.
- Network or connectivity problems: Check network access to the API endpoint.
Error messages:
"API request failed": General failure returned by the API; check the error details in the response.- Errors thrown by the node will include the API's error message if available.
To resolve errors, verify input parameters, ensure valid credentials, and confirm the API service is reachable.
Links and References
- No external links are provided in the source code. For more information, consult the documentation of the hotel booking system API used by this node.