Chargebee Overview
Vitally's Chargebee integration can be used to sync the following Chargebee data into Vitally in real time:
Customers - Vitally can import your Chargebee customers into Vitally as accounts. When done, we'll add a wealth of new Chargebee-defined traits to your Vitally profiles, such as the expiration of the customer's credit card, the plans they are subscribed to, and much more!
Revenue data - Vitally also imports your historical paid invoices from Chargebee so that you have immediate, accurate insight into the purchase history of every account in Vitally.
Enabling the Chargebee integration
To enable the Chargebee integration, navigate to your Settings (⚙️) by selecting your Account Logo on the top left and under Connectors select Integrations to find Chargebee (or via Quick Jump). Once you click the switch in the top right, you'll see a few options:
Site
This is the site you claimed when creating a Chargebee account and forms the prefix of your dashboard URL: your-claimed-site.chargebee.com
API Key
This is the secret key Vitally will use to request access to your Chargebee data. Read below for instructions on how to create this key.
Creating your Chargebee API key
In Chargebee, navigate to Settings > Configure Chargebee and click on "API keys and webhooks." Then, click "Add API Key".
Create a Read-Only API Key with restricted access to transactional data in your production Chargebee project to use with Vitally.
Copy the API Key from your Chargebee settings to the Vitally integration form and click "Submit."
If you have an existing revenue, churn and trial tracking configuration, you'll be prompted to choose whether to apply Vitally's recommended defaults for your revenue, trial, and churn settings:
This is optional: you can cancel and leave your existing configuration untouched, or click Apply Recommended Settings to let Vitally reprocess your accounts against the new rules.
If you skip this during setup, you can apply the recommended settings later at any time using the Use recommended settings button on your trial, churn, and subscribed customers configuration pages:
Configure Chargebee
Now that we have access to your Chargebee Customers and Subscriptions, select if customers may potentially have multiple active subscriptions, and configure the customer ID and customer name fields to ensure Vitally correctly imports & syncs your Chargebee data.
Customer ID trait: Select the Chargebee field that holds the external ID for the account in Vitally. The value in this field must match the ID you use to identify your customers across your other integrations. If the IDs don't match, Vitally can't associate the records and you may see duplicate customers.
You can choose from the standard Chargebee customer fields (such as id, email and company) or from any Customer custom field you've created in Chargebee. Custom fields appear in the dropdown with their Chargebee API name, which always starts with cf_, rather than the display name you see in Chargebee. For example, a custom field called AccountId in Chargebee appears as cf_account_id.
Before you enable the integration, check the sample value shown under each option. If the yellow warning about no matching external ID is still showing after you select a field, that field's values don't match the external IDs on your existing Vitally accounts.
Can't see your custom field in the dropdown?
Make sure it's a Customer custom field. Only custom fields on the Chargebee Customer can be used as the Customer ID. Custom fields on Subscriptions are imported as traits but can't be used for matching.
Make sure it's populated. Vitally looks for custom fields on your 50 most recently updated Chargebee customers. If the field is empty on all of those customers, it won't appear in the dropdown.
What happens to Chargebee customers that don't match an existing account?
If a Chargebee customer has at least one subscription and its Customer ID value doesn't match an existing Vitally account, Vitally creates a new account for it.
If the selected Customer ID field is empty for a Chargebee customer, that customer is skipped and no account is created.
Chargebee only syncs to accounts. It never creates or updates organizations.
How custom fields appear in Vitally
Once synced, Chargebee custom fields are stored as traits with the cf_ prefix removed and a chargebee. prefix added. For example, cf_account_id in Chargebee is stored in Vitally as chargebee.account_id. This applies to both Customer and Subscription custom fields.
Standard Chargebee fields have their own trait names. For example, the Chargebee customer id is stored as chargebee.customerId.
Create a Chargebee Webhook to sync changes in real-time
In order to continue to receive updates from Chargebee, you'll need to create a new Webhook. Navigate to Settings > Configure Chargebee and click on "API keys and webhooks."
Select the "Webhooks" tab and click "Add webhook". Copy the three provided values from Vitally:
Webhook URL
Basic authentication username
Basic authentication password
And that's it! Vitally will now receive real-time updates from Chargebee on changes to your customers, revenue, and subscriptions.
What data will Vitally import from Chargebee?
Vitally will import the following traits from Chargebee for all integration configurations:
Chargebee Customer |
Customer ID |
Name |
Created Date |
Currency |
Metadata |
Custom fields |
Chargebee Card |
Card Expiration |
Card Status |
If 'Single Subscription' was selected within the configuration, the following traits will be imported from Chargebee in addition to the 'Chargebee Customer' and 'Chargebee Card' data listed above:
Single Subscription |
Billing Period |
Billing Period Unit |
Cancelled At |
Cancel Reason |
Contract Term Billing Cycle |
Contract Term Cancellation Cutoff Date |
Contract Term End |
Contract Term End Action |
Contract Term Remaining Billing Cycles |
Contract Term Start |
Contract Term Total Contract Value |
Coupons |
Current Term End Date |
Current Term Start Date |
Last Invoice ID (last paid invoice) |
Last Invoice Paid At (last paid invoice) |
Last Invoice Status (last paid invoice) |
Last Invoice Total (last paid invoice) |
MRR |
Pause Date |
Plan ID |
Resume Date |
Status |
Subscription ID |
Subscription Plan Amount |
Subscription Plan Quantity |
Subscription Add Ons |
Trial Start |
If 'Multiple Subscriptions' was selected within the configuration, the following traits will be imported from Chargebee in addition to the 'Chargebee Customer' and 'Chargebee Card' data listed above:
Multiple Subscriptions |
All MRR |
Last Invoice IDs |
Last Invoice Totals |
Subscription IDs |
Subscription MRRs |
Subscription Plan IDs |
Subscription Statuses |
Subscription Paying Count |
Subscription Trialing Count |
Subscription Churned Count |









