Send Chargebee customer and subscription activity to Iterable as it happens. When a Chargebee customer is created or changed, Iterable creates or updates the matching Iterable user profile. When a subscription is created, activated, changed, or canceled, Iterable tracks a custom event on that user, so you can trigger journeys for onboarding, upgrades, win-back, and other lifecycle moments. For example, you can onboard customers before a trial ends, introduce a new plan after an upgrade, or win back customers who canceled based on the reason they gave.
# In this article
# How the integration works
Iterable creates its own webhook endpoint on your Chargebee site when you select Finish in setup. The endpoint sends the Chargebee events you select to Iterable. Make configuration changes in Iterable rather than editing the endpoint in Chargebee, because Iterable manages it. A Chargebee site allows up to 5 webhook endpoints.
If you change Site Name on the Chargebee connection, Iterable doesn't delete the endpoint on the old site. Delete it in Chargebee.
Each event you select on Sync Settings has the following result in Iterable:
| Sync Settings option | Result in Iterable |
|---|---|
| Customer Created or Changed | Creates or updates a user profile |
| Subscription Activated | Tracks a chargebeeSubscriptionActivated custom event |
| Subscription Cancelled | Tracks a chargebeeSubscriptionCancelled custom event |
| Subscription Changed | Tracks a chargebeeSubscriptionChanged custom event |
| Subscription Created | Tracks a chargebeeSubscriptionCreated custom event |
The integration syncs only the Chargebee fields that the Field Mapping page offers, not Chargebee custom fields. For the default mappings, see Field mappings.
# How users are matched
The Primary Identifier on the Iterable connection sets how the integration identifies users. You don't select it separately for Chargebee.
| Primary Identifier | Chargebee identifier | Iterable identifier | Supported Iterable project types |
|---|---|---|---|
| Customer email address | email | Hybrid, email-based | |
| User ID | Customer ID |
userId, plus email on profile updates when the customer has one* | Hybrid, userID-based |
* If the email already belongs to a different Iterable user, the integration updates the profile without it.
Choose the Primary Identifier that matches how your existing Iterable users are identified:
Select User ID if your users'
userIdvalues are Chargebee customer IDs, or if the project has no users yet and you want to identify all users by Chargebee customer ID. Profile updates also add the customer'semailwhen the customer has one. Not available for email-based projects.Select Email if your users are identified by
email, or byuserIdvalues that aren't Chargebee customer IDs. The integration skips customers without an email address, along with their subscription events. Not available for userID-based projects.
To learn more about project types, read Project Types and Unique Identifiers.
# Map Chargebee customer ID to Iterable user ID
When you use email as the primary identifier, Sync Settings includes an
optional Map Chargebee Customer ID to Iterable userId setting, off by
default. When you turn it on, profile updates still match users by email and
also set the Chargebee customer ID as the user's userId, including on
existing users that were created with only an email. Subscription events
still identify the user by email.
If the customer ID already belongs to a different Iterable user, Iterable
rejects the userId. The integration then retries the update without it, so
the profile fields still sync but the userId isn't set.
# Connection requirements
To connect Iterable with Chargebee, you need:
- A Chargebee site that uses Product Catalog 2.0.
- An available webhook endpoint slot on the Chargebee site. A site allows up to 5 webhook endpoints.
- A Chargebee API key from that site.
- A server-side API key for the Iterable project that receives the data.
- A field to identify the user that matches in Iterable:
- If you use email as the primary identifier, an email address on every Chargebee customer.
- If you use user ID as the primary identifier, a Chargebee customer ID that matches your Iterable user IDs.
# Chargebee API key
Create the key in Chargebee under Settings > Configure Chargebee > API Keys. Use a Full-Access Key with All or Write permissions. The key must be able to manage webhook endpoints and read customers.
Use a key from the site you're connecting. Test and live sites have separate keys.
# Connecting Chargebee to Iterable
In Iterable, go to Integrations > Integrations Hub.
Find Chargebee, select Connect, and then select Add Connection.
-
On Connections, enter your Chargebee site name and API key:
-
Site Name: The site name from your Chargebee URL. For
https://acme.chargebee.com, enteracme. You can also enter the full URL. - API Key: The key described in Chargebee API key.
Then enter your Iterable API key and set Primary Identifier to the option that matches how your Iterable users are identified. See How users are matched.
-
Site Name: The site name from your Chargebee URL. For
-
On Sync Settings, select at least one event. All events are on by default.
- Under User Updates, leave Customer Created or Changed on to create and update Iterable users from Chargebee customers.
- Under Custom Events, leave on each subscription event you want to track: Subscription Created, Subscription Activated, Subscription Changed, and Subscription Cancelled.
- If Primary Identifier is Email, choose whether to turn on
Map Chargebee Customer ID to Iterable
userId. It's off by default. See How users are matched.
On Field Mapping, review the default mappings on the Customer and Subscription tabs, and change them if needed. See Field mappings.
-
On Review, review your settings and resolve any validation errors, and then select Finish. See Review shows validation errors.
When you finish, the integration creates a webhook endpoint named Iterable (instance name) in Chargebee for the events you selected.
If Customer Created or Changed is on, create or update a customer in Chargebee. Then confirm that the mapped fields appear on the matching Iterable user profile.
If Subscription Created is on, create a subscription for that customer. Then confirm that a
chargebeeSubscriptionCreatedevent appears on the profile.
# Field mappings
The Field Mapping page has a Customer tab for user profile fields and a Subscription tab for subscription event fields. Each tab appears when you select a corresponding event on Sync Settings and starts with the default mappings.
Each mapping row has the following fields:
- Chargebee Field: Select a source field from the dropdown. The dropdown offers a predefined list of Chargebee fields. Chargebee custom fields aren't available. Besides the defaults, the list includes optional customer fields, such as billing address, credit and balance amounts, and tax details, and optional subscription fields, such as MRR, dues, and pause and resume dates.
- Iterable Field: Enter the destination field name. Use letters, numbers, underscores, and hyphens.
To change the mappings:
- Add a row to map another Chargebee field.
- Edit Iterable Field to rename a destination field.
- Remove a row to stop syncing that field.
Each Iterable field name must be unique within its tab. Iterable manages
email, userId, eventName, createdAt, and id, so you can't use these
names as destinations.
Mapped values behave as follows:
- An empty mapped Chargebee value clears the matching field on the Iterable
user profile. The exception is
phoneNumber: an empty Chargebee phone value doesn't clear an existing Iterable phone number. - Chargebee timestamps become UTC ISO 8601 strings, such as
2026-10-20T19:15:00.000Z. - Monetary values keep Chargebee's smallest currency unit. For example, a value
of
4999in USD represents $49.99.
# Default customer mappings
Customer events update user profiles with the following fields by default:
| Chargebee field | Iterable profile field |
|---|---|
| Auto Collection | chargebeeAutoCollection |
| Company | company |
| Created At | chargebeeCreatedAt |
| Customer ID | chargebeeCustomerId |
| First Name | firstName |
| Last Name | lastName |
| Net Term Days | chargebeeNetTermDays |
| Phone | phoneNumber |
| Preferred Currency | chargebeePreferredCurrency |
| Updated At | chargebeeUpdatedAt |
# Default subscription mappings
Subscription events include the following fields by default. Each event's timestamp in Iterable is the time the event occurred in Chargebee, and its event ID is the Chargebee event ID.
| Chargebee field | Iterable event field |
|---|---|
| Activated At | activatedAt |
| Auto Collection | autoCollection |
| Billing Period | billingPeriod |
| Billing Period Unit | billingPeriodUnit |
| Cancel Reason | cancelReason |
| Cancel Reason Code | cancelReasonCode |
| Cancelled At | cancelledAt |
| Chargebee Event ID | chargebeeEventId |
| Created At | subscriptionCreatedAt |
| Currency | currencyCode |
| Current Term End | currentTermEnd |
| Current Term Start | currentTermStart |
| Customer ID | chargebeeCustomerId |
| Has Scheduled Changes | hasScheduledChanges |
| Next Billing At | nextBillingAt |
| Started At | startedAt |
| Status | status |
| Subscription ID | subscriptionId |
| Subscription Items |
subscriptionItems* |
| Trial End | trialEnd |
| Trial Start | trialStart |
* subscriptionItems: A list of objects with itemPriceId, itemType,
quantity, unitPrice, and amount.
# Troubleshooting
# Review shows validation errors
Resolve any validation errors on Review before you select Finish. Validation errors include:
- No event is selected on Sync Settings. Select at least one.
- An Iterable field name uses characters other than letters, numbers, underscores, and hyphens.
- Two rows on the same tab use the same Iterable field.
- A row uses a name that the integration manages:
email,userId,eventName,createdAt, orid.
# Setup stops because the Chargebee site has 5 webhook endpoints
A Chargebee site allows up to 5 webhook endpoints. If the site already has 5 when you select Finish, setup stops and the integration doesn't create its endpoint. In Chargebee, go to Settings > Webhooks and delete an endpoint you no longer use. Then select Finish again.
# A customer or subscription event doesn't appear in Iterable
- Confirm that the event is on in Sync Settings.
- If you use email as the primary identifier, confirm that the Chargebee customer has an email address. The integration skips customers without one, along with their subscription events.