Chargebee
Integrating Chargebee with RefRef for subscription management and referral tracking
RefRef offers a comprehensive integration with Chargebee to track subscriptions, manage recurring billing, and automate referral rewards for subscription-based businesses.
Overview
The Chargebee integration enables you to:
- Track subscription sign-ups as qualifying events
- Monitor subscription renewals, upgrades, and downgrades
- Automatically issue rewards based on subscription activity
- Sync customer data between platforms
- Leverage Chargebee's billing capabilities with RefRef's referral tools
Prerequisites
Before setting up the Chargebee integration, you'll need:
- An active Chargebee account
- API keys from your Chargebee dashboard
- Administrator access to your RefRef account
- Subscription plans configured in Chargebee
Setting Up the Integration
Step 1: Connect Your Chargebee Account
- Navigate to Integrations in your RefRef dashboard
- Select Chargebee from the available integrations
- Click Connect with Chargebee
- Enter your Chargebee site name and API key
- Authorize the connection between platforms
Step 2: Configure Webhook Events
RefRef needs to listen for specific events from Chargebee:
- In the Chargebee integration settings, review the webhook configuration
- Ensure the following events are enabled:
subscription_created
subscription_renewed
subscription_changed
subscription_cancelled
subscription_reactivated
payment_succeeded
- Save your webhook configuration
Step 3: Map Chargebee Plans to Qualifying Events
Connect your Chargebee subscription plans to RefRef qualifying events:
- Go to Qualifying Events in your program settings
- Select Add Chargebee Event
- Choose the subscription plans that should trigger referral conversions
- Configure conversion rules and reward values
- Set attribution windows and validation criteria
Tracking Referrals with Chargebee
Initial Subscriptions
For tracking new subscription sign-ups:
- Add the referral identifier to the Chargebee checkout or hosted page
- RefRef will automatically attribute the subscription to the referrer
- Configure reward rules based on subscription plan or value
Example of adding referral data to a Chargebee checkout:
Subscription Lifecycle Events
For ongoing subscription management:
- Configure which subscription events trigger rewards
- Set rules for renewals, upgrades, and downgrades
- Define reward structures for different subscription tiers
- Establish rules for subscription longevity milestones
Processing Rewards
RefRef can automatically process rewards based on Chargebee subscription events:
Monetary Rewards
For cash rewards to referrers:
- Configure payout methods in RefRef
- Set up automatic or manual approval workflows
- Define payout schedules and thresholds
- Configure notification templates for reward issuance
Subscription Credits
For subscription-based rewards:
- Configure subscription credits or discounts
- Set up automatic application to Chargebee subscriptions
- Define credit application rules and durations
- Establish delivery methods for subscription rewards
Advanced Configuration
MRR-based Rewards
For rewards based on Monthly Recurring Revenue (MRR):
- Navigate to Advanced Rewards in your integration settings
- Configure MRR-based reward tiers
- Set up progressive rewards for higher-value subscriptions
- Define rules for MRR changes over time
Multi-plan Campaigns
For businesses with multiple subscription plans:
- Create plan-specific referral campaigns
- Configure different reward structures by plan
- Set up targeted promotional materials for each plan
- Track performance metrics by subscription tier
Webhooks and API
RefRef to Chargebee
RefRef can send data to Chargebee for:
- Creating promotional codes
- Updating customer information
- Applying subscription credits
- Modifying subscription features
Chargebee to RefRef
Chargebee sends webhook events to RefRef for:
- Subscription creation and activation
- Renewal and payment processing
- Plan changes and upgrades
- Cancellations and reactivations
Troubleshooting
Common issues and solutions:
- Missing Webhooks: Verify webhook configuration in Chargebee
- Attribution Errors: Check referral parameter passing in checkout
- Duplicate Events: Check webhook configuration for duplicate notifications
- Data Syncing Issues: Verify API permissions and field mappings
Best Practices
- Test the integration thoroughly in Chargebee's test environment before going live
- Use consistent metadata field names across your implementation
- Implement proper error handling for webhook processing
- Regularly audit referral attributions and rewards
- Monitor webhook delivery and processing in both systems
- Consider subscription lifecycle when designing reward structures
Use Case: SaaS Growth Strategy
Learn how CloudTools increased their subscriber base by 38% and reduced customer acquisition costs by 42% by implementing a tiered referral program through the RefRef-Chargebee integration, offering both referrers and new subscribers incentives based on subscription plan value.