Chargebee actions in Salesforce CPQ 

This page describes the actions you can perform in Chargebee for Salesforce CPQ after successfully installing it.

Prerequisites

  • The CPQ integration requires Salesforce CPQ version 242.2 or higher.
  • The Chargebee for CPQ integration cannot operate concurrently with the Chargebee Salesforce integration.
  • Before you perform any of the actions outlined on this page, make sure that the integration package is correctly set up.

Terminology 

To ensure brevity and clarity in this documentation, we have introduced some new terminology that you may encounter while reading about the Chargebee for Salesforce CPQ integration:

  • Plan quote line: A Salesforce CPQ quote line created from a product with Chargebee Type as Plan.
  • Plan subscription: A Salesforce CPQ subscription created from a product with Chargebee Type as Plan.
  • Synced plan subscription: The initial plan subscription associated with a contract. It is automatically generated upon contract creation. Additionally, this plan subscription is linked to a subscription in Chargebee, as indicated by its Chargebee ID field containing the ID of the Chargebee subscription.

Products and pricing 

When you create products in Salesforce CPQ and set up their prices, the integration syncs them to Chargebee as Plan, Addon, or Charge records, along with their respective Pricing records.

See also

Field mapping for Product and Price Book Entry objects.

Product synchronization 

This section explains the synchronization process of a product and price book entry record from Salesforce CPQ to Chargebee. A product and its price book entries are synced to Chargebee as either a plan with plan price points, an addon with addon price points, or a charge with charge price points.

Note

Once created, products are synced to Chargebee during the subsequent sync job conducted by the integration.

Consider the following Salesforce product record:

Product Name Product Code Subscription Term Billing Frequency Pricing Method Chargebee Type
Office Supplies `office-supplies` 12 Monthly List "Plan" or "Add-on"

And the corresponding Salesforce price book entry record:

Product Code List Price
`office-supplies` USD 1200

Through the integration, the above data is synchronized as a Chargebee plan/addon record:

Plan/Addon Name Plan/Addon ID
Office Supplies `office-supplies`

Additionally, Chargebee price point records are created:

External name/Internal name/ID Billing frequency Pricing model Currency Price
office-supplies-USD-1_MONTH Monthly Per unit USD 100
office-supplies-USD-3_MONTH Every 3 months Per unit USD 300
office-supplies-USD-6_MONTH Every 6 months Per unit USD 600
office-supplies-USD-1_YEAR Annual Per unit USD 1200

Charge price points

When a Salesforce product has an empty Chargebee Type field, it is synchronized, with its price book entries, as a charge with charge price points in Chargebee. A corresponding charge price point is created for each price book entry associated with the product.

Syncing products from Salesforce to Chargebee 

Prerequisite
Ensure that the billing frequencies supported in Salesforce have also been created in Chargebee.

  1. Open the product list page.

  2. Click New to create a new product.

  3. Enter the Product Name and Product Code. Both are mandatory. Avoid using spaces or special characters in the product code.

  4. Select the appropriate Product Family. The field value must match the ID field of a product family in Chargebee.

  5. Select the Active checkbox.

  6. Choose a Pricing Method from the supported options. See the list of supported pricing methods.

  7. For Chargebee Type, select one of the following values:

    • Plan: Sync the product to Chargebee as a plan.
    • Add-On: Sync the product to Chargebee as an addon.
    • None: Sync the product to Chargebee as a charge.
  8. Set the Subscription Pricing. This field is mandatory when Chargebee Type is set to Plan or Add-On.

  9. Enter the Subscription Term. This field is mandatory when Chargebee Type is set to Plan or Add-On. The value determines the length of time for which the product price is applicable.

  10. Click Save.

  11. On the Related list for the product, under Price Books, click Add Standard Price. Note that the standard price book is not required for the integration to work; it is only required that a price book be configured with a Chargebee site.

  12. In the New Price Book Entry dialog, enter a standard price and click Save.

  13. On the Related list for the product, under Price Books, click Add to Price Book.

  14. In the Add to Price Book dialog, select the Price Book that corresponds to the Chargebee site you want to sync the products to. If a non-Chargebee price book is selected here, the product will not be synced to Chargebee, and billing will not occur.

  15. Choose the Currency.

  16. Click Next.

  17. In the New Price Book Entry dialog, modify the List Price as needed.

  18. Select the Send to Chargebee checkbox.

  19. Click Save.

