Types > PricingRule
Commerce APITypesPricingRule
PricingRule

Description

Topic: Pricing Rules

Fields

customer_group: CustomerGroup

Customer group to match against

Expandable

Permission bit: "customer_groups.read"


date_range: DateRange

Date range to match against


display_price_difference: Boolean!

Whether price difference should be displayed when this pricing rule matches


id: String!

Unique pricing rule identifier. See also: Unique Identifiers

Example: "pu_EQzGqWoY"


name: String!

Name of the pricing rule

Example: "Winter Sale"


parent_rule: PricingRule

Parent rule to derive original price from

Expandable

Permission bit: "pricing_rules.read"


priority: Int!

Priority of the rule (rule with higher priority is to be evaluated first)

Example: 0


sales_channel: SalesChannel

Sales channel to match against

Expandable

Permission bit: "sales_channels.read"


Used By

Mutations

pricingRulesCreate, pricingRulesModify

Queries

pricingRules, pricingRulesLookup

Types

MinVariantPricing, PricingRule, PricingRuleHistory, VariantPricing

Preview (typescript)

Loading module