Rates

The rate objects (or resource rates) describe available resource rates in the system. Rates are very similar to the plans.

You can retrieve individual rates as well as a list of all your rates.

Here is the list of the plan object properties:

Rate

PropertyTypeRequiredDescription
namestringtrueThe name of the plan in hand. It appears everywhere in the system.
extrasExtrastrueAn array of _ids of the various extras associated with the rate. Each extra is the _id of a one-off billing plan.
amenitiesarraytrueAn array of _ids of the various amenities associated with the rate.
pricenumbertrueThe default hourly/daily price of the rate. If the rate consists of multiple rates, each one will have its own price
locationsLocationtrueList of all locations where the rate is present. If empty, all locations are assumed.
intervalLengthobjecttrueThe interval of the rate - can be either day or hour.
ratesarray of objectstrueContains all rates and their respective intervals. If there's a resource rate, that has both daily rates and hourly rates, they'll present as a separate object with a different intervalQuantity and boolean properties for whether it's a weekend rate or a half-day rate
createdAtdatereadonlyThe date when the rate has been created.
createdByidreadonlyThe user that created the rate.
modifiedAtdatereadonlyThe user that did the last modification to the rate. If no update is made this field will match the createdBy field.
modifiedByidreadonlyThe user that did the last modification to the rate. Before the first modification, this field equals to the createdBy field.