PromotionRule Object
Represents the promotion rule that specifies the conditions that must be met to apply the promotion discount.
type PromotionRule implements Node {
id: ID!
name: String
description: JSON
promotion: Promotion
channels: [Channel!]
rewardValue: PositiveDecimal
rewardValueType: RewardValueTypeEnum
predicateType: PromotionTypeEnum
cataloguePredicate: JSON
orderPredicate: JSON
rewardType: RewardTypeEnum
translation(languageCode: LanguageCodeEnum!): PromotionRuleTranslation
giftIds: [ID!]
giftsLimit: Int
}
Fields
id ● ID!
name ● String
Name of the promotion rule.
description ● JSON
Description of the promotion rule.
promotion ● Promotion
Promotion to which the rule belongs.
channels ● [Channel!]
List of channels where the rule applies.
rewardValue ● PositiveDecimal
The reward value of the promotion rule. Defines the discount value applied when the rule conditions are met.
Added in Saleor 3.19rewardValueType ● RewardValueTypeEnum
The type of reward value of the promotion rule.
predicateType ● PromotionTypeEnum
The type of the predicate that must be met to apply the reward.
Added in Saleor 3.19cataloguePredicate ● JSON
The catalogue predicate that must be met to apply the rule reward.
orderPredicate ● JSON
The checkout/order predicate that must be met to apply the rule reward.
Added in Saleor 3.19rewardType ● RewardTypeEnum
The reward type of the promotion rule.
Added in Saleor 3.19translation ● PromotionRuleTranslation
Returns translated promotion rule fields for the given language code.
languageCode ● LanguageCodeEnum!
A language code to return the translation for promotion rule.
giftIds ● [ID!]
Product variant IDs available as a gift to choose.
Added in Saleor 3.19giftsLimit ● Int
Defines the maximum number of gifts to choose from the gifts list.
Added in Saleor 3.19Interfaces
Node
An object with an ID
Member Of
Promotion object ● PromotionRuleCreate object ● PromotionRuleCreated object ● PromotionRuleDelete object ● PromotionRuleDeleted object ● PromotionRuleTranslate object ● PromotionRuleUpdate object ● PromotionRuleUpdated object