Description
Modify one or multiple promotions.
Permission bit: "promotions.modify"
Topic: Promotions
Arguments
data: [PromotionModify!]!
Main argument for mutations.
Use flat output format instead of a recursive one
List of promotion ids. See also: Unique Identifiers
Example: ["pr_EQzGqWoY"]
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
When promotion is applied to order, add this many of add_variant_id to line items
Example: 1
Valid when: add_quantity is a non-negative integer
Variant id to add to line items of an order when promotion is used
Example: "va_EQzGqWoY"
Valid when: add_variant_id matches regexp pattern: ^va_
Automatically apply this promotion
Example: false
Currency code used for all order-related prices defined in the promotion
Example: "USD"
Whether this promotion is active or not
Example: false
The date and time when the promotion will end
Example: "2014-09-04T12:23:34Z"
Timestamp (RFC 3339)
The maximum number of times a promotion may apply to orders
Example: 1
Valid when: max_uses_per_coupon is a non-negative integer
The maximum number of uses per-customer
Example: 1
Valid when: max_uses_per_customer is a non-negative integer
The maximum number of uses per order
Example: 5
Valid when: max_uses_per_order is a non-negative integer
Name of the promotion
Translatable
Valid when: name is not empty
Valid when: name's length doesn't exceed 250 characters
Priority when automatically applying promotions, higher number takes precedence
Example: 5
rules: [PromotionRuleCreate!]
Possible parameters for this promotion
The date and time when the promotion starts at
Example: "2014-09-04T12:23:34Z"
Timestamp (RFC 3339)
Result
[Promotion!]
Preview (typescript)
Loading module