NewPromotionInput
input type
Create-input for a Promotion.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — the merchant code when given, else 'Promotion'; when supplied it must be non-blank. |
effect | PromotionEffectInput PromotionEffectInput! | yes | See the fields of [PromotionEffectInput](/types/PromotionEffectInput/). |
scope | PromotionScopeInput | no | The scope input — ≥1 axis with unique members; omit the field for unrestricted. |
productScope | PromotionProductScopeInput | no | The product-scope input — ≥1 member (sane predicate, unique ids, included∩excluded refused); omit the field to match ALL product lines. |
cartConditions | PromotionCartConditionsInput | no | The cart-conditions input — ≥1 member with unique ids. |
startAt | String | no | The window start (UTC ISO-8601) — omitted ⇒ stamped NOW; a future instant is the advance-scheduling arm. |
endAt | String | no | The window end (half-open) — omitted ⇒ evergreen; must lie strictly after the (stamped) start. |
priority | Int | no | Resolution ordinal 0..1000000 — omitted ⇒ 100. |
exclusive | Boolean | no | Omitted ⇒ false; true refuses a combinableGroup. |
combinableGroup | String | no | |
maxDiscountPerLineMinor | Int | no | |
maxDiscountPerOrderMinor | Int | no | |
totalRedemptionsCap | Int | no | |
couponGated | Boolean | no | Omitted ⇒ false; true = fires only through an attached trigger Coupon. |
code | String | no |