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 support  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.

Configure e-invoicing for customers

You can configure e-invoices for customers who are authorized to receive them when creating or updating Chargebee customers in Salesforce.

Ensure the following prior to configuring e-invoicing for customers.

Field Label

 

Field Type

 

Is Einvoice Enabled

Boolean/check_box

Business Customer Without VAT Number

Boolean/check_box

Entity Identifier Scheme

String/Text (20)

The following screenshot displays the above fields added as part of additional field mapping for accounts.

To configure e-invoicing, perform the steps below:

  1. From the Salesforce account, click Create/Update Chargebee Customer.
  2. Select the Chargebee site from the Site dropdown list.
  3. Select Send e-invoice to this customer.
  4. In the VAT Settings section, select This is a valid business customer.
  5. Enter tax registration number if applicable, else select This customer does not have a VAT number.
  6. Click Update Customer.
Note

Multiple Chargebee sites

  • If multiple Chargebee sites are connected to Salesforce, the configuration is available for the site having e-invoicing enabled.
  • 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.

See also

Add/Create Charge for CB Subscriptions

Follow the steps below to add charges and quick charges to an account:

  1. From an account, click the Add/Create Charge button.

  2. If the account has never been synced to Chargebee, then the Create/Update Chargebee Customer workflow kicks in automatically.

  3. Click Add Charge to add charges from the product catalog in Chargebee. A modal is displayed with the following options:

    1. Under Charge Name, select the charge.
    2. Choose a currency.
    3. 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.
    4. Enter the Quantity if applicable. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
    5. Select the Service Period for this charge.
    6. Click Confirm and the charge details are displayed on the previous screen.
  4. Add as many charges as needed by repeating step 3.

  5. Click Add Quick Charge to add ad-hoc charges to the account. A dialog is displayed with the following options:

    1. Choose a currency.
    2. Enter the Amount.
    3. Select the Service Period for the quick charge.
    4. Enter a Description for the quick charge.
    5. Select the This charge is taxable checkbox to apply taxes as configured in Chargebee.
    6. Click Confirm and the quick charge details are displayed on the previous screen.
  6. Add as many quick charges as needed by repeating step 5.

  7. Click Add Coupon to apply any available coupons to the charges and quick charges.

  8. 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.

  9. Enter the PO Number as applicable.

  10. Under Invoice Notes, add any notes that should be displayed on the invoice PDF to be sent to the customer.

  11. Click Preview and Send and a modal is shown with the preview of the invoice that would be generated.

  12. 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.

  1. If the account has never been synced to Chargebee then the Create/Update Chargebee Customer workflow kicks in automatically.

  2. 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.
  3. Choose a Subscription Id for the subscription. When not entered, it is auto-generated by Chargebee.

  4. Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.

  5. 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 Billing Frequency dropdown. If the product has a single billing frequency configured in Chargebee, that frequency is selected and displayed by default in the dropdown menu.
    • 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.
  6. 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.
  7. Enter the details for Charges:

  8. Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.

  9. 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.

  10. 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.

  11. Under Charge customers, select the event at which the charge should be applied to the subscription.

  12. Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.

  13. Under Number of days of service provided, select the number of days of service period for the charge.

  14. To remove a charge, click the Remove link seen on the right side of the charge details.

  15. Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.

  16. Provide the Billing details:

    1. 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.

    2. Under Billing Cycles Type, select one of the following options:

      1. Forever: the subscription renews after the end of each term until it is explicitly canceled.
      2. Fixed: the subscription renews for a fixed number of billing cycles. In this case, provide the following additional details:
        1. Enter the number of billing cycles that the subscription should run before canceling automatically.
        2. 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.
    3. Set the Auto Collection Status for the subscription.

  17. 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.

  18. 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.

Generate Checkout URL 

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 Generate Checkout URL button. Additionally, the checkout URL displays any manual discounts applied to the subscription.

Contract Terms

