Skip to main content

PromotionRuleUpdateInput

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

PromotionRuleUpdateInput.name ● String scalar miscellaneous

Promotion rule name.

PromotionRuleUpdateInput.description ● JSON scalar miscellaneous

Promotion rule description.

PromotionRuleUpdateInput.cataloguePredicate ● CataloguePredicateInput input discounts

Defines the conditions on the catalogue level that must be met for the reward to be applied.

PromotionRuleUpdateInput.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.19
This API is currently in Feature Preview and can be subject to changes at later point.

PromotionRuleUpdateInput.rewardValueType ● RewardValueTypeEnum enum discounts

Defines the promotion rule reward value type. Must be provided together with reward value.

PromotionRuleUpdateInput.rewardValue ● PositiveDecimal scalar miscellaneous

Defines the discount value. Required when catalogue predicate is provided.

PromotionRuleUpdateInput.rewardType ● RewardTypeEnum enum discounts

Defines the reward type of the promotion rule.

Added in Saleor 3.19
This API is currently in Feature Preview and can be subject to changes at later point.

PromotionRuleUpdateInput.addChannels ● [ID!] list scalar miscellaneous

List of channel ids to add.

PromotionRuleUpdateInput.removeChannels ● [ID!] list scalar miscellaneous

List of channel ids to remove.

PromotionRuleUpdateInput.addGifts ● [ID!] list scalar miscellaneous

List of variant IDs available as a gift to add.

Added in Saleor 3.19
This API is currently in Feature Preview and can be subject to changes at later point.

PromotionRuleUpdateInput.removeGifts ● [ID!] list scalar miscellaneous

List of variant IDs available as a gift to remove.

Added in Saleor 3.19
This API is currently in Feature Preview and can be subject to changes at later point.

Member Of

promotionRuleUpdate mutation