Skip to main content

promotionCreate Mutation

Creates a new promotion.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_CREATED (async): A promotion was created.
  • PROMOTION_STARTED (async): Optionally called if promotion was started.
promotionCreate(
input: PromotionCreateInput!
): PromotionCreate

Arguments

promotionCreate.input ● PromotionCreateInput! non-null input discounts

Fields requires to create a promotion.

Type

PromotionCreate object discounts

Creates a new promotion.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_CREATED (async): A promotion was created.
  • PROMOTION_STARTED (async): Optionally called if promotion was started.