What You’ll Build
Prerequisites
Step 1: Award Points on Purchase
When a customer completes a purchase, award loyalty points. The points ledger is double-entry — every earn has an audit trail.Step 2: Check Points Balance
Display the user’s current balance in your loyalty dashboard.Step 3: Redeem Points at Checkout
When the user wants to apply points to an order, check the maximum discount first, then create the PaymentIntent with points applied.amount reflects the order total minus the points discount. If points change, the old PaymentIntent is cancelled and a new one is created.
Handling Failed Payments
If a payment fails after points were reserved, the points are automatically reverted via thepayment_intent.payment_failed webhook. If you need to manually trigger a revert:
Step 4: Create On-Chain Rewards
Reward high-value customers with on-chain collectibles. Podium supports 6 reward types.Grant a Reward to a User
Step 5: Track Reward Analytics
Putting It Together
Here’s a complete loyalty webhook handler that listens for purchases and awards points + checks for tier upgrades:Related
- Points API Reference — full endpoint documentation
- Rewards & Airdrops API — reward types and minting
- Webhooks — Event handling patterns
- Payments — Stripe checkout with points redemption

