Loyalty and customers
Rewards program, members, and points ledger.
Pages: /dashboard/platform/loyalty, /customers, /customers/[id].
Configure the program
configureLoyaltyProgram. Onboarding creates "Store Rewards": 1 point per dollar, 100 points worth one dollar.
Enroll
enrollLoyaltyAccount for a customer.
Adjust or expire
adjustLoyaltyPoints with a reason; expireLoyaltyPoints expires due points. Each change writes a LoyaltyLedgerEntry.
Redeem at the register
applyLoyaltyRedemptionToCart.
Customers see their balance and last 10 entries on the storefront (storefrontRewards).