Parameters
You can configure definitions for parameters that you can use in pricing items such as catalog items, bundles, product offers, and price components.
- Decimal
- Integer 32
- Integer 64
- Unsigned integer 32
- Unsigned integer 64
- Boolean
- String
- Datetime
- Catalog items — Define the linkage to parameters in the associated offer or bundle.
- Bundles — Define the linkage to parameters in the associated offer or price component.
- Offers — Define the linkage to parameters in associated price components.
You can set parameter values within a catalog definition or at purchase time. This feature allows you to customize price components, offers, bundles, and catalog items without requiring you to create and upload new pricing.
Percentage Discount Example
In this example, a percentage_discount parameter is added to a purchase discount price component, and linked to a purchase_discount_percent parameter used in an offer. The price component uses the percentage_discount parameter for calculating the percentage discount to give on a purchase based on the value passed to it using the purchase_discount_percent parameter from the offer.
A catalog item configured for this offer defines a 10% discount by passing a constant of 0.10 to the offer, which then passes it to the discount price component to give a 10% discount. In addition, a second special discount catalog item, configured for the offer, uses a special_discount parameter that is linked to the offer purchase_discount_percent parameter. In this case, at purchase time, the discount percentage can be set to any valid value without having to change the underlying pricing.