Types > PromotionRuleCreate
Commerce APITypesPromotionRuleCreate
PromotionRuleCreate

Description

Fields

condition: PromotionConditionCreate


id: String

Unique promotion rule identifier. See also: Unique Identifiers

Example: "pe_EQzGqWoY"


name: String

Name of the promotion rule

Translatable

Example: "Free Item"

Valid when: name's length doesn't exceed 250 characters


type: PromotionType!

The type of the promotion rule


value: Float!

Percentage or fixed amount off depending on promotion rule type

Example: 0


Used By

Types

PromotionCreate, PromotionModify

Preview (typescript)

Loading module