This will create an item record (plan, addon, or charge) in Chargebee during the next sync. Pricing records will be created in Chargebee for the supported billing frequencies defined in Chargebee. The Chargebee ID field on the product is filled with the ID of the plan, addon, or charge record in Chargebee. The Chargebee Site ID field on the product is filled with the name of the Chargebee site in which the plan, addon, or charge records were created.

Confirming product sync from Salesforce to Chargebee 

You can perform the steps in this section to confirm that a product record in Salesforce has successfully synced to Chargebee.

Important
If you are unable to locate the record in the list during step 7 below, it is likely because the subsequent sync following product creation has not yet been completed. Allow some time before checking again.

  1. In Salesforce, click on the app launcher and select Chargebee.
  2. Click Chargebee Tracker on the navigation bar.
  3. Click on the Time Stamp column heading to sort the list in descending order of the record timestamp.
  4. Click on the filter icon and select the CREATE_ITEM_PRICES checkbox on the Apply Filters dialog that appears.
  5. Click Apply Filters.
  6. Open the first record by clicking the hyperlinked Salesforce Record field value.
  7. Check the value of the Integration ID field to ensure that it has the value of the Product Code field as the prefix. If the value is not the same as the Product Code, the record corresponds to a different product in Salesforce. Go back a step and check the next record until you find the one with the right value for Integration ID.
  8. Check the Status field. If it is SUCCESS, the product has been successfully synced to Chargebee.
  9. Click the back button on the browser to go back to the filtered records.
  10. Repeat steps 7 and 8 for the next set of records until you have ensured all required prices have been created in Chargebee.

Editing prices for subscription products 

At times, you may need to modify the default prices generated by the integration for different billing periods. For instance, let's assume the List Price of a product is EUR 1400 per year. When the plan prices are created in Chargebee through the integration, a monthly plan price is automatically generated with a unit price of EUR 1400 รท 12 = EUR 116.67. However, you might want to adjust this to EUR 120. You can edit the CB Item Price custom object associated with the plan price to make this change.

  1. Open the Related list of the product.
  2. Under the CB Item Prices list, click View All to see the full list.
  3. Open a record and review the Price and Frequency fields.
  4. Edit the value of the Price field as necessary and click Save.
  5. Navigate to the product's Related list and repeat the previous three steps for any remaining CB Item Price records.

Creating an account 

Accounts in Salesforce are synced to Chargebee as customer records. Accounts are only synced to Chargebee when a subscription or one-off charge is created against them.

Steps to create an account 

  1. Edit the Chargebee Site field and select the Chargebee site to sync the account to. This tells the integration which Chargebee site should be used if multiple sites are connected.
  2. Optionally, set the Locale field for the account. This configures the Language field for the customer record in Chargebee, ensuring that invoices are generated in the correct language. When left blank, Chargebee's default settings apply.
  3. Select the Auto Collection checkbox if you want the customer to be charged automatically using their payment method.
  4. Choose a Chargebee Primary Contact or create a new one. The contact details are synced to Chargebee as the customer record details.
  5. Optionally, set the Net Term Days field for the account. You can skip this step and set the field only at the quote level. If you choose to set the field at the quote level, it will specifically override the value set on the account, for the deal.
  6. Click Save.

Creating a subscription 

Overview 

Prerequisite:
Before creating subscriptions, make sure your Chargebee site is configured to allow manual discounts and multi-decimal support.

Note

To reduce the number of non-subscription customer records in Chargebee, it is not possible to sync a Customer from Salesforce CPQ to Chargebee without an associated Subscription or Charge.

Subscriptions in Chargebee are created from contracts in CPQ that have been properly configured. The CPQ subscriptions created under the contract correspond to the items within the Chargebee subscription.

Information

We recommend automating as many post-sales steps as possible to reduce manual input and potential user error.