Contract terms are not created when using Generate Checkout URL. 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.

  1. Fill in the Create Subscription form and click the Generate Checkout URL button at the bottom.

  2. You are prompted with two options:

    1. Populate checkout link only: This will populate a checkout link in the CB checkout link object on the accounts and opportunities Related tab.

    2. Populate the checkout link and email it: Selecting this option adds the checkout link to the email template. You can edit the subject and body of the email. Click Send to send the email. The emails sent can be viewed in the Salesforce Activity tab for the opportunity, contact, and account.

  3. 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 Generate Checkout URL 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 Generate Checkout URL, 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:

  1. From an opportunity that doesn't have a subscription attached, click on Manage CB Products.
  2. Select New Subscription from the Manage Products For dropdown.
  3. 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.
Information

Users with large number of plans, add-ons, or charges may need help finding specific items while searching. To make the process of locating information easier, we have implemented the Add Filter option in the Plans, Charges, and Add-Ons. You can filter by Metered, Pricing Model, or Billing Frequency filters to narrow down the search and reflect the desired results

  1. 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 Billing Frequency dropdown. If the product has a single billing frequency configured in Chargebee, that frequency is selected and displayed by default in the dropdown menu.
    • 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).
  2. 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.
  3. Enter the details for Charges:

  4. Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.

  5. 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.

  6. 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.

  7. Under Charge customers, select the event at which the charge should be applied to the subscription.

  8. Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.

  9. Under Number of days of service provided, select the number of days of service period for the charge.

  10. To remove a charge, click the Remove link seen on the right side of the charge details.

  11. Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.

  12. 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:

  1. 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.

  2. Click Manage CB Products, and select Existing Subscription under Manage Products For. All active, trialing or canceled subscriptions linked to the account are listed.

  3. 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.

  4. Update the details on the form as required. The instructions for the New subscription workflow apply here as well.

  5. Click Add Products. The opportunity products are updated and the Subscription Id field of the opportunity is updated with the subscription Id.


Chargebee Actions Using Salesforce Flows 

Salesforce Flows are advanced workflows that provide a visual interface for designing the steps of a business process. They can include screens with input forms, decision points, and actions such as creating or updating records. Flows can be tailored to specific use cases, guiding users through a series of tasks or actions based on their inputs or predetermined criteria.

Flow Builder is a powerful visual tool allowing users to create custom business processes and automate tasks without writing code. It provides a user-friendly interface for creating interactive and dynamic flows that can streamline business processes, collect data, and automate tasks within the Salesforce platform.

Using flows in Salesforce, you can perform the actions listed under Manage CB Product of Chargebee.

  • Create a Subscription

  • Change Subscription

Create a Chargebee Subscription 

To create a subscription in Chargebee using Flows, follow these steps:

  1. Go to Setup > Flows

  2. All Flows > New flow

  3. Components can be added while creating screens for the flow or you can also add components to the CB Managed Products by clicking Custom > Add attribute details like Opportunity Id, and Site or Domain Name in the right pane. Click Done.

  4. Click Run at the top to start the flow. Toggle New Subscription > Choose Product Family > Add Plan > Add Products > Click Finish to complete the flow.

  5. Verify the edited or updated products in the subscription by going to Opportunities > Related > Products section.

Change a Chargebee Subscription 

To change a subscription in Chargebee using Flows, follow these steps:

  1. Go to Setup > Flows

  2. All Flows > New Flow

  3. Click Edit Element > Components > Custom.

  4. Provide the Opportunity Id, Site or Domain Name, and existing Subscription Id for the Change action.

  5. Click Run at the top to start the flow. Toggle Change Subscription > Edit Plan/ Delete Plan or Add Discounts, and more > Click Add Products > Finish to complete the flow.

  6. Verify the edited or updated products in the subscription by going to Opportunities > Related > Products section if required.


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.

