Actions30
- Accommodations API Actions
- Administrations API Actions
- Contacts API Actions
- Invoices API Actions
- Price Calculation API Actions
- Rates API Actions
- Reservations API Actions
- Timezones API Actions
Overview
This node interacts with the Starfish API for CampingCare and HotelCare, specifically focusing on the Rates API to update rate details. It allows users to modify rate attributes such as closure status, minimum and maximum stay durations, rate name, parent rate linkage, and pricing rules. This node is beneficial for managing accommodation pricing dynamically, for example, updating seasonal rates or special offer conditions in a booking system.
Use Case Examples
- Updating a rate to mark it as closed for a specific period.
- Changing the minimum and maximum stay requirements for a rate.
- Modifying the pricing rules of a rate to apply a fixed discount or percentage increase.
Properties
| Name | Meaning |
|---|---|
| Rate ID | ID of the rate to retrieve and update, required to specify which rate to modify. |
| Closed | Indicates if the rate is closed (1) or open (0). |
| Minimum Stay | Minimum number of days required for a stay under this rate, from 0 to 366 days. |
| Maximum Stay | Maximum number of days allowed for a stay under this rate, from 0 to 366 days. |
| Name | Name of the rate to identify or describe it. |
| Parent ID | ID of a parent rate from which this rate inherits prices. |
| Rules | Pricing rules for the rate, defined as a single rule with type (fixed or percentage) and amount. |
| Request Options | Settings for request handling such as batching, SSL certificate validation, proxy usage, and timeout duration. |
Output
JSON
id- The unique identifier of the updated rate.name- The name of the updated rate.closed- Indicates if the rate is closed (1) or open (0).minimum_stay- Minimum stay duration for the rate.maximum_stay- Maximum stay duration for the rate.parent_id- ID of the parent rate if applicable.rules- Array of pricing rules applied to the rate, including type and amount.
Dependencies
- Starfish API for CampingCare and HotelCare
Troubleshooting
- Ensure the Rate ID is provided and valid; missing or incorrect IDs will cause errors.
- Verify API credentials and permissions to access and update rates.
- Check network connectivity and proxy settings if requests fail.
- If SSL issues occur, consider enabling the option to ignore SSL certificate validation, but be aware of security risks.
Links
- Starfish API Documentation - Official documentation for the Starfish API used by CampingCare and HotelCare.