AlmondTill/G3N API

NewLoyaltyProgramInput

input type

Create-input for a LoyaltyProgram.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the phrase loyalty program <currency>; when supplied it must be non-blank.
currencyString String!yesImmutable at birth — the earn/redeem currency anchor; a platform-registry code inside the union of the group's organizations' allowed sets.
earnRateLoyaltyRateInput LoyaltyRateInput!yesThe LoyaltyRate input twin.
redeemRateLoyaltyRateInput LoyaltyRateInput!yesThe LoyaltyRate input twin.
earnMultipliersLoyaltyEarnMultiplierInput [LoyaltyEarnMultiplierInput!]noThe LoyaltyEarnMultiplier input twin — the predicate must be sane.
bonusWindowsLoyaltyBonusWindowInput [LoyaltyBonusWindowInput!]noThe LoyaltyBonusWindow input twin — startAt strictly before endAt.
tiersLoyaltyTierInput [LoyaltyTierInput!]noThe LoyaltyTier input twin — names unique within the array.
organizationIdsID [ID!]noThe canned-pool selection — absent = every org in the group.
startAtStringnoOmitted = kit-stamped NOW; immutable once born.
endAtStringnoAbsent = evergreen; must lie strictly after the window start.

Used by