Types > PromotionConditionCreate
Commerce APITypesPromotionConditionCreate
PromotionConditionCreate

Description

Fields

amount: Int

Amount of money in shop's currency

Example: 0

Valid when: amount is a non-negative integer


category_id: String

Category id, used depending on condition type

Example: "ca_EQzGqWoY"

Valid when: category_id matches regexp pattern: ^ca_


condition: ArbitraryObjectType


conditions: [ArbitraryObjectType!]


customer_group_id: String

Customer group id, used depending on condition type

Example: "cg_EQzGqWoY"

Valid when: customer_group_id matches regexp pattern: ^cg_


operator: RuleOperator


product_id: String

Product id, used depending on condition type

Example: "pd_EQzGqWoY"

Valid when: product_id matches regexp pattern: ^pd_


quantity: Int

Quantity parameter

Example: 0

Valid when: quantity is a non-negative integer


shipping_provider_id: String

Shipping provider id, used depending on condition type

Example: "sp_EQzGqWoY"

Valid when: shipping_provider_id matches regexp pattern: ^sp_


type: PromotionConditionType!

Type of the condition


variant_id: String

Variant id, used depending on condition type

Example: "va_EQzGqWoY"

Valid when: variant_id matches regexp pattern: ^va_


Used By

Types

PromotionRuleCreate

Preview (typescript)

Loading module