API - Planyo Web Services - get_pricing_manager_rules

You are here: Planyo » Pomoc » API » get_pricing_manager_rules

get_pricing_manager_rules

Description:

Lists pricing manager rules.

Input:

site_id int optional
Planyo site ID. Needed only for metasite API keys.
method string required
must be set to get_pricing_manager_rules
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:

pricing_manager_rules array
Detailed information about the rules. Array keys are rule IDs. The values: rule_id, rule_number (rule number, as in Pricing Manager), rule_title, rule_type (see pricing_rules above), rule_subtype, rule_value, rule_value_2, adv_condition_rules (comma-separated rules used for the advanced condition), adv_condition_type (type of the advanced condition: 0: "if any of the following rules ... were applied", 1: "if all of the following rules ... were applied", 2: "if none of the following rules ... were applied", 3: "for the times for which the following rules ... were applied"), adv_condition_extra (null: no extra condition, 1: only when this rule increases the price, 2: only when this rule decreases the price)

API playground:

Click here to test this function in the API playground.