Caution
To add/edit opportunity products before performing this action, we recommend that you use Manage CB Products instead of Add Products or Edit Products  as the latter are incompatible with certain Chargebee features such as:

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:

  1. 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.
  2. Choose a Subscription Id for the subscription. When not entered, it is auto-generated by Chargebee.
  3. If items have not been added to the opportunity, the next steps tell you how to add them.
  4. Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.
  5. 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 Billing Frequency dropdown. If the product has a single billing frequency configured in Chargebee, that frequency is selected and displayed by default in the dropdown menu.
    • 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.
  6. 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.
  7. 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.
  8. Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
  9. 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:
    1. Select the Discount Type and enter the discount amount.
    2. 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.
    3. Select the Duration.
    4. Click Add.
  10. Provide the Billing details:
    1. 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.
    2. Under Billing Cycles Type, select one of the following options.
      1. Forever: the subscription renews after the end of each term until it is explicitly canceled.
      2. Fixed: the subscription renews for a fixed number of billing cycles. In this case, provide the following additional details:
        1. Enter the number of billing cycles that the subscription should run before canceling automatically.
        2. 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.
    3. Set the Auto Collection Status for the subscription.
  11. 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.
  12. 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.
  13. Click Create Subscription.Use the Generate Checkout URL button to retrieve the checkout link to use for your sales workflows.

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:

  1. Navigate to an opportunity that belongs to the appropriate account. The subscription you intend to change must belong to this account.

  2. Click Create/Change Subscription.

  3. 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.

  4. Select the subscription you want to change and click Next. A page titled Change Subscription loads with all the subscription details prefilled.

  5. Make changes to the form. The instructions provided for creating a new subscription also apply here.

  6. 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.

  7. Under Apply Changes, select one of the following options:

    • Immediately: Apply the changes effective immediately. Optionally, also select Apply prorated credits and 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.

    • On a specific date: Apply the changes to take effect only on the date specified. You must enable this option for your Chargebee site.

    • 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.

  8. 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.


Automate subscription creation/update/renewal from closed opportunity 

Available under: Opportunity

You can configure the integration to automatically create/update/renew subscription in Chargebee when an opportunity is closed.

Create a subscription when an opportunity is closed

Warning

Before attempting this operation, update the customer's payment method. If you choose the invoice immediately option with auto-collection turned on, the operation will fail without an updated payment method.

  1. Enable the Allow Chargebee to automatically create/upgrade/renew subscription when an opportunity is won toggle.

  2. Create an opportunity for a new subscription in Salesforce.

  3. Update the stage  of an opportunity to closed-won.

  4. Select the Update Chargebee checkbox for the opportunity. (Update Chargebee is a custom field introduced by Chargebee on the opportunity object.)

After the last step, the integration triggers the following operations immediately:

  • A new subscription is created with the plan, addons, and charges that correspond to the opportunity products.

  • The billing and shipping addresses in the account are automatically added to the subscription.

Update a subscription when an opportunity is closed

Note

This operation only proceeds when the subscription status is active, non-renewing, or in-trial.

  1. Enable the Allow Chargebee to automatically create/upgrade/renew subscription when an opportunity is won toggle.

  2. Create an opportunity for an existing subscription.

  3. Update the stage  of an opportunity to closed-won.

  4. Select the Update Chargebee checkbox for the opportunity. (Update Chargebee is a custom field introduced by Chargebee on the opportunity object.)

After the last step, the integration immediately updates the associated subscription, replacing its plan, addons, and charges by those reflected in the opportunity products of the opportunity.

Update a subscription when a renewal opportunity is closed

This section explains how to trigger an automatic update of a Chargebee subscription when its renewal opportunity in Salesforce is closed-won.

Note

You can perform this operation only if:

  • The plan has a finite number of billing cycles (not set to "forever").

  • The subscription status is active or non-renewing.

  • The subscription doesn't have an auto-renewing contract term.

  1. In the App Launcher, navigate to Chargebee for Salesforce > Chargebee Settings page > Sync Rules tab.

  2. Click Save and Proceed to access the Sync Rules for Opportunities section.

  3. Configure the subscription update trigger

    1. In the When subscriptions are created from Salesforce section, turn on the Allow Chargebee to automatically create/upgrade/renew subscription when an opportunity is won toggle.

    2. Decide how you want to handle charges for the changes under Choose how you'd like to handle charges for such subscriptions.

  4. Set up the renewal opportunity job.

    1. Turn on the Allow Chargebee to create renewal opportunities for subscriptions with finite billing cycles toggle.

    2. In the section How frequently should Chargebee create and update renewal opportunities?, set your preferred frequencyday (if selecting Weekly), and time.

    3. Click Save and Proceed.

  5. Navigate to Setup > Scheduled Jobs.

  6. Verify that the renewal opportunity jobs are set up to trigger at the appropriate time.

  7. Wait for the system to generate renewal opportunities based on the schedule you set in the first step.

  8. Navigate to the account where you want to renew a subscription using its renewal opportunity.

  9. Access the desired renewal opportunity. If multiple opportunities are available, select the one that matches the correct Subscription ID.

  10. If you think you'll close this opportunity after the current billing cycle, or after updating the subscription in another way, set the Renewal Opportunity Behavior to Lock opportunity and related line items. This ensures any changes you make won't be overwritten by Chargebee, even if the subscription gets updated before you close the opportunity.

  11. Adjust the opportunity products as needed using Manage CB Products and then save your changes.

  12. Update the stage  of an opportunity to closed-won.

  13. Select the Update Chargebee checkbox for the opportunity. (Update Chargebee is a custom field introduced by Chargebee on the opportunity object.)

