Skip to main content

promotionRuleDelete Mutation

Deletes a promotion rule.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_RULE_DELETED (async): A promotion rule was deleted.
promotionRuleDelete(
id: ID!
): PromotionRuleDelete
Details
type PromotionRuleDelete {
errors: [PromotionRuleDeleteError!]!
promotionRule: PromotionRule
}

Arguments

id ● ID!

The ID of the promotion to remove.

Type

PromotionRuleDelete

Deletes a promotion rule.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_RULE_DELETED (async): A promotion rule was deleted.