Sync new Chargebee subscriptions into Salesforce CRM

The moment someone subscribes in Chargebee, their contact and matching deal appear in Salesforce with live billing details for sales and customer success.

Deterministic Code
ChargebeeSalesforceSalesOperationsData SyncOnboarding Automation
PromptCreate

When a new subscription is created in Chargebee, deterministically sync the customer into Salesforce so sales and customer success always see live billing status. Trigger this workflow on the Chargebee subscription_created webhook event.

Read the customer and subscription directly from the webhook payload. If you need more detail about the customer than the payload carries, call Chargebee Retrieve Customer to fetch the full record.

Upsert the person into Salesforce with Create or Update Contact (Upsert), keyed on the customer's email address so an existing contact is updated instead of duplicated. Map the customer's name, email, and company from Chargebee onto the contact.

Upsert a matching deal with Create or Update Opportunity (Upsert). Set the opportunity amount to the subscription value, set the stage to Closed Won, and set the close or renewal date from the subscription (for example the current term end or next billing date). Map the plan name and billing period into opportunity fields so the CRM mirrors exactly what the customer is paying for.

This is a straightforward field-to-field mapping from the webhook payload to the two Salesforce upserts, so build it as a deterministic code workflow with no AI reasoning. Note that Chargebee money amounts are integers in the currency's smallest unit (cents for USD), so convert to a decimal amount before writing it to the opportunity.

What does this prompt do?

  • Watches Chargebee for brand-new subscriptions and springs into action the instant one is created.
  • Creates or updates the matching person in Salesforce, matched by email so you never end up with duplicates.
  • Creates or updates a deal marked as won, filling in the amount, plan name, billing period, and renewal date straight from the subscription.
  • Keeps your CRM mirroring exactly what each customer is paying for, with no manual data entry.

What do I need to use this?

  • A Chargebee billing account
  • A Salesforce account with permission to create and edit contacts and opportunities
  • Customer email addresses in Chargebee, used to match records in Salesforce

How can I customize it?

  • Change which deal stage new subscriptions land in if you would rather not mark them all as won.
  • Choose which subscription details map into your deal fields, such as plan name and billing period.
  • Adjust how the deal amount and renewal date are pulled from the subscription.

FAQs

How fast does the sync happen?
It runs the moment a new subscription is created in Chargebee, so the records usually appear in Salesforce within seconds.
Will it create duplicate contacts in Salesforce?
No. People are matched by email address, so an existing contact is updated in place instead of duplicated.
What if the customer already exists in Salesforce?
Their contact and deal are updated with the latest billing details rather than recreated, so nothing gets doubled up.
Can I use a different deal stage instead of Closed Won?
Yes. The stage is fully adjustable, so you can route new subscriptions into whatever stage fits your pipeline.
Does this work with any Chargebee plan?
Yes. It reads whatever plan and billing period the customer signed up for and mirrors it into Salesforce.

Related templates

A website visitor queue that remembers what you hide

Your SDRs open one screen each morning, work the companies that visited your site, and hide the irrelevant ones for good.

Leadfeeder
Apollo
Salesforce
App
Pipeline review board for deals where the buyer went quiet

Open one board before every pipeline review to see which open deals have had no buyer activity in weeks, sorted quietest first.

Factors.ai
Salesforce
Slack
App
Subscription change desk for support and success reps

Let reps change plans, pause, or cancel in Chargebee with a plain money preview before anything is saved, and no billing admin access.

Chargebee
HubSpot
Slack Bot
App
Work every subscription about to cancel from one save desk

See every customer scheduled to cancel or sitting paused, ranked by revenue at risk, then offer a pause, a downgrade or a straight save in one click.

Chargebee
HubSpot
Slack Bot
App
Find every expired discount still running in Chargebee

See every active subscription still carrying a coupon, ranked by what the discount costs you each month, and switch off the ones that should have ended.

Chargebee
Google Sheets
Slack Bot
App
See who is still on old pricing and migrate them safely

Browse your billing catalog by price point, see the customers and revenue sitting on each one, and move a group to new pricing with a preview first.

Chargebee
Google Sheets
Slack Bot
App

Stop retyping billing details into your CRM.

Let every new Chargebee subscription flow straight into Salesforce, so sales and customer success always see live billing status.