After the last step, the automation triggers the following operations immediately:

  • The associated subscription is updated, replacing its plan, addons, and charges by those reflected in the opportunity products of the opportunity.

  • The corresponding CB Subscription record in Salesforce is also updated.

  • The remaining billing cycles of the subscription are incremented by the number of billing cycles defined for the plan in the opportunity products. See an example below.

Example

Suppose an opportunity closes with 2 billing cycles left on the subscription. If the plan within the opportunity products specifies 5 billing cycles, the subscription will have a total of 7 (2 + 5) billing cycles remaining after the operation is complete.


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.

  1. Select a Product Family. The plans, addons, and charges available in the next steps depend on the product family selected.
  2. Enter the Plan Details:
    1. 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.
    2. The Choose Currency field displays the opportunity currency. To change this, you must edit the Opportunity Currency field for the opportunity.
    3. Select the billing frequency you want from the Billing Frequency dropdown. If the product has a single billing frequency configured in Chargebee, that frequency is selected and displayed by default in the dropdown menu.
    4. 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.
    5. 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.
  3. Enter the details for Addons:
    1. 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.
    2. Recommended addons for the plan also show up automatically. These can be changed or removed.
    3. Click Add Addon to select any more addons for the quote.
    4. 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.
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    9. If billing cycles for addons is enabled in Chargebee, you can set the number of billing cycles for the addon.
    10. To remove an addon, click the Remove link seen on the right side of the addon details.
  4. Enter the details for Charges:
    1. Once a plan has been selected, any charges that have been configured to apply automatically along with it are displayed in this section.
    2. 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.
    3. 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.
    4. Under Charge customers, select the event at which the charge should be applied to the subscription.
    5. Under Apply charges, select if you want to have the charge applied every time the event occurs or Once.
    6. Under Number of days of service provided, select the number of days of service period for the charge.
    7. To remove a charge, click the Remove link seen on the right side of the charge details.
  5. Use the Select a coupon dropdown and apply any of the coupons available. Multiple coupons can be applied.
  6. 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:
    1. Select the Discount Type and enter the discount amount.
    2. 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.
    3. Select the Duration. The duration determines how long the added discount is applicable.
    4. Click Add.
  7. Provide further Quote Details:
    1. Select a Billing Cycles Type:
      1. Forever: the subscription renews after the end of each term until it is explicitly canceled.
      2. Fixed: the subscription renews for a fixed number of billing cycles. In this case, provide the following additional details:
        1. Enter the number of billing cycles that the subscription should run before canceling automatically.
        2. 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.
    2. Set an Expiry Date for the quote. The quote is automatically marked closed upon expiry and can no longer be converted.
    3. 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.
    4. 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.
    5. 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.
  8. 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:

  1. From the opportunity, click Create Quote.
  2. 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.
  3. Select the subscription you want to create the quote for and click Next.
  4. 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.
  5. 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:

  1. Go to the opportunity for which you want to create a quote.

  2. Click Create Quote. If the Create Quote button is not available, customize the opportunity page layout  to add the button.

  3. In the Create Quote for dropdown list, select One Time Charge and click Next.

  4. 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.
  5. In the Quote Essentials section, add all required details.

  6. 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


  1. Navigate to the subscription page and click Change Subscription.
  2. Update the plan, addon, charge, and coupon details as suggested in the section for Create Subscription.
  3. Optionally, you can provide the Billing details to modify them:
  4. 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.
  5. Update the PO Number as needed.
  6. 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.
  7. Click Update to confirm the changes to the subscription.
  8. 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:

  1. Navigate to the subscription.
  2. Click Cancel Subscription.
  3. 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.
  4. 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.


