AlmondTill/G3N API

NewCouponInput

input type

Create-input for a Coupon.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the normalized code (self-documenting — the code IS the identity); when supplied it must be non-blank.
codeString String!yes
flavorCouponFlavor CouponFlavor!yesOne of the values of [CouponFlavor](/types/CouponFlavor/).
promotionIdIDnoRequired iff trigger: the unlocked Promotion (tenant-scoped + active + couponGated — REF_STATE / VALIDATION/INVALID otherwise).
effectCouponEffectInputnoRequired iff discount: the carried effect.
startAtStringnoThe window start — omitted ⇒ stamped NOW.
endAtStringnoThe window end (half-open) — omitted ⇒ evergreen.
totalUsesCapIntno

Used by