Skip to main content
Skip to main content

UpdateRuleTypeDTO

The data to update in a rule type. The id is used to identify which price set to update.

idstringRequired
The ID of the rule type to update.
namestring
The display name of the rule type.
rule_attributestring
The unique name used to later identify the rule_attribute. For example, it can be used in the context parameter of the calculatePrices method to specify a rule for calculating the price.
default_prioritynumber
The priority of the rule type. This is useful when calculating the price of a price set, and multiple rules satisfy the provided context. The higher the value, the higher the priority of the rule type.
Was this section helpful?