Pause Subscription 

Available under: CB Subscription

This action pauses the subscription. The Pause subscription option is context-aware. As an example, if the subscription is currently Active, this option will default prompt the user to Pause the subscription. Once the subscription is in a paused state, it can then be resumed using the same action Follow the steps below to pause a subscription from Salesforce. Follow the steps below to pause a subscription from Salesforce.

  1. Log in to your Salesforce account, and navigate to the Subscription Details page.

  2. Click Pause/Resume Subscription in the drop-down.

  3. From the Pause Subscription Details page, you can choose the following option when pausing a subscription.

    • Pause Immediately: Selecting this option will pause the subscription with immediate effect. The subscription will be temporarily suspended until you decide to resume it.
    • Pause at the End of a Term: Opting for this option will allow the subscription to continue as usual until the end of the current term. Once the current term expires, the subscription will automatically be paused.
    • Pause on a Specified Date: This option enables you to schedule a specific date on which the subscription should be paused. Simply choose the desired date from the date picker, and the subscription will be paused on that day.

Resume Subscription 

Available under: CB Subscription

This action resumes the subscription. The Resume subscription option is context-aware. As an example, if the subscription is currently Paused, this option will default prompt the user to Resume their subscription. Once the subscription is in a resumed state, it can then be paused using the same action Follow the steps below to resume a subscription from Salesforce.

  1. Log in to your Salesforce account, and navigate to the Subscription Details page.

  2. Click Pause/Resume Subscription in the drop-down.

  3. From the Resume Subscription Details page, you can choose the following option when pausing a subscription.

    • Resume Immediately: Selecting this option will resume the subscription with immediate effect.
    • Resume on a Specified Date: This option enables you to schedule a specific date on which the subscription should be resumed. Simply choose the desired date from the date picker, and the subscription will be resumed on that day.

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.

See also

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.

See also

Add/Create Charge for an account.

Add a Charge

Follow the steps below to add a charge to a subscription:

  1. From a CB Subscription, click the Add/Create Charge button.
  2. Click on the Add Charge tab.
  3. Under Charge Name, select the charge.
  4. 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.
  5. Enter the Quantity if applicable. The number of decimal places you can provide is configured in Chargebee under Multi-decimal Support.
  6. Select the Service Period for this charge.
  7. 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:

  1. From a CB Subscription, click on the Add/Create Charge button.
  2. Click on the Create Quick Charge tab.
  3. Enter the Amount.
  4. Select the Service Period for the quick charge.
  5. 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.
  6. Enter a Description for the quick charge.
  7. 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.


Modify Subscription Start Date 

Available under: CB Subscription
As a business owner, having the ability to modify subscription details is crucial for maintaining customer satisfaction and ensuring smooth operations.

This feature is particularly useful in cases where customers may need to adjust the start date of their subscription due to unpredictable circumstances.

Chargebee makes it easy to modify subscriptions within Salesforce. Using the Edit Start Date feature, you can modify the start date of a subscription even after the subscription is created as long as the subscription has not started. To modify the subscription Start Date, follow these steps:

  1. Log in to your Salesforce account > navigate to the Subscription List page.

  2. Select the subscription for which you want to modify the Start Date and navigate to the Details Tab.

  3. Click the action toolbar at the top > Edit Start Date.

  4. In the Edit Subscription Start Date page > select the new start date. You can choose to start a subscription immediately or choose any date in the future.

  5. Add comments and click Update.

Warning


You can either choose to start a subscription immediately or choose a date in the future. You cannot choose a date in the past.


Modify Subscription Cancellation 

Available under: CB Subscription

This action allows for modifying a scheduled subscription cancellation.

Note

To use this functionality, add the cbCancelSubscriptionCard Lighting component  to the CB Subscription page layout.

  1. Login to your Salesforce org and navigate to the CB Subscription record with a scheduled cancellation.

  2. In the Scheduled Cancellation Lightning card, click Edit Scheduled Cancellation.

  3. Choose the new Date and Time for the subscription cancellation.

  4. Choose a Cancellation reason.

  5. Select the Prorate credits to provide credits for the unused period upon cancellation. If you prefer not to provide credits, leave this unchecked.

  6. Add Comments to describe the change.

  7. Click Update to apply the new cancellation schedule.


