Referrals
Promo codes with configurable currency rewards for referrer and referee.
Create referral and promo codes that reward both the referrer and the referee with virtual currency.
How it works
- Admin creates a referral code with rewards for both parties
- User shares their referral code
- When the code is redeemed, both users receive their rewards
- Usage is tracked with claim counts and optional limits
MCP tools
| Tool | Description |
|---|---|
amba_create_referral_program | Create a referral code with rewards |
amba_get_referral_stats | Get stats for a referral code |
Example
Client API reference
| Method | Path | Description |
|---|---|---|
GET | /client/referrals/me | Get user's referral code |
POST | /client/referrals/claim | Claim a referral code |
Claim a referral code
Database tables
| Table | Purpose |
|---|---|
referral_codes | Code definitions with rewards and usage limits |
referral_claims | Claim records linking referrer, referee, and code |