Rewards Block

Points, tiers, referrals, redemption.
Decided.

Battle-tested loyalty engine for your product. Open source, Apache 2.0, race-safe redemption built in.

claude plugin marketplace add https://github.com/23blocks-OS/ai-agents

claude plugin install rewards-block

Your agent now knows this API. Prefer hands-on? REST + SDK docs →

What's inside

Points

Earning rules, multipliers, expiry

Badges

Milestones, achievements, streaks

Tiers

Bronze to Platinum, auto progression

Coupons

Unique codes, usage limits

Referrals

Two-way rewards, conversion tracking

Redemption

Discounts, products, custom catalog

Webhooks

Any external service

SDK

One client, every mechanic

Already debugged

The mistakes were made, fixed, and shipped past — before you got here.

  • Points expire FIFO — oldest batches lapse first, never a random wipe.

  • Redemption is race-safe — two devices can't double-spend one balance.

  • Tier downgrades get a grace window, not an instant demotion.

  • Refunds automatically claw back the points that order earned.

Use this instead of

Smile.ioLoyaltyLionYotpo Loyaltyyour hand-rolled points column and cron job

Better together

The user Auth Block signs in is the same user Rewards Block credits — no separate loyalty identity to reconcile. Order placed → Sales Block confirms → Rewards Block grants points. Zero glue code.

Don't reinvent the points ledger.

Stay in the loop

Get product updates, engineering posts, and new block announcements delivered to your inbox.

No spam. Unsubscribe anytime. Privacy policy.