Remove Scheduled Subscription Cancellation 

Available under: CB Subscription

This action removes a scheduled subscription cancellation.

Note

To use this functionality, add the cbCancelSubscriptionCard Lighting component  to the CB Subscription page layout.

  1. Navigate to the CB Subscription record with a scheduled cancellation.

  2. In the Scheduled Cancellation Lightning card, click Remove Scheduled Cancellation.

  3. In the Billing Cycles dropdown, select one of the following:

  4. Fixed: The subscription remains active for a set Number of billing cycles after the next renewal.

  5. Forever: The subscription remains active unless explicitly canceled.

  6. Add Comments to describe the change.

  7. Click Confirm to remove the scheduled cancellation.


Cancel Subscription Change 

Available under: CB Subscription

This action cancels a scheduled subscription change, which can be done using a Lightning card or the Change Subscription action.

Cancel using the Lightning card

Note

To use this functionality, add the cbCancelSubscriptionCard Lighting component  to the CB Subscription page layout.

  1. Navigate to the CB Subscription record with a scheduled change.

  2. In the Scheduled Changes Lightning card, click View Changes to see a summary.

  3. Click Cancel Changes to remove the schedule.

  4. Click Confirm on the Remove Schedule Changes dialog. The scheduled changes for the subscription are immediately removed.

Cancel using Change Subscription action

  1. Navigate to the CB Subscription record that has a change scheduled.

  2. Click Change Subscription. At the top of the page, a notification about the scheduled change appears.

  3. Click View Changes to see a summary of the scheduled change.

  4. Click Cancel Changes and then click Confirm on the Remove Schedule Changes? dialog. The scheduled changes for the subscription are immediately removed.

  5. If no further changes are needed, click Cancel to return to the CB Subscription record.

  6. If additional changes are required, continue with those modifications.


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.

Note

Salesforce Approvals
This operation is subject to any Salesforce approval  workflows when the appropriate setting is enabled in Chargebee.


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.

  1. Navigate to the quote.
  2. Click on the Extend Expiry button.
  3. 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.

  1. Navigate to the quote and click Generate Quote PDF.
  2. Uncheck Display detailed charges on the generated PDF to generate the quote PDF with only a summary of charges.
  3. 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

  1. Navigate to the quote that you want to sync to an opportunity.

  2. If the quote wasn't already linked to any opportunity, then update the Opportunity field of the quote to create the link.

  3. Click Sync to Opportunity. The following message appears.

  4. Click Yes, go ahead to update the linked opportunity with the items on the quote.


CB Invoice Actions 

The actions listed in this section are those that can be performed from the CB Invoice custom object in Salesforce.

Issue Refunds within Salesforce 

Available under: CB Invoice
As a Salesforce user who uses Chargebee, issuing refunds to customers can be a common occurrence.

Instead of switching from Salesforce to Chargebee to complete a refund, you can now issue refunds within Salesforce from the Chargebee Invoice object using the Issue Refund feature. Issue Refund allows you to initiate and complete refunds for customers without ever having to leave the Salesforce platform. To issue a refund within Salesforce, follow these steps:

  1. Log in to your Salesforce account, and navigate to CB Invoices > Details page.

  2. Before you issue a refund make sure the Invoice Status is paid.

  3. Click the action toolbar at the top > Issue Refund.

  4. Mention the amount to be refunded > select a Reason Code for refund > click Proceed.

  5. A prompt appears asking you to confirm the refund > click Confirm.

  6. Your refund is complete!


Download Invoice PDF 

Available under: CB Invoice
Invoicing is an essential component for running a business, and it's important to have a streamlined process in place for generating and managing invoices. Using Generate Invoices you can conveniently view and download invoices as PDFs directly from Salesforce. To download an invoice PDF, follow the steps below:

  1. Log in to your Salesforce account > CB Invoices > Details Tab.

  2. Click on the action toolbar at the top > click Generate PDF.

  3. A pop screen appears asking you to confirm > click Confirm.

  4. To view your generated PDF, navigate to the CB Invoice page > Related Tab. Your generated PDF will be under the Files section > click the invoice to view or download it.


Was this article helpful?
Loading…