Chargebee Integration
Last updated
Last updated
Integrating Chargebee with Sphere enables a.) seamless transaction data import and b.) live tax calculation within Chargebee invoices.
This guide provides step-by-step instructions on generating an API key in Chargebee and connecting it to Sphere for a smooth and secure integration.
It also covers configuring the Sphere Tax API within Chargebee to ensure accurate tax calculations.
Follow the steps below to get started:
In your Sphere account, click on the Connect button on the Chargebee tile.
In another window, open your Chargebee Dashboard and navigate to the Settings tab. Click Configure Chargebee.
Select API Keys from the menu.
In the API Keys and Webhooks section, click + Add API Key to generate a new key.
A modal will appear asking for the key type. Choose Read-Only Key.
Select the All option to grant full read-only access, provide a name for the API key, and click Create Key.
Go back to your Sphere account and enter the API key generated in Step 5 along with your Chargebee site name, which can be found in your Chargebee URL.
Example: https://getsphere-test.chargebee.com/dashboards
Site Name: getsphere-test
Ensure there are no extra spaces before or after the values.
Click Save to complete the setup. A success message will confirm the connection.
If the connection is successful, data will begin importing and your products will appear in Sphere (please provide time for all products to load successfully).
Click the "Edit" button on the Chargebee integration card to make changes.
This will open a modal displaying the integration details. Click "Generate API Key" to create a new key.
Follow the steps to create a new API key.
Make sure to store the newly generated key securely, as you won’t be able to view it again later.
Please visit the link below to add the Sphere application to your Chargebee account:
https://<domain>.chargebee.com/third_party/tax_providers/sphere/overview
Click the "Get Started" button located in the top right corner.
A modal will appear requesting the Sphere Tax API Key. Enter the key you generated in Step 4 of this guide.
It will guide you through a few steps. Click "Proceed" to continue.
In the Configure Sync Rules step, enable Chargebee to post invoices and credit notes to Sphere. Then, from the dropdown menu, select the Commit all invoices and credit notes option for the second question, and click Proceed.
Next, you'll need to configure Sphere for the countries where you will be calculating taxes. Click the Go to Taxes button to proceed.
You will need to define the regions where taxes will be applied. Click the option to add regions, and select the appropriate regions or countries for which you intend to calculate taxes.
For each region you add, be sure to choose Sphere taxes for that region.
You’re all set! You can now start creating invoices, and Sphere will automatically apply the taxes.
Remember to replace <domain>
with your Chargebee domain URL.
For example, in the URL , the domain is sphere-test.