Loyalty and reviews
The points program, tiers, referrals, and review moderation.
Loyalty
/dashboard/platform/loyalty needs canManageClients.
A LoyaltyProgram has name, pointsPerDollar, redemptionRate, tiers (a list of name and minPoints), and isActive. The oldest active program is used.
- Checkout awards
floor(taxable dollars * pointsPerDollar)points. ClientPointskeepspoints,tier, and a ledger of the last 500 entries. A client's tier is the highest tier whoseminPointsthey meet, orbronze.adjustClientPointsadds or removes points with a required reason. Points cannot go below zero ("Not enough points").- A
ReferrallinksreferrerandreferredwithrewardType(pointsorcredit),rewardAmount, andstatus(pending,completed,expired).completeReferralpays it out.
Reviews
/dashboard/platform/reviews needs canManageClients. Clients leave a rating and comment after a completed visit with submitAppointmentReview. Reviews appear on the storefront only after isApproved is set. Staff publish or hide a review, or delete it.