NewCouponInput
input type
Create-input for a Coupon.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — the normalized code (self-documenting — the code IS the identity); when supplied it must be non-blank. |
code | String String! | yes | |
flavor | CouponFlavor CouponFlavor! | yes | One of the values of [CouponFlavor](/types/CouponFlavor/). |
promotionId | ID | no | Required iff trigger: the unlocked Promotion (tenant-scoped + active + couponGated — REF_STATE / VALIDATION/INVALID otherwise). |
effect | CouponEffectInput | no | Required iff discount: the carried effect. |
startAt | String | no | The window start — omitted ⇒ stamped NOW. |
endAt | String | no | The window end (half-open) — omitted ⇒ evergreen. |
totalUsesCap | Int | no |