AlmondTill/G3N API

NewLoyaltyProgramInput

input type

Create-input for a LoyaltyProgram. The tenant is derived SERVER-SIDE; currency is EXPLICIT + IMMUTABLE (ISO-4217, minor-unit-registered); startAt is kit-stamped NOW when omitted; the ACTIVE cap (≤ 8 per group) gates the create; rule arrays are each ≤ 8 rows with sane predicates and unique tier names.

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.
earnRateLoyaltyRateInput LoyaltyRateInput!yesNo further notes.
redeemRateLoyaltyRateInput LoyaltyRateInput!yesNo further notes.
earnMultipliersLoyaltyEarnMultiplierInput [LoyaltyEarnMultiplierInput!]noNo further notes.
bonusWindowsLoyaltyBonusWindowInput [LoyaltyBonusWindowInput!]noNo further notes.
tiersLoyaltyTierInput [LoyaltyTierInput!]noNo further notes.
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