Chargebee Actions in Salesforce
Warning
Migration
If you are migrating your Chargebee site from Product Catalog 1.0 to 2.0 then uninstall the older version of the integration package from you Salesforce org and install package v1.48 or above. Contact [email protected] for assistance with the installation.
Note
Add Chargebee UI elements manually
Add the following user interface elements to the Page Layouts of the various Salesforce objects:
- Buttons for all Chargebee actions in Salesforce discussed on this page.
- Custom fields introduced by Chargebee for standard Salesforce objects.
- Chargebee custom objects to be added to related lists of Salesforce standard objects.
Editing fields on pages
If you edit fields on Salesforce pages, the changes are not synced to Chargebee. The only exception is the Account object whose data can be pushed using the Create/Update Chargebee Customer action.
Account Actions
The actions listed in this section are those that can be performed from a Salesforce account.
Note
On carrying out any of the below-mentioned actions from an account, all the subscriptions, and invoices of the associated Chargebee customer record begin syncing to Salesforce immediately. This speeds up the availability of the subscriptions and invoices related to an account within Salesforce.
Create/Update Chargebee Customer
Available under: Account
Description
Pushes the account information into a Chargebee customer record as explained in the Sales Driven flow. If the account has not been mapped to a customer in Chargebee then a new customer record is created in Chargebee first. You can also automate this process for any account by selecting the Sync with Chargebee checkbox on its page layout. Selecting the box immediately triggers this operation and also triggers it for every update made to the account thereafter. Clear the checkbox to stop the triggers from firing.
Note
After the first time you use the Create/Update Chargebee Customer option to update a particular Chargebee Customer, updating it thereafter overwrites the customer record in Chargebee with the new inputs from the Salesforce account even if it is more recent than that in the Salesforce account.
Note
Multiple Chargebee sites
If multiple Chargebee sites have been connected to Salesforce, then on clicking Create/Update Chargebee Customer, you will be prompted to choose one of them to sync to.
Set/View Chargebee Hierarchy
Available under: Account
Note
Account hierarchy must be enabled in Chargebee for this action to work.
This action sets the account hierarchy in Chargebee for a pair of customers, in accordance with how it has been set for the accounts in Salesforce. If any of the pair of accounts have not been synced to Chargebee before, this action syncs them first before setting the hierarchy. You must invoke this action from the child account. If you want to set a hierarchy in Chargebee that involves multiple customer records, you must build it from the bottom, linking one parent after another.
Note
Viewing the Hierarchy
If the account hierarchy has already been set in Chargebee, the action displays the currently set hierarchy in Chargebee.
When setting the hierarchy in Chargebee as described above, you must also choose the invoice owner and payment owner for the subscriptions created for the child account. The following options are available:
- Who do you want to invoice? Select which account should be invoiced for the subscriptions of the customer. This customer will receive the invoice for the subscription. You can choose either the child customer or any of its ancestors.
- Who pays the Invoice? Select who should make the payment for the subscriptions of the customer. The options available here depend on what's chosen in the previous setting:
- If the invoice owner selected is the same as the customer in question, then the payment owner can be: either the same customer or any one of its ancestors.
- If the invoice owner selected is an ancestor of the child, the payment owner can only be set to whoever is set as the invoice owner.
Unlinking a hierarchy
If a hierarchy is already set in Chargebee you can also use this feature to unlink it.
Add/Create Charge
Available under: Account
Charges and quick charges are non-recurring amounts that can be added to accounts in Salesforce (customer records in Chargebee). Charges must be predefined in Chargebee's product catalog whereas quick charges are ad-hoc and not predefined in Chargebee. Both can be added directly to accounts without being associated with subscriptions.
Follow the steps below to add charges and quick charges to an account:
From an account, click the Add/Create Charge button.
If the account has never been synced to Chargebee, then the Create/Update Chargebee Customer workflow kicks in automatically.
Click Add Charge to add charges from the product catalog in Chargebee. A modal is displayed with the following options:
- Under Charge Name, select the charge.
- Choose a currency.
- You can change the Per Unit Price for the charge provided price overriding is enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Enter the Quantity if applicable. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Select the Service Period for this charge.
- Click Confirm and the charge details are displayed on the previous screen.
Add as many charges as needed by repeating step 3.
Click Add Quick Charge to add ad-hoc charges to the account. A dialog is displayed with the following options:
- Choose a currency.
- Enter the Amount.
- Select the Service Period for the quick charge.
- Enter a Description for the quick charge.
- Select the This charge is taxable checkbox to apply taxes as configured in Chargebee.
- Click Confirm and the quick charge details are displayed on the previous screen.
Add as many quick charges as needed by repeating step 5.
Click Add Coupon to apply any available coupons to the charges and quick charges.
Select the Ship to billing address checkbox to auto-fill the address from the Account. Clear the checkbox to enter a shipping address that's different from the billing address.
Enter the PO Number as applicable.
Under Invoice Notes, add any notes that should be displayed on the invoice PDF to be sent to the customer.
Click Preview and Send and a modal is shown with the preview of the invoice that would be generated.
Click Create Invoice to actualize the charges and quick charges.
Update Payment Method (Email)
Available under: Account
Sends an email via Chargebee to the account prompting them to update their payment method. The email contains a link that the customer can follow to enter their payment method details which are then stored by Chargebee for later payments.
Note
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Note
Using Account Hierarchy in Chargebee
If payments for the customer are made by another in Chargebee, ensure that this action is invoked in Salesforce from the account which corresponds to the paying customer.
Update Payment Method
Available under: Account
This action allows a Salesforce user to directly update the payment method on behalf of the customer in Chargebee. The payment method is captured in a PCI DSS compliant modal or page.
Note
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Note
Using Account Hierarchy in Chargebee
When payments for the customer are made by another in Chargebee, ensure that this action is invoked in Salesforce from the account which corresponds to the paying customer.
Invoice Unbilled Charges
Available under: Account
This operation is used to invoice any unbilled charges that may be present for the Chargebee customer record mapped to the account.
Note
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Create Subscription
Available under: Account
This action creates a subscription against the Chargebee customer mapped to the account. Subscriptions can also be created from quotes directly by converting them.
Note
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
If the account has never been synced to Chargebee then the Create/Update Chargebee Customer workflow kicks in automatically.
Choose an opportunity
- If any open opportunities exist for the account, you can choose one of them so that it is updated with the product family (plans, addons, and charges) and coupons from the subscription. Once the subscription is created, the opportunity is updated if setting 1 and 2 are configured appropriately. If you don't choose an opportunity, the options selected under this setting 2 for opportunities and subscriptions applies.
Choose a Subscription Id for the subscription. When not entered, it is auto-generated by Chargebee.
Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.
Enter the Plan Details:
- Select a plan using the Plan Name dropdown menu. The plans shown belong to the product family selected in the previous step. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- The Choose Currency field displays the opportunity currency. To change this, you must edit the Opportunity Currency field for the opportunity.
- Select the billing frequency you want from the Choose Frequency dropdown.
- The Price field displays the plan price for the currency and billing frequency selected. (Note: For tiered, volume and stairstep pricing models, hover over the "i" icon to reveal a tooltip showing the price split among the quantity tiers.) You can change the value provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
Enter the details for Addons:
- Once a plan has been selected, any mandatory addons are displayed in this section automatically. They cannot be removed and their quantities cannot be changed.
- Recommended addons for the plan also show up automatically. These can be changed or removed.
- Click on Add Addon to select any more addons for the opportunity.
- Select an addon under Addon Name. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- Choose Frequency dropdown lists the billing frequencies of the addon that are compatible with the billing frequency selected for the plan. The plan billing frequency has to be a multiple of the addon billing frequency for the latter to be compatible with the plan.
- By default, the price of the addon specified for the currency and billing period combination is displayed under Unit Price. If differential pricing has been enabled for the addon for the plan chosen, then that price is shown by default.
- You can change the unit price for the addon provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If billing cycles for addons is enabled in Chargebee, you can set the number of billing cycles for the addon.
- To remove an addon, click the Remove link seen on the right side of the addon details.
Enter the details for Charges:
Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
You can change the unit price for the charge provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
Under Charge customers, select the event at which the charge should be applied to the subscription.
Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
Under Number of days of service provided, select the number of days of service period for the charge.
To remove a charge, click the Remove link seen on the right side of the charge details.
Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
Provide the Billing details:
Enter a Start Date for the subscription. The date/time at which the subscription is to start or has started. If not provided, the subscription starts immediately. If set to a value in the past then that date/time should not be more than the duration worth a plan billing period, into the past.
Under Billing Cycles Type, select one of the following options:
- Forever: the subscription renews after the end of each term until it is explicitly canceled.
- Fixed: the subscription renews for a fixed number of billing cycles. In this case, provide the following additional details:
- Enter the number of billing cycles that the subscription should run before canceling automatically.
- Select the Apply contract terms to this subscription checkbox to enable contract terms. On selecting the checkbox, you are presented with options to override the default contract terms settings that have been configured for the Chargebee site.
Set the Auto Collection Status for the subscription.
Clear Ship to billing address checkbox to enter a shipping address that's different from the billing address. The shipping address in the Account is prefilled and you can edit as needed.
Invoicing Options: When charges are raised immediately on subscription creation, the following options determine how they're handled:
- Invoice immediately: the charges are immediately invoiced.
- Add to Unbilled Charges: the charges are added to unbilled charges.
Note
Once the subscription is created in Chargebee, it is immediately synced back into Salesforce as a record under the CB Subscription custom object. This sync can take a few minutes. The opportunity – if one is chosen in step 3 above – is also updated.
Send Checkout Link
Note
Using Account Hierarchy in Chargebee
If the customer record linked to the contact is part of a hierarchical account relationship in Chargebee, then using this action will cause erroneous behavior. Always use the Create Subscription action for such cases.
When on the Create Subscription page, you have the alternative of enabling the customer to checkout and pay for the subscription themselves. This is done via the Send Checkout Link button.
Contract Terms
Contract terms are not created when using Send Checkout Link. To include contract terms, complete the subscription creation by clicking on Create Subscription button at the end of the form when creating a subscription from an account or opportunity.
Fill in the Create Subscription form and click the Send Checkout Link button at the bottom.
Edit the subject and the body of the email. Note that the checkout link is inserted into the body of the email.
Click Send. Sent emails can be seen on the Activity tab for the opportunity, contact and account in Salesforce.
The customer can now click on the checkout link and pay for the subscription. The shipping address specified in the Create Subscription page is prefilled for the customer on the checkout page. When the subscription is created in Chargebee on checkout, the address is attached to it.
The subscription once created, is reflected in Salesforce when the next sync is run.
Note
No offline payments
The Send Checkout Link workflow signs up the customer using Chargebee Checkout. The subscription is created once the payment is made successfully. There is no option for the customer to defer payments and make them offline later.
If you wish to keep charges unbilled for the customer then instead of using Send Checkout Link, select the Add to unbilled charges option on the Create Subscription form instead and click on Create New Subscription.
Opportunity Actions
The actions listed in this section are those that can be performed from a Salesforce opportunity.
Manage CB Products
Available under: Opportunity
This action is used to add Chargebee items (plan, addons, and charges) and coupons to the opportunity.
Caution
We recommend that you use Manage CB Products instead of Add Products or Edit Products to insert Chargebee products into opportunities as the latter are incompatible with certain Chargebee features such as:
Prerequisites
If you have multiple currencies enabled, ensure that the Opportunity Currency field has been set to the right currency. The available options in the next steps depend on the opportunity currency.
The Chargebee product catalog is configured with product families, plans, addons, charges with prices set for the currencies and billing frequencies as appropriate.
Enable price overriding to allow users to change the price of items in the product catalog when adding or updating them in a subscription.
Opportunity for a new subscription
If the opportunity is for a new subscription, then add products as follows:
From an opportunity that doesn't have a subscription attached, click on Manage CB Products.
Select New Subscription from the Manage Products For dropdown.
Under Family Details, select a Product Family from the dropdown. The plans, addons, and charges available in the next steps depend on the Product Family selected.
Enter the Plan Details:
- Select a plan using the Plan Name dropdown menu. The plans shown belong to the product family selected in the previous step. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- The Choose Currency field displays the opportunity currency. To change this, you must edit the Opportunity Currency field for the opportunity.
- Select the billing frequency you want from the Choose Frequency dropdown.
- The Price field displays the plan price for the currency and billing frequency selected. You can change the value provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Note: For tiered, volume and stairstep pricing models, click View tier/Override to see the price split among the quantity tiers. (See screenshot below).
Enter the details for Addons:
- Once a plan has been selected, any mandatory addons are displayed in this section automatically. They cannot be removed and their quantities cannot be changed.
- Recommended addons for the plan also show up automatically. These can be changed or removed.
- Click on Add Addon to select any more addons for the opportunity.
- Select an addon under Addon Name. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- Choose Frequency dropdown lists the billing frequencies of the addon that are compatible with the billing frequency selected for the plan. The plan billing frequency has to be a multiple of the addon billing frequency for the latter to be compatible with the plan.
- By default, the price of the addon specified for the currency and billing period combination is displayed under Unit Price. If differential pricing has been enabled for the addon for the plan chosen, then that price is shown by default.
- You can change the unit price for the addon provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If billing cycles for addons is enabled in Chargebee, you can set the number of billing cycles for the addon.
- To remove an addon, click the Remove link seen on the right side of the addon details.
Enter the details for Charges:
Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
You can change the unit price for the charge provided price overriding has been enabled in Chargebee. Pricing model for the charge currency is flat fee or per unit.
If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
Under Charge customers, select the event at which the charge should be applied to the subscription.
Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
Under Number of days of service provided, select the number of days of service period for the charge.
To remove a charge, click the Remove link seen on the right side of the charge details.
Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
Click Add Products to update the opportunity products with the details selected.
Opportunity for subscription amendment
You can amend a Chargebee subscription from Salesforce. This is typically done when offering upgrades. It is recommended that you create a new opportunity for this and not reuse the original Closed-Won opportunity that was used to create the subscription. Follow the steps below to do so:
Ensure that the new opportunity belongs to the account that has the subscription. The subscriptions associated with an account can be seen in the account's CB Subscription related list.
Click Manage CB Products, and select Existing Subscription under Manage Products For. All active, trialing or canceled subscriptions linked to the account are listed.
Select one of the subscriptions and click Next. The form is prefilled with the plan, addons, charges, and coupons that are currently part of the subscription. You can add or remove addons, charges, and manual discounts from the subscription.
Update the details on the form as required. The instructions for the New subscription workflow apply here as well.
Click Add Products. The opportunity products are updated and the Subscription Id field of the opportunity is updated with the subscription Id.
Create/Change Subscription
Available under: Opportunity
This action allows you to create/change a subscription from an opportunity. You can have this operation trigger automatically for won opportunities by using setting 3 under opportunities for Opportunities and Subscriptions.
Note
When multiple Chargebee sites are connected…
This operation will be invoked for the Chargebee site that the account has been mapped to.
Note
Once the subscription is created/updated in Chargebee, it is immediately synced back into Salesforce as a record under the CB Subscription custom object. This sync can take a few minutes.
Creating a new subscription
Once you have added the Product Families using the Manage CB Products option follow the steps below to create new subscriptions for your Opportunity:
- Click Create/Change Subscription. Any product catalog items (plans, addons, charges and coupons) that have been added to the opportunity are prefilled in the form that appears.
- Choose a Subscription Id for the subscription. When not entered, it is auto-generated by Chargebee.
- If items have not been added to the opportunity, the next steps tell you how to add them.
- Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.
- Enter the Plan Details:
- Select a plan using the Choose Plan dropdown menu. The plans shown belong to the product family selected in the previous step. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- The Choose Currency field displays the opportunity currency. To change this, you must edit the Opportunity Currency field for the opportunity.
- Select the billing frequency you want from the Choose Frequency dropdown.
- The Price field displays the plan price for the currency and billing frequency selected. (Note: For tiered, volume, and stairstep pricing models, hover over the "i" icon to reveal a tooltip showing the price split among the quantity tiers. (See screenshot below) You can change the value provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Once the plan is added, you can select the following actions from the dropdown list on the right side of the plan.
- Edit or delete the plan.
- Add manual discount to the plan. You can add or delete multiple manual discounts from the plan.
- Enter the details for Addons:
- Once a plan has been selected, any mandatory addons are displayed in this section automatically. They cannot be removed and their quantities cannot be changed.
- Recommended addons for the plan also show up automatically. These can be changed or removed.
- Click on Add Addon to select any more addons for the opportunity.
- Select an addon under Addon Name. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- Choose Frequency dropdown lists the billing frequencies of the addon that are compatible with the billing frequency selected for the plan. The plan billing frequency has to be a multiple of the addon billing frequency for the latter to be compatible with the plan.
- By default, the price of the addon specified for the currency and billing period combination is displayed under Unit Price. If differential pricing has been enabled for the addon for the plan chosen, then that price is shown by default.
- You can change the unit price for the addon provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If billing cycles for addons is enabled in Chargebee, you can set the number of billing cycles for the addon.
- To remove an addon, click the Remove link seen on the right side of the addon details.
- Enter the details for Charges:
- Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
- You can change the unit price for the charge provided price overriding has been enabled in Chargebee.The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Under Charge customers, select the event at which the charge should be applied to the subscription.
- Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
- Under Number of days of service provided, select the number of days of service period for the charge.
- To remove a charge, click the Remove link seen on the right side of the charge details.
- Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
- Add Manual Discount. Your Chargebee site must be configured to allow manual discounts. See, configuring manual discounts.
Use this option to add a manual discount amount or percentage to an invoice line item or the total invoice amount. You can add or delete multiple discounts to an invoice.
To add manual discounts to an invoice, follow these steps:
- Select the Discount Type and enter the discount amount.
- For Apply On, select Invoice Total or Specific line item on invoice to add discounts to the total invoice amount or an invoice line item respectively.
- Select the Duration.
- Click Add.
- Provide the Billing details:
- Enter a Start Date for the subscription. The date/time at which the subscription is to start or has started. If not provided, the subscription starts immediately. If set to a value in the past then that date/time should not be more than the duration worth a plan billing period, into the past.
- Under Billing Cycles Type, select one of the following options.
- Forever: the subscription renews after the end of each term until it is explicitly canceled.
- Fixed: the subscription renews for a fixed number of billing cycles. In this case, provide the following additional details:
- Enter the number of billing cycles that the subscription should run before canceling automatically.
- Select the Apply contract terms to this subscription checkbox to enable contract terms. On selecting the checkbox, you are presented with options to override the default contract terms settings that have been configured for the Chargebee site.
- Set the Auto Collection Status for the subscription.
- Clear Ship to billing address checkbox to enter a shipping address that's different from the billing address. The shipping address in the Account is prefilled and you can edit as needed.
- Invoicing Options: When charges are raised immediately on subscription creation, the following options determine how they're handled:
- Invoice immediately: the charges are immediately invoiced.
- Add to Unbilled Charges: the charges are added to unbilled charges.
- Click Create Subscription. If you'd rather have the customer subscribe themselves, click Send Checkout Link instead.
Amending an existing subscription
You can amend a Chargebee subscription from Salesforce. This is typically done when offering upgrades. It is recommended that you create a new opportunity for this and not reuse the original Closed-Won opportunity that was used to create the subscription. Follow the steps below to do so:
Navigate to an opportunity that belongs to the appropriate account. The subscription you intend to change must belong to this account.
Click Create/Change Subscription.
Under the Create/Change Subscription for dropdown, select Existing Subscription. All the active, in-trial, and canceled subscriptions that belong to the Account are listed for selection. This list includes subscriptions that haven't synced to Salesforce yet from Chargebee.
Select the subscription you want to change and click Next. A page titled Change Subscription loads with all the subscription details prefilled.
Make changes to the form. The instructions provided for creating a new subscription also apply here.
Optionally, you can provide the Billing details to modify them:
Under Apply Changes, select one of the following options:
Immediately: Apply the changes effective immediately. Optionally, also select Apply prorated charges to give prorated credits for the existing items in the subscription and raise prorated charges for the new items. Prorated charges are not applicable when the billing period of the subscription is changed, such as when moving from a monthly to a yearly plan or vice versa.
On next Renewal: Apply the changes on the next renewal of the subscription.
Invoicing Options: When charges are raised immediately on subscription change, the following options determine how they're handled:
Invoice immediately: the charges are immediately invoiced.
Add to Unbilled Charges: the charges are added to unbilled charges.
Click Update to confirm the changes to the subscription.
Once the subscription is updated in Chargebee, it is immediately synced back into Salesforce. This sync can take a few minutes. Unlike when creating a subscription, a Chargebee Checkout link cannot be sent to the customer via Salesforce for changing subscriptions.
Create Quote for a New Subscription
Available under: Opportunity
This action creates a new subscription quote for a customer in Chargebee. The opportunity must be linked to an account.
Note
When multiple Chargebee sites are connected
This operation will be invoked for the Chargebee site that the account has been mapped to.
- Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.
- Enter the Plan Details:
- Select a plan using the Choose Plan dropdown menu. The plans shown belong to the product family selected in the previous step. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- The Choose Currency field displays the opportunity currency. To change this, you must edit the Opportunity Currency field for the opportunity.
- Select the billing frequency you want from the Choose Frequency dropdown.
- The Price field displays the plan price for the currency and billing frequency selected. ( Note: For tiered, volume, and stairstep pricing models, hover over the "i" icon to reveal a tooltip showing the price split among the quantity tiers.) You can change the value provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Once the plan is added, you can select the following actions from the dropdown list on the right side of the plan.
- Edit or delete the plan.
- Add manual discount to the plan. You can add or delete multiple manual discounts from the plan.
- Enter the details for Addons:
- Once a plan has been selected, any mandatory addons are displayed in this section automatically. They cannot be removed and their quantities cannot be changed.
- Recommended addons for the plan also show up automatically. These can be changed or removed.
- Click Add Addon to select any more addons for the quote.
- Select an addon under Addon Name. Note: The plan selected can be metered, in which case the upcoming invoices for the subscription are closed manually or automatically based on the setting at the customer level and site level in Chargebee. The former takes precedence over the latter.
- Choose Frequency dropdown lists the billing frequencies of the addon that are compatible with the billing frequency selected for the plan. The plan billing frequency has to be a multiple of the addon billing frequency for the latter to be compatible with the plan.
- By default, the price of the addon specified for the currency and billing period combination is displayed under Unit Price. If differential pricing has been enabled for the addon for the plan chosen, then that price is shown by default.
- You can change the unit price for the addon provided price overriding has been enabled in Chargebee.The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If billing cycles for addons is enabled in Chargebee, you can set the number of billing cycles for the addon.
- To remove an addon, click the Remove link seen on the right side of the addon details.
- Enter the details for Charges:
- Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
- You can change the unit price for the charge provided price overriding has been enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- If the pricing model is anything other than flat fee, you can input the Quantity as well. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Under Charge customers, select the event at which the charge should be applied to the subscription.
- Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
- Under Number of days of service provided, select the number of days of service period for the charge.
- To remove a charge, click the Remove link seen on the right side of the charge details.
- Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
- Add Manual Discounts. Your Chargebee site must be configured to allow manual discounts. See, configuring manual discounts.
Use this option to add a manual discount amount or percentage to an invoice line item or the total invoice amount. You can add or delete multiple discounts to an invoice.
To add manual discounts to an invoice, follow these steps:
- Select the Discount Type and enter the discount amount.
- For Apply On, select Invoice Total or Specific line item on invoice to add discounts to the total invoice amount or an invoice line item respectively.
- Select the Duration. The duration determines how long the added discount is applicable.
- Click Add.
- Provide further Quote Details:
- Select a Billing Cycles Type:
- Forever: the subscription renews after the end of each term until it is explicitly canceled.
- Fixed: the subscription renews for a fixed number of billing cycles. In this case, provide the following additional details:
- Enter the number of billing cycles that the subscription should run before canceling automatically.
- A checkbox named Apply contract terms to this subscription appears towards the end of the form. Select it to enable contract terms. On selecting the checkbox, you are presented with options to override the default contract terms settings that have been configured for the Chargebee site.
- Set an Expiry Date for the quote. The quote is automatically marked
closed
upon expiry and can no longer be converted.
- Specify a subscription Start Date to initiate the subscription on a particular date in the future. If this is not configured, the subscription starts when the quote is invoiced.
- Add any Notes that you want to be displayed on the quote PDF for the customer's reference. You can even have a note configured in your Chargebee site to be applied to all quotes automatically. These notes are imprinted on the quote PDF and can also be seen in the Notes & Attachment related list for the quote.
- Select Display detailed charges on the quote PDF if you want the quote PDF to include a detailed breakdown of charges applicable in each billing cycle through the lifetime of a subscription.
- Clear Ship to billing address checkbox to enter a shipping address that's different from the billing address. The shipping address in the Account is prefilled and you can edit as needed.
Once created, the quote is visible under the CB Quotes related list for the opportunity.
Note
Quote line items
- The Quote Line Items related list for CB Quote lists all the products of the quote that will be invoiced first when the quote is converted.
- The CB Quote Products related list contains all the products that are part of the quote regardless of when they will be invoiced.
Create Quote for Subscription Amendment
Available under: Opportunity
This action creates a quote to make changes to a subscription. This is typically done when offering upgrades and for reactivating canceled subscriptions. The opportunity must be linked to the account that the subscription belongs to. Use a new opportunity for this purpose and not the original Closed-Won opportunity that created the subscription. Follow the steps bellow for this:
- From the opportunity, click Create Quote.
- In the Create Quote for dropdown, select Existing Subscription. The subscriptions(including canceled) associated with the account that has the same currency as that of the opportunity are listed. This list includes subscriptions that haven't synced to Salesforce yet from Chargebee.
- Select the subscription you want to create the quote for and click Next.
- You will now be presented with the same page as that for creating a quote for a new subscription. The only difference is that the page is prefilled with the data from the subscription. You can add or remove addons, charges, coupons, and manual discounts from the subscription.
- Make changes as needed and click Create Quote.
Create Quote for One-Time Charge
Available under: Opportunity
This action creates quotes for one-time charges. It allows you to collect payments from your customers for products that are non-recurring. For example, a non-recurring addon or a coupon that is not part of your standard product catalog.
To create a quote for one-time charges:
Go to the opportunity for which you want to create a quote.
Click Create Quote. If the Create Quote button is not available, customize the opportunity page layout to add the button.
In the Create Quote for dropdown list, select One Time Charge and click Next.
On the add charge page, select the required charge or coupon.
- Select Add Charge to add an existing charge.
- Select Add Quick Charge to create a new charge.
- Select a coupon from the Pick a Coupon dropdown list to add a coupon. Only one-time coupons are available to choose from the list.This option is visible after adding a charge.
In the Quote Essentials section, add all required details.
Click Send.
CB Subscription Actions
The actions listed in this section are those that can be performed from the CB Subscription custom object in Salesforce.
Change Subscription
Available under: CB Subscription
This operation makes changes to a subscription in Chargebee through Salesforce and then syncs it back to Salesforce. You can make any combination of the following changes to a Chargebee subscription using this action:
- Upgrade/downgrade the plan
- Add/remove addons
- Change the price
- Add coupon discounts
- Change the PO Number
- Change the number of billing cycles
- Navigate to the subscription page and click Change Subscription.
- Update the plan, addon, charge, and coupon details as suggested in the section for Create Subscription.
- Optionally, you can provide the Billing details to modify them:
- Enter the No. Of Billing Cycles that the subscription should run before canceling automatically. This need only be provided if you want to change the original value.
- Update the PO Number as needed.
- Under Apply Changes, select one of the available options:
- Immediately: Apply the changes effective immediately. Optionally, also select Apply prorated charges to give prorated credits for the existing items in the subscription and raise prorated charges for the new items. Prorated charges are not applicable when the billing period of the subscription is changed, such as when moving from a monthly to a yearly plan or vice versa.
- On next Renewal: Apply the changes on the next renewal of the subscription.
- Invoicing Options: When charges are raised immediately on subscription change, the following options determine how they're handled:
- Invoice immediately: the charges are immediately invoiced.
- Add to Unbilled Charges: the charges are added to unbilled charges.
- Click Update to confirm the changes to the subscription.
- Once the subscription is updated in Chargebee, it is immediately synced back into Salesforce. This sync can take a few minutes. Unlike when creating a subscription, a Chargebee Checkout link cannot be sent to the customer via Salesforce for changing subscriptions.
Cancel Subscription
Available under: CB Subscription
This action cancels the subscription. Follow the steps below to cancel a subscription from Salesforce:
- Navigate to the subscription.
- Click Cancel Subscription.
- Select an option under When do you want to cancel the subscription?
- Cancel immediately: on selecting this option, you must select an option under How do you want to handle credits for the unused period?
- Issue full credits: Create a credit note for all charges that were incurred for the current subscription term.
- Don't issue credits: Do not give any credits to the customer.
- Issue prorated credits: Create a credit note with prorated credits for the unused period.
- Cancel on a specific date: pick a date to cancel.
- Cancel at end of term: cancel the subscription at the end of the current term.
- Click Cancel Now or Schedule Cancellation as applicable.
Upon canceling a subscription, the change is only reflected in Salesforce on the next sync. You cannot delete a subscription from Salesforce.
Change Next Billing
Available under: CB Subscription
This action changes the time/date the next renewal of the subscription happens.
Proration
Choosing to prorate will raise prorated charges or credits against the customer record depending on whether the renewal date is postponed or preponed respectively. If prorate is unchecked then no charges or credits are raised for changing the next billing date.
Further, on choosing to prorate, if charges are raised, they may be invoiced immediately or added to unbilled charges, depending on what's chosen under Invoicing Options.
Add/Create Charge
Available under: CB Subscription
Charges and quick charges are non-recurring amounts that can be added to CB Subscriptions in Salesforce (subscription records in Chargebee). Charges must be predefined in Chargebee's product catalog whereas quick charges are ad-hoc and not predefined in Chargebee.
Add a Charge
Follow the steps below to add a charge to a subscription:
- From a CB Subscription, click the Add/Create Charge button.
- Click on the Add Charge tab.
- Under Charge Name, select the charge.
- You can change the Per Unit Price for the charge provided price overriding is enabled in Chargebee. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Enter the Quantity if applicable. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
- Select the Service Period for this charge.
- Click Confirm and the charge is added to the subscription immediately. Any coupons applied to the subscription, along with credits, and excess payments available against the customer are automatically applied.
Add a Quick Charge
Follow the steps below to a quick charge to a subscription:
- From a CB Subscription, click on the Add/Create Charge button.
- Click on the Create Quick Charge tab.
- Enter the Amount.
- Select the Service Period for the quick charge.
- Invoicing Options: Select from among the following options to determine how invoicing of the quick charge is handled:
- Invoice immediately: the quick charge is invoiced immediately.
- Add to Unbilled Charges: the quick charge is added to unbilled charges.
- Enter a Description for the quick charge.
- Click Confirm and the quick charge is created for the subscription. Any coupons applied to the subscription, along with credits, and excess payments available against the customer are automatically applied.
Sync Due Invoice Count
Available under: CB Subscription
The Sync Due Invoice Count updates the Due Invoice Count field to the current value.
The Due Invoices Count field in the CB Subscription object shows the total number of invoices that are yet unpaid against the subscription. This field, however, is not updated on any given sync unless the subscription itself has undergone a change since the last sync. So occasionally, invoices may get paid without the field getting updated automatically. Sync Due Invoice Count helps by fetching the current value of the Due Invoice Count field from Chargebee.
CB Quote Actions
A quote in Chargebee is a document used to let a potential buyer know how much the goods or services will cost before they commit to the purchase. You can create and work with Chargebee quotes from within Salesforce. The actions listed in this section are those that can be performed from the CB Quote custom object in Salesforce.
Send Email
Available under: CB Quote
Once a quote is created and for as long as it is open, you can send the quote to the customer so that they can review it. The Send Email option does just that. It launches an email composer with the quote PDF attached. The body of the email, by default, also has a quote acceptance link which the customer can follow to pay and subscribe themselves. The quote acceptance link can also be found in the CB Acceptance Link field of the CB Quotes object. The shipping address details used while creating the quote are prefilled for the customer on the checkout page. When the subscription is created in Chargebee on checkout, the address is attached to it.
The subscription once created, is reflected in Salesforce when the next sync is run. Also, the opportunity is updated if setting 1 and 2 are configured appropriately.
Convert Quote
Available under: CB Quote
This operation bills the quote and completes the purchase of the items in the quote.
The charges raised can be invoiced immediately or left as unbilled charges. If you turn Auto collection on, Chargebee attempts to collect payment for any invoice that is raised for the subscription. You can also specify the Subscription Id and the PO Number for the subscription that will be created. The former is auto-generated to a random value if not specified. Once the subscription is created in Chargebee, it is synced to Salesforce during the next sync.
Extend Expiry
Available under: CB Quote
A Chargebee quote cannot be invoiced once expired. This action extends the expiration date of an open quote.
- Navigate to the quote.
- Click on the Extend Expiry button.
- Select the new expiration date from the options available and click Save.
A new quote PDF is immediately generated with the updated expiration date and made available under the Notes & Attachments related list of quote.
Generate Quote PDF
Available under: CB Quote
If you extended the expiry of a quote from Chargebee and not Salesforce, this information is reflected in Salesforce only in the next sync and the quote PDF is not regenerated. Use this action to generate a fresh copy of the quote PDF at any time.
- Navigate to the quote and click Generate Quote PDF.
- Uncheck Display detailed charges on the generated PDF to generate the quote PDF with only a summary of charges.
- The new PDF is seen under the Notes & Attachments related list for the quote.
Sync to Opportunity
Available under: CB Quote
Summary
This updates the products and value of the linked opportunity with those on the quote.
Use Case
When you have created multiple quotes for an opportunity, the products and value on the opportunity match those of the last quote created. If your client decides to go with a different quote than the one last created, you can navigate that quote and invoke this action so that the opportunity shows an accurate picture of the deal.
Steps
Navigate to the quote that you want to sync to an opportunity.
If the quote wasn't already linked to any opportunity, then update the Opportunity field of the quote to create the link.
Click Sync to Opportunity. The following message appears.
Click Yes, go ahead to update the linked opportunity with the items on the quote.