Business Guide
Business Guide
Manage business-facing RefKit features from setup to reward operations.
Access Model
Business routes are protected by Better Auth session resolution plus role checks:
- Session lookup via
BETTER_AUTH_URL/api/auth/get-session - Required role for business namespace:
BUSINESS - Business ownership checks for privileged operations
Major Route Groups
- Members:
GET/POST /business/members - Balance and funding:
GET /business/balance,POST /business/funding/verify - Analytics:
GET /business/analytics - Reward creation:
POST /business/rewards - Config:
GET /business/configPATCH /business/config/generalPATCH /business/config/spend
- Tier management:
GET/POST /business/config/tiersPATCH/DELETE /business/config/tiers/:tierIdGET /business/config/tier-categorization
- API key lifecycle:
GET/POST /business/api-keysPOST /business/api-keys/:apiKeyId/rotateDELETE /business/api-keys/:apiKeyIdGET /business/api-keys/:apiKeyId/referrals
- Events and referral settings:
GET/POST /business/eventsPATCH /business/events/:eventId/statusGET/PATCH /business/referrals/settingsGET /business/referrals/stats
Data You Control
- Budget constraints (
maxEthPerDayPerUser,maxReferralEthPerEvent,maxBonusEthPerEvent) - Alert thresholds (
lowPoolAlertEth) - Auto-refill toggle
- Reward strategy and anti-abuse referral rules
Next: Campaign Lifecycle