Skip to main content

PromotionCreateInput Input Type

No description

input PromotionCreateInput {
description: JSON
startDate: DateTime
endDate: DateTime
name: String!
type: PromotionTypeEnum!
rules: [PromotionRuleInput!]
}

Fields

description ● JSON

Promotion description.

startDate ● DateTime

The start date of the promotion in ISO 8601 format.

endDate ● DateTime

The end date of the promotion in ISO 8601 format.

name ● String!

Promotion name.

type ● PromotionTypeEnum!

Defines the promotion type. Implicate the required promotion rules predicate type and whether the promotion rules will give the catalogue or order discount.

Added in Saleor 3.19

rules ● [PromotionRuleInput!]

List of promotion rules.

Member Of

promotionCreate mutation