PromotionRuleUpdateInput Input Type
No description
input PromotionRuleUpdateInput {
name: String
description: JSON
cataloguePredicate: CataloguePredicateInput
orderPredicate: OrderPredicateInput
rewardValueType: RewardValueTypeEnum
rewardValue: PositiveDecimal
rewardType: RewardTypeEnum
addChannels: [ID!]
removeChannels: [ID!]
addGifts: [ID!]
removeGifts: [ID!]
}
Fields
name ● String
Promotion rule name.
description ● JSON
Promotion rule description.
cataloguePredicate ● CataloguePredicateInput
Defines the conditions on the catalogue level that must be met for the reward to be applied.
orderPredicate ● OrderPredicateInput
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.
rewardValueType ● RewardValueTypeEnum
Defines the promotion rule reward value type. Must be provided together with reward value.
rewardValue ● PositiveDecimal
Defines the discount value. Required when catalogue predicate is provided.
rewardType ● RewardTypeEnum
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.
addChannels ● [ID!]
List of channel ids to add.
removeChannels ● [ID!]
List of channel ids to remove.
addGifts ● [ID!]
List of variant IDs available as a gift to add.
Added in Saleor 3.19This API is currently in Feature Preview and can be subject to changes at later point.
removeGifts ● [ID!]
List of variant IDs available as a gift to remove.
Added in Saleor 3.19This API is currently in Feature Preview and can be subject to changes at later point.
Member Of
promotionRuleUpdate mutation