AlmondTill/G3N API

NewPromotionInput

input type

Create-input for a Promotion.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Promotion'; when supplied it must be non-blank.
effectPromotionEffectInput PromotionEffectInput!yesSee the fields of [PromotionEffectInput](/types/PromotionEffectInput/).
scopePromotionScopeInputnoThe scope input — ≥1 axis with unique members; omit the field for unrestricted.
productScopePromotionProductScopeInputnoThe product-scope input — ≥1 member (sane predicate, unique ids, included∩excluded refused); omit the field to match ALL product lines.
cartConditionsPromotionCartConditionsInputnoThe cart-conditions input — ≥1 member with unique ids.
startAtStringnoThe window start (UTC ISO-8601) — omitted ⇒ stamped NOW; a future instant is the advance-scheduling arm.
endAtStringnoThe window end (half-open) — omitted ⇒ evergreen; must lie strictly after the (stamped) start.
priorityIntnoResolution ordinal 0..1000000 — omitted ⇒ 100.
exclusiveBooleannoOmitted ⇒ false; true refuses a combinableGroup.
combinableGroupStringno
maxDiscountPerLineMinorIntno
maxDiscountPerOrderMinorIntno
totalRedemptionsCapIntno
couponGatedBooleannoOmitted ⇒ false; true = fires only through an attached trigger Coupon.
codeStringno

Used by