set_resource_daily_pricing
This function sets daily pricing values for given resource. With a single call you can set daily prices for any number of dates by passing multiple parameters prefixed with
price_value_, e.g.
price_value_2025-01-01=100&price_value_2025-01-02=110. You must have an existing rule of type 'daily pricing' in order to use this api function. Note that the type of price being set (e.g. USD or USD per night or EUR per person) is set on the level of the 'daily pricing' rule in Pricing Manager -- you only pass the actual price value to this function
resource_id int required
ID of the resource
rule_id int optional
ID of an existing pricing manager rule of type 'daily pricing'. You can skip this parameter in which case the rule ID will be assumed to be the first existing rule of type 'daily pricing'. If you don't have a rule of this type, an error will be returned.
price_value_YYYY-MM-DD float optional
Price for date expressed in the format YYYY-MM-DD. If this value is empty, the currently set price for this date will be removed
method string required
must be set to
set_resource_daily_pricing language string optional
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key string required
your API key -
Click here to get your key. If your API key uses a hash key, you must also include the parameters
hash_key and hash_timestamp.
none
Click here to test this function in the API playground.