LoyaltySurf Docs
Help CenterSystem StatusContact SupportYour Dashboard →
  • Welcome
  • Tutorials
  • Developer Tools
    • REST API
      • Tutorials
      • Objects
      • API Reference
      • API Guidelines
      • API Response Codes
    • Webhooks
      • Securing Your Webhooks (optional)
      • Examples
      • Events Reference
    • Metadata
  • Integrations
    • Chargebee
    • HubSpot
    • PayPal
    • Recurly
    • Slack
    • Stripe
    • Tango Card
    • Zapier
      • Tutorials
      • Troubleshooting
Powered by GitBook
On this page
  • How to Set Up
  • Test Mode
  • Troubleshooting Tips

Was this helpful?

  1. Integrations

Chargebee

Automatically apply Chargebee coupons, credits, or trial extensions as rewards.

PreviousMetadataNextHubSpot

Last updated 23 days ago

Was this helpful?

Note: The Chargebee integration is only available to users on the LoyaltySurf Business plan or higher.

Even if the Chargebee customer's email address changes, LoyaltySurf will track those changes to ultimately ensure the Chargebee coupon, credit, or trial extension gets applied to the right Chargebee customer.

How to Set Up

You must first select a default currency for your LoyaltySurf campaign in order to use Chargebee. Your default currency determines whether Chargebee coupons, credits, or trial extensions can be applied to your Chargebee subscriptions. For example, if your default currency is USD, then the coupon, credit, or trial extension you set up can only be redeemed for Chargebee subscriptions using USD.

Step 1: In Campaign Editor > 4. Options > Integrations, open the Chargebee integration card and enter your , , and for both live and test mode.

Step 2: Once connected, press the 'Connect A Reward' button and select your reward.

Step 3: Click on either coupon, credit, or trial extension. If 'Coupon' is selected, enter the details of the coupon, including the name, type, and discount. You can also click Show advanced coupon settings to view more customization settings.

Advanced feature tip: Issue different reward amounts by using dynamic rewards

Dynamic rewards let you offer different reward values based on specific attributes of the referred friend (such as the pricing plan they signed up for) or referrer (such as their partner status).

For example, you can award $50 in credits to winners when their referral signs up for your base plan or $100 in credits when they sign up for a higher-costing plan.

Note: By default, coupons are recommended. However, if you want rewards to be stackable (e.g., $10 off for every loyalty action), you will want to use credits.

If 'Credit' is selected, enter the credit description and amount to apply to the Chargebee customer's account every time this reward is unlocked.

To extend the trial period, select 'Trial Extension', and specify the number of days.

Chargebee trial extensions only work for subscriptions labeled IN TRIAL.

Step 4: When you're done, click the Save button.

Step 5 (optional): To ensure the legitimacy of your campaign and prevent any fraudulent activities, it is advisable to establish Chargebee webhooks. By setting up webhooks, LoyaltySurf can monitor any modifications customers make to their email addresses on Chargebee using the customer's unique Chargebee ID.

Important Note: Only the following event should be selected for your Chargebee webhook:

  • Customer Changed

Remember to toggle on "Exclude card information from webhook call".

Test Mode

Our Chargebee integration comes with a test mode that allows you to test coupons, credits, and trial extensions. When you toggle Test Mode on, LoyaltySurf will only apply coupons, credits, or trial extensions to Chargebee subscriptions that exist within your Chargebee account when test mode is toggled on.

To enable test mode, toggle the Test Mode switch at the bottom-right, then connect a reward(s).

Please note that the rewards you connect to while Test Mode is enabled are completely separate from those you connect to in live mode.

Important note: When you go live with your campaign, please make sure to switch back to live mode. Otherwise, rewards will not be issued in live mode while test mode is enabled.

Troubleshooting Tips

If there is an issue with applying Chargebee coupons, credits, or trial extensions, LoyaltySurf will send out a notification email to the campaign owner. The issue will also be stated in the participant's detail page when you view their reward or when you view the participant's activity logs.

Here are some common reasons why there may be failures:

  • The customer with the associated LoyaltySurf participant email address does not exist in Chargebee (please make sure to check live or test mode depending on if you have toggled on Test Mode in the LoyaltySurf Chargebee integration)

  • If dynamic reward rules are enabled for the Chargebee reward, there may have been no matching rule found.

  • If you were expecting a reward to be applied in live mode, double-check that you do not have test mode enabled.

  • If your Chargebee customer changes their email address right before the Chargebee reward gets applied, they may not receive it. This is because LoyaltySurf relies on Chargebee sending out a webhook event which notifies LoyaltySurf of the Chargebee customer's new email address, but if there is not at least a few minutes before the reward event, LoyaltySurf will not know about the Chargebee customer's email change.

Other notes:

  • If you have manual reward approval enabled for your campaign: Chargebee coupons, credits, and trial extensions will only be issued to the winner(s) after you approve the reward.

  • If the loyalty action was triggered recently (or if the reward was approved recently), please allow for a few minutes of server processing before viewing the participant's reward from your LoyaltySurf admin dashboard. During this time, the data displayed for the participant's reward may not be accurate.

Step 6: Once you have enabled webhooks, create a new Chargebee webhook and return to the LoyaltySurf Chargebee integration and input the username and password for your Chargebee webhook. For guidance on setting up your webhook, click on this .

If there was a failure, you will need to manually issue the Chargebee reward from your .

Learn more →
link
Chargebee dashboard
Chargebee site
Chargebee API key
Chargebee product catalog version