Steps to create a Chargebee subscription from CPQ 

  1. Create a new account in Salesforce, or navigate to an existing account you'd like to sync to Chargebee.

  2. In the Related list of the account, under the Opportunities section, choose an existing opportunity or click the New button to create a new opportunity.

  3. Enter the following fields Opportunity Name, Close Date, and Stage.

  4. Click Save.

  5. Open the opportunity.

  6. In the Related list of the opportunity, under the Quotes section, select the existing primary quote or click the New button to create a new quote.

  7. When creating a new quote, make sure the Account and Opportunity fields are filled with the values for the account and opportunity created in the earlier steps.

  8. Select the Primary checkbox for the quote.

  9. Optionally, choose the appropriate Payment Terms. It will specifically override the value set on the account, for this deal.

  10. Optionally, select the Create Unbilled Charges checkbox for contracts that are scheduled to start in the future. Read this section for more information about this feature.

  11. Click Save.

  12. Click Edit Lines on the quote page.

    1. In the Choose Price Book dialog that appears, select the price book associated with the Chargebee site you selected for the account.

    2. Click Add Products and add any pre-configured products. You may also add metered products. Note that subscriptions in Chargebee can only have one plan item, so make sure to select only one product with a Chargebee Type field value of Plan.

    3. Add any applicable discounts to the quote. These are eventually added to the Chargebee subscription as Manual Discounts

    4. Enter any additional details and click Save.

  13. Edit the quote you created and select the Ordered checkbox.

  14. Click Save. An order record is created for the quote.

  15. In the Related list of the quote, under the Orders section, click on the order number of the newly created order.

  16. Click Edit on the order detail page.

    1. Select Activated as the Status.
    2. Select the Contracted checkbox.
    3. Click Save. Allow a few seconds for the contract to be created.
  17. In the Related list of the quote, under the Contracts section, open the newly created contract by clicking on its Contract Number. Refresh the contract detail page in case the contract is not visible yet.

  18. In the Related list of the contract, under the Subscriptions section, copy the value of Subscription #. If there are multiple subscriptions under the contract, copy from the plan subscription.

  19. Go back to the order detail page.

  20. From the Order Products related list, open any one of the order products.

  21. Paste the value copied in step 18 into the Chargebee Plan field of the order product and click Save.

  22. Repeat steps 19 to 21 for the remaining order products, excluding only those that should not be included as an item in the single subscription that will be created in Chargebee for the contract.

  23. Click the field value of Chargebee Plan on the last edited order product to open the subscription.

  24. Select the Send to Chargebee checkbox and click Save. A new subscription is immediately created in Chargebee.

Amending a subscription 

Considerations for subscription amendment 

  • The start date for the subscription changes is taken from the order product start dates. If the start dates are different for different order products, the latest start date is considered for scheduling subscription changes in Chargebee.

  • While editing the quote lines, a plan quote line must be provided or the Chargebee subscription will cancel.

Steps for subscription amendment 

Information

We recommend automating as many post-sales steps as possible to reduce manual input and potential user error.

  1. Open the contract that is associated with the subscription you want to amend in Chargebee.
  2. Click on Amend.
  3. All the CPQ subscriptions are listed.
  4. Click on Amend.
  5. You are now presented with the Edit Quote page for a new amendment quote for the contract. The quote is created as a primary quote under a new amendment opportunity for the contract.
  6. Make the changes to the quote lines. See the considerations for amending a subscription.
  7. Click Save.
  8. On the quote detail page, select the Ordered checkbox.
  9. Click Save. An order is created with order products for any additional products added. For example, if the quantity for a quote line was changed from 1 to 3, the order product is created for the additional quantity, which is 2.
  10. In the Related list of the quote, open the order.
  11. On the order detail page, change Status to Activated.
  12. Select the Contracted checkbox.
  13. Click Save. Allow a few seconds for the contract to be amended.
  14. In the Related list of the order, open the contract.
  15. In the Related list of the contract, under the Subscriptions section, you will see new subscription(s) created for any new subscription-order product(s).
  16. In this list, locate the synced plan subscription record for the contract. You can identify the synced plan subscription by checking its Chargebee ID field. The field value would be the subscription ID from Chargebee.
  17. Copy the Subscription # of this subscription.
  18. Go back to the Related list of the order.
  19. Open one of the order products.
  20. Edit the Chargebee Plan field and paste the Subscription # into it.
  21. Click Save.
  22. Perform the above three steps for all the order products under the new order.
  23. We must now sync these changes to Chargebee. On the just saved order product, click the Chargebee Plan field value to open the synced plan subscription.
  24. Open the Edit dialog and click Save. The Chargebee subscription is immediately updated/scheduled with the changes.

