Chargebee
Connect Chargebee to Altruon with an API token, your site URL and a webhook, so subscriptions, invoices and credit notes stay in sync.
Connect Chargebee so that Altruon creates subscriptions there, collects every invoice through the acquirers you route to, and keeps subscriptions, invoices and credit notes in sync.

- What syncs
- Subscriptions, invoices (first and recurring) and credit notes
- What you need
- A full-access API key (the API token) and your Chargebee site URL
- Webhook
- Manual. You add a webhook in Chargebee with seven invoice, credit note and subscription events.
- Good to know
- Your sandbox site and your production site have different URLs. Altruon records each payment on the Chargebee invoice.
Before you start
- Altruon backoffice accessYou can sign in to the environment you are connecting. See Sandbox and environments.
- A Chargebee siteYou can open Settings > Configure Chargebee in the Chargebee backoffice, with its API Keys and Webhooks pages.
- An acquirer to collect withAltruon collects Chargebee invoices through an acquirer you connect. See Acquirers.
Get your Chargebee credentials
- In the Chargebee backoffice, go to Settings > Configure Chargebee > API Keys.
- Copy a full-access API key. This is the API token.
- Note your Chargebee site URL. Replace
{your-site}with the name of your site.
| Environment | Site URL |
|---|---|
| Sandbox | https://{your-site}-test.chargebee.com |
| Production | https://{your-site}.chargebee.com |
Connect Chargebee in Altruon
- Sign in to Altruon and go to Settings > Billing Platforms.
- Click + Add Integration and select Chargebee.
- Enter the API token in Token and the site URL in URL.
- Click Add Integration.
Once connected, the Chargebee integration is marked Active.

Set up the webhook
Altruon needs a webhook from Chargebee to stay in sync with your billing events.
-
In Altruon, go to Settings > Billing Platforms and click View Integration on Chargebee.
-
Copy the Webhook Endpoint URL.

Altruon: Integration Details for Chargebee -
In the Chargebee backoffice, go to Settings > Configure Chargebee > Webhooks.
-
Click + Add Webhook.
-
Paste the URL into the Webhook URL field.
-
Under Events to Send, select:
Invoice GeneratedCredit Note CreatedSubscription CreatedSubscription CancelledSubscription ReactivatedSubscription DeletedSubscription Paused
-
Click Create.

Test the connection
- Open Settings > Billing Platforms. Chargebee is listed as Active.
- With an acquirer connected and a routing entry in place, take a test payment in sandbox for a Chargebee plan. See Testing.
- Check the result in Chargebee: the subscription exists, and the payment is recorded on its first invoice with a reference made of the acquirer, the payment method and the acquirer's transaction ID.
Notes and limits
- Subscriptions. Altruon creates the subscription in Chargebee after the first successful payment or trial setup, with any supported acquirer and payment method.
- Invoices. First and recurring invoices are synchronized and collected automatically.
- Credit notes. Credit notes are synchronized, and the refund is made automatically on any supported acquirer and payment method.
- Site URLs. The sandbox site ends in
-test.chargebee.com. Connect it in the Altruon sandbox, and the production site in production. - Trials. The trial length comes from your catalog, for example the trial on the Chargebee item. See Trials.