Rewards Block

Loyalty, coupons, and badges
The Rewards Block enables loyalty and gamification features. Create points systems, manage coupons, award badges, and build engagement through rewards.
Features
- Points system
- Coupon management
- Badge awards
- Loyalty tiers
- Referral tracking
- Reward redemption
- Gamification mechanics
Quick Start
npm install @23blocks/sdk
import { BlocksClient } from '@23blocks/sdk';
const client = new BlocksClient({
baseUrl: 'https://api.23blocks.com',
appId: 'your-app-id'
});
// Award points
await client.rewards.awardPoints({
userId: 'user-123',
points: 100,
reason: 'purchase'
});
// Check balance
const balance = await client.rewards.getBalance('user-123');