AlmondTill/G3N API

EditLoyaltyProgramInput

input type

Edit-input for a LoyaltyProgram. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. currency and startAt are immutable at birth (the rate anchor + the history anchor); the resulting window must keep endAt strictly after the immutable startAt (the RC-h merged-edit law).

Fields

FieldTypeRequiredNotes
captionStringno
earnRateLoyaltyRateInputnoThe LoyaltyRate input twin.
redeemRateLoyaltyRateInputnoThe LoyaltyRate input twin.
earnMultipliersLoyaltyEarnMultiplierInput [LoyaltyEarnMultiplierInput!]noWholesale replace (the array-edit law).
bonusWindowsLoyaltyBonusWindowInput [LoyaltyBonusWindowInput!]noWholesale replace.
tiersLoyaltyTierInput [LoyaltyTierInput!]noWholesale replace — a renamed tier degrades assigned members to the base multiplier at evaluation.
organizationIdsID [ID!]noWholesale replace of the canned pool.
endAtStringno

Used by