API - Planyo Web Services - set_resource_pricing

You are here: Planyo » Help » API » set_resource_pricing

set_resource_pricing

Description:

This function sets the pricing for given resource. With a single call you can set prices for all the rules of Pricing Manager.

Input:

resource_id int required
ID of the resource
rule_price_type_XXX int optional
Price type for rule ID XXX. If not passed, 0 is assumed. One of the following values: 0=per default time unit, this depending on the resource, can be quarter, hour, or day, 1=per person, 2=per time unit and person, 3=per unit, 4=percentage, 6=per hour, 7=per day, 8=per week, 9=per week and person, 14=per reservation, 15=per adult, 16=per time unit and adult, 17=per child, 18=per time unit and child; special values: 11=additional info, 10=pre-payment amount, 5=unavailability message, 13=apply free hours
rule_price_value_XXX string required
Price for rule ID XXX (e.g. 10 to reset the price to 10 or +10 to add 10 to the price calculated so far). See Q181 for the description of possible formats. This field never includes the currency
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.

Output:

none

API playground:

Click here to test this function in the API playground.
Planyo has a new Terms of Service and Privacy Policy, effective May 25, 2018. By using Planyo on or after this date you agree to the new conditions (the only change being GDPR compliance).