PromotionRuleInput
No description
input PromotionRuleInput {
name: String
description: JSON
cataloguePredicate: CataloguePredicateInput
orderPredicate: OrderPredicateInput
rewardValueType: RewardValueTypeEnum
rewardValue: PositiveDecimal
rewardType: RewardTypeEnum
channels: [ID!]
gifts: [ID!]
}
Fields
PromotionRuleInput.name
● String
scalar miscellaneous
Promotion rule name.
PromotionRuleInput.description
● JSON
scalar miscellaneous
Promotion rule description.
PromotionRuleInput.cataloguePredicate
● CataloguePredicateInput
input discounts
Defines the conditions on the catalogue level that must be met for the reward to be applied.
PromotionRuleInput.orderPredicate
● OrderPredicateInput
input discounts
Defines the conditions on the checkout/draft order level that must be met for the reward to be applied.
Added in Saleor 3.19This API is currently in Feature Preview and can be subject to changes at later point.
PromotionRuleInput.rewardValueType
● RewardValueTypeEnum
enum discounts
Defines the promotion rule reward value type. Must be provided together with reward value.
PromotionRuleInput.rewardValue
● PositiveDecimal
scalar miscellaneous
Defines the discount value. Required when catalogue predicate is provided.
PromotionRuleInput.rewardType
● RewardTypeEnum
enum discounts
Defines the reward type of the promotion rule.
Added in Saleor 3.19This API is currently in Feature Preview and can be subject to changes at later point.
PromotionRuleInput.channels
● [ID!]
list scalar miscellaneous
List of channel ids to which the rule should apply to.
PromotionRuleInput.gifts
● [ID!]
list scalar miscellaneous
Product variant IDs available as a gift to choose.
Added in Saleor 3.19This API is currently in Feature Preview and can be subject to changes at later point.
Member Of
PromotionCreateInput
input