Skip to main content

promotionRuleCreate Mutation

Creates a new promotion rule.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

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

Arguments

promotionRuleCreate.input ● PromotionRuleCreateInput! non-null input miscellaneous

Fields required to create a promotion rule.

Type

PromotionRuleCreate object discounts

Creates a new promotion rule.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

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