promotionCreate Mutation
Creates a new promotion.
Triggers the following webhook events:
- PROMOTION_CREATED (async): A promotion was created.
- PROMOTION_STARTED (async): Optionally called if promotion was started.
Applied directives
@webhookEventsInfo(asyncEvents: [PROMOTION_CREATED, PROMOTION_STARTED], syncEvents: [])
promotionCreate(input: PromotionCreateInput!): PromotionCreate
Returns
Show return type
type PromotionCreate {
errors: [PromotionCreateError!]!
promotion: Promotion
}Arguments
input
input · PromotionCreateInput!
Fields requires to create a promotion.
Schema: Saleor 3.23.43. Download SDL.