Renewing a subscription 

Once a renewal contract has been created in Salesforce CPQ, you can sync it to Chargebee to update the original subscription.

Information

We recommend automating as many post-sales steps as possible to reduce manual input and potential user error.

  1. Open the contract.
  2. Under the Salesforce CPQ Information section, select the following checkboxes:
    • Renewal forecast
    • Renewal quoted
  3. Save the contract. This will create a renewal opportunity and renewal quote.
  4. Allow the renewal job to complete.
  5. In the Related list of the contract, under Renewal Opportunities, open the renewal opportunity.
  6. Open the quote created under the opportunity.
  7. Click Edit Lines and modify the quote lines as needed.
  8. Select the Ordered checkbox.
  9. Save the quote. An order is created for the quote.
  10. From the Related list of the quote, open the order.
  11. On the Order detail page, if the start date displays the current date, change it to the contract renewal date. (See Considerations for Amendments.
  12. Edit the Status to Activated.
  13. Select the Contracted checkbox.
  14. Click Save. This will create a new contract.
  15. Refresh the page.
  16. From the Related list of the order, open the contract.
  17. On the Contract detail page, open the renewal opportunity by clicking on the Opportunity field value.
  18. On the opportunity detail page, open the original contract by clicking on the Renewed Contract field value.
  19. From the related list of the contract, under Subscriptions, copy the subscription number of the synced plan subscription.
  20. Go back two steps on the browser to the original contract.
  21. From the Related list of the contract, open the renewal opportunity.
  22. From the renewal opportunity detail page, open the Primary Quote.
  23. From the Related list of the quote, open the order.
  24. Open one of the order products.
  25. Edit the Chargebee Plan field and paste the Subscription # into it.
  26. Click Save.
  27. Return to the order product list by clicking the browser's Back button.
  28. Perform the previous four steps for the remaining order products.
  29. On the just saved order product, click the Chargebee Plan field value to open the synced plan subscription.
  30. Open the Edit dialog and click Save. The Chargebee subscription is immediately updated to reflect the contract renewal changes.

Canceling a subscription 

When you amend a contract to no longer include a plan subscription, the associated Chargebee subscription is canceled. You can accomplish this while amending the contract by either removing the plan quote line from the contract or changing its quantity to zero:

  1. Open the contract associated with the subscription you want to amend in Chargebee.
  2. Click on Amend.
  3. All the CPQ subscriptions are listed.
  4. Click on Amend.
  5. You are now presented with the Edit Quote page for a new amendment quote for the contract. The quote is created as a primary quote under a new amendment opportunity for the contract.
  6. Set the quantity of all the quote lines to zero. Alternatively, you can set the plan quote line quantity alone to zero. Also see the considerations for amending a subscription.
  7. Click Save.
  8. From the quote detail page, click on the Opportunity field value to open the amendment opportunity.
  9. On the amendment opportunity detail page, select the Contracted checkbox. Allow a few seconds for the contract to be amended.
  10. On the opportunity detail page, open the contract by clicking on the Amended Contract field value.
  11. In the Related list of the contract, under the Subscriptions section, new record(s) would have been created with negative quantity value(s).
  12. In this list, locate and open the synced plan subscription record for the contract and open it. You can identify the synced plan subscription by checking its Chargebee ID field. The field value would be the subscription ID from Chargebee.
  13. Open the Edit dialog and click Save. The Chargebee subscription is immediately canceled or scheduled for cancellation.

Adding one-off charges to an account 

If you want to quote a non-subscription product for an account, Chargebee also supports billing for this. As discussed in another section, non-subscription products sync with Chargebee as charges. The steps below show how to order a quote for a non-subscription product for an account and sync the order as an invoice in Chargebee.

Information

We recommend automating as many post-sales steps as possible to reduce manual input and potential user error.

Part 1: Creating the order and sending it to Chargebee 

  1. Create a new account in Salesforce, or navigate to an existing account you'd like to sync to Chargebee.
  2. In the Related list of the account, under the Opportunities section, choose an existing opportunity or click the New button to create a new opportunity.
  3. Enter the following fields Opportunity Name, Close Date, and Stage.
  4. Click Save.
  5. Open the opportunity.
  6. In the Related list of the opportunity, select the existing primary quote under the Quotes section. Alternatively, click the New button to create a new quote.
  7. When creating a new quote, ensure you fill the Account and Opportunity fields with the values from the account and opportunity you created in previous steps.
  8. Select the Primary checkbox for the quote.
  9. Optionally, choose the appropriate Payment Terms. It will specifically override the value set on the account, for this deal.
  10. Click Save.
  11. Click Edit Lines on the quote page.
    1. In the Choose Price Book dialog that appears, select the price book associated with the Chargebee site you selected for the account.
    2. Click Add Products and add one or more one-off charges to the quote. One-off charges have no value in the Chargebee Type field and can be identified as such.
    3. Add any applicable discounts to the quote.
    4. Enter any additional details and click Save.
  12. Edit the quote you created and select the Ordered checkbox.
  13. Select the Send Charges checkbox.
  14. Click Save. An order record is created for the quote.
  15. In the Related list of the quote, under the Orders section, click on the order number of the newly created order to open it.
  16. In the Related list of the order, open any one of the order products listed under Order Products.
  17. Edit the order product and select the Send to Chargebee checkbox.
  18. Return to the order page and repeat the preceding two steps for any other order products you need to sync to Chargebee as one-off charges.

Part 2: Verifying the invoice in Chargebee 

  1. In Salesforce, click on the app launcher and select Chargebee.
  2. Click Chargebee Tracker on the navigation bar.
  3. Click on the Time Stamp column heading to sort the list in descending order of the record timestamp.
  4. Click on the filter icon and select the CREATE_INVOICE_CHARGE checkbox on the Apply Filters dialog that appears.
  5. Click Apply Filters.
  6. Examine the Status field of the first record. If it shows Success, the invoice has been created in Chargebee successfully.
  7. Open the first record by clicking the hyperlinked Salesforce Record field value.
  8. Note the value of the Integration ID field. This is the # of the invoice created in Chargebee.
  9. Open Chargebee > Invoices & Credit Notes > Invoices > Look for the invoice with the correct invoice number in the list that appears.

Adding one-off charges to a future subscription as unbilled 

In Chargebee, you can leave immediate charges unbilled, allowing them to be billed in the next billing cycle. However, when new subscriptions (contracts in Salesforce) are scheduled to start in the future, the charges incurred upon subscription activation must be invoiced and cannot be left unbilled.

The Chargebee for Salesforce CPQ integration addresses this limitation. When creating a quote for a contract with a future start date, you can select the Create Unbilled Charges checkbox. This ensures that the charges raised for the contract within the Chargebee subscription remain unbilled during subscription activation and are only billed in the subsequent billing cycle.

Manage Chargebee account hierarchy 

Prerequisite

You must enable account hierarchy in Chargebee for this feature to work.

Use this feature to align the account hierarchy in Chargebee with the hierarchy set for the accounts in Salesforce. If any accounts in the pair haven't been synced to Chargebee before, this feature syncs them before setting the hierarchy. Invoke this feature from the child account. If you need to create a hierarchy in Chargebee that involves multiple customer records, build it from the bottom, linking one parent after another.

If you've already set the account hierarchy in Chargebee, this feature displays the current hierarchy.

When setting the hierarchy in Chargebee, you also need to designate the invoice owner and payment owner for the child account's subscriptions. Here are your options:

  • Who do you want to invoice? Choose the account that should receive the invoice for the customer's subscriptions. The options are the child customer or any of its ancestors.
  • Who pays the invoice? Choose the entity responsible for payment. Your options depend on your choice of invoice owner:
    • If you select the child customer as the invoice owner, the payment owner can be the same customer or any of its ancestors.
    • If an ancestor is the invoice owner, the payment owner must be the same entity.

Unlinking a hierarchy 

If you've already established a hierarchy in Chargebee, you can use this feature to remove it.


Was this article helpful?
Loading…