Skip to main content

promotionRuleCreate Mutation

Creates a new promotion rule.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_RULE_CREATED (async): A promotion rule was created.
promotionRuleCreate(
input: PromotionRuleCreateInput!
): PromotionRuleCreate
Show return type

Arguments

input ● PromotionRuleCreateInput!

Fields required to create a promotion rule.

Type

PromotionRuleCreate

Creates a new promotion rule.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_RULE_CREATED (async): A promotion rule was created.