- Home
- Resources
- Integrations
- Chargebee
Chargebee n8n integrationAutomate Chargebee with n8n.
How much of your billing follow-up still happens by hand? The Chargebee n8n integration gives you a node with 5 operations across customers, invoices and subscriptions, plus a trigger that listens to 34 Chargebee events over a webhook. Built for ops and finance teams already running n8n.
Verified Trustpilot reviews · AI, automation & growth agency
What can the Chargebee n8n integration actually do?
Chargebee runs the recurring side of the business: customers, subscriptions, invoices, payments. n8n puts that billing activity on a canvas next to everything else you use. Two building blocks do the work. The Chargebee Trigger starts a workflow when something happens on your Chargebee site, and the Chargebee node runs 5 operations across 3 resources when a workflow needs to write or read something back.
Take dunning first. A failed charge fires payment_failed, and the workflow can post the account into a finance channel in Slack within seconds, then call the node to fetch the invoice PDF link so whoever picks it up already has the document in front of them. Nobody refreshes the Chargebee dashboard waiting for a card to bounce.
Reporting is the second pattern, and it runs on a schedule rather than on an event. The invoice.list operation returns invoices, a filter narrows them to the period you care about, and the rows land in Google Sheets for the monthly recap or go on to Xero for the accounting side. The same workflow can run every month without anyone opening an export screen.
Third, the lifecycle work around trials and signups. subscription_trial_ending lands 6 days before the trial period ends, which is enough runway to send a nudge, flag the account, or open a task for whoever owns it. On the other end, a signup captured outside Chargebee goes straight in through customer.create, with the email and company filled from the item that started the run.
Where the node stops, HTTP Request takes over. Anything outside those 5 catalog operations is a call you build yourself with the HTTP Request node, reusing the same Chargebee credential through its predefined authentication, so you are not juggling a second set of keys.
One practical note on scope: the trigger is the broad half of this integration and the node is the focused half. If your workflow mostly reacts, you will live in the trigger. If it mostly writes, you will chain the node with the tools around it. Our n8n review covers how that split plays out on bigger automations, and the n8n training walks through building one end to end.
How do you connect Chargebee to n8n?
- 01
Generate an API key in Chargebee
You need a Chargebee account first. Inside it, create an API key following Chargebee's own documentation on creating API keys. That key is the only supported authentication method for both the Chargebee node and the Chargebee Trigger, so one key covers everything you are about to build. Copy it somewhere safe before you leave the page.
- 02
Create the credential in n8n
Open the Credentials menu in n8n and add a Chargebee credential. It asks for two things. Account Name is your Chargebee site name, the subdomain only: if your site is
https://n8n.chargebee.com, the Account Name isn8n. API Key is the key you just generated. Save it once and every Chargebee node in every workflow can pick it from the dropdown. - 03
Register the webhook URL in Chargebee
The trigger needs Chargebee to call n8n. In your Chargebee dashboard, go to Settings, then Configure Chargebee, scroll down to Webhooks and select Add Webhook. Enter a Webhook Name and paste the Webhook URL from your n8n trigger node, then select Create. A webhook is simply a URL that Chargebee calls the moment something happens, which is why events reach n8n in seconds with no polling.
What starts a workflow from Chargebee ?
Chargebee Trigger is the node that starts a workflow when something happens in Chargebee. It listens to 34 events, listed below by family. Pick one or several, activate the workflow: n8n registers the webhook on your Chargebee account.
What you see in n8n
Every event, by family
One row per object, one chip per action. The event to tick in the node is object.action; hover a chip to read exactly when it fires.
card_added.*1card_added. card_added
card_deleted.*1card_deleted. card_deleted
card_expired.*1card_expired. card_expired
card_expiring.*1card_expiring. card_expiring
card_updated.*1card_updated. card_updated
customer_changed.*1customer_changed. customer_changed
customer_created.*1customer_created. customer_created
customer_deleted.*1customer_deleted. customer_deleted
invoice_created.*1invoice_created. invoice_created
invoice_deleted.*1invoice_deleted. invoice_deleted
invoice_generated.*1invoice_generated. invoice_generated
invoice_updated.*1invoice_updated. invoice_updated
payment_failed.*1payment_failed. payment_failed
payment_initiated.*1payment_initiated. payment_initiated
payment_refunded.*1payment_refunded. payment_refunded
payment_succeeded.*1payment_succeeded. payment_succeeded
refund_initiated.*1refund_initiated. refund_initiated
subscription_activated.*1subscription_activated. subscription_activated
subscription_cancellation_scheduled.*1subscription_cancellation_ scheduled. subscription_cancellation_ scheduled
subscription_cancelled.*1subscription_cancelled. subscription_cancelled
subscription_cancelling.*1subscription_cancelling. subscription_cancelling
subscription_changed.*1subscription_changed. subscription_changed
subscription_created.*1subscription_created. subscription_created
subscription_deleted.*1subscription_deleted. subscription_deleted
subscription_reactivated.*1subscription_reactivated. subscription_reactivated
subscription_renewal_reminder.*1subscription_renewal_ reminder. subscription_renewal_ reminder
subscription_renewed.*1subscription_renewed. subscription_renewed
subscription_scheduled_cancellation_removed.*1subscription_scheduled_ cancellation_ removed. subscription_scheduled_ cancellation_ removed
subscription_shipping_address_updated.*1subscription_shipping_ address_ updated. subscription_shipping_ address_ updated
subscription_started.*1subscription_started. subscription_started
subscription_trial_ending.*1subscription_trial_ ending. subscription_trial_ ending
transaction_created.*1transaction_created. transaction_created
transaction_deleted.*1transaction_deleted. transaction_deleted
transaction_updated.*1transaction_updated. transaction_updated
The trigger also accepts * (any event). Handy for logging, dangerous in production.
Configuration notes
01Set up the Chargebee Trigger
The Chargebee Trigger (version 1) starts a workflow when Chargebee events occur. There is one thing to configure and it is the event list.
Key parameters
- Events: the list of Chargebee events this workflow reacts to. All 34 events are in the dropdown, grouped by the object they belong to, and you tick as many as the workflow needs.
- Events set to
*: the wildcard, meaning every event Chargebee sends. Useful when you want one workflow to catch everything and sort it downstream, less useful when you want a tight, readable canvas.
02React to subscription events
Subscriptions carry the largest share of the 34 events, which matches how much of a billing platform's life happens on the subscription object.
Key parameters
- Events, state changes:
subscription_created,subscription_startedwhen a future subscription gets going,subscription_activatedafter the move from trial to active,subscription_changedon recurring items,subscription_renewed,subscription_reactivated,subscription_deleted, andsubscription_shipping_address_updated. - Events, the cancellation path:
subscription_cancellation_scheduled,subscription_cancelling6 days before the scheduled date,subscription_cancelled, andsubscription_scheduled_cancellation_removedwhen someone changes their mind. - Events, the two heads-up events:
subscription_trial_ending6 days before the trial ends andsubscription_renewal_reminder3 days before renewal.
03React to invoice and payment events
Money moving is the other half of the picture, and it splits into 4 invoice events and 5 events on payments and refunds.
Key parameters
- Events, invoices:
invoice_generatedwhen a new invoice is generated,invoice_updatedwhen the billing or shipping address changes, when the invoice is voided, or when the amount due moves because a payment was applied or removed, plusinvoice_createdandinvoice_deleted. - Events, payments:
payment_succeededon collection,payment_failedwhen a card charge fails,payment_initiatedfor a direct debit payment,payment_refunded, andrefund_initiatedfor a refund started via direct debit.
invoice_created only fires in metered billing, on a pending invoice that still has usage charges to add, and only when the Notify for Pending Invoices option is on. For the everyday case, invoice_generated is the one you want.04React to card events
Cards get their own group of 5 events, and they are the quietest useful ones on the list because they let you fix a payment problem before it becomes a failed charge.
Key parameters
- Events, the early warning:
card_expiringfires 30 days before the expiry date, which is the window you have to ask for new details without any drama. - Events, after the fact:
card_expiredonce the date has passed, andcard_deletedwhen a card is removed from a customer. - Events, housekeeping:
card_addedandcard_updated, handy for confirming to a customer that their new card is on file.
card_expiring, stopped by card_updated arriving for the same customer, is the cheapest churn reduction in this list.05React to customer and transaction events
Two smaller groups close the count: 3 events on the customer record and 3 on transactions.
Key parameters
- Events, customers:
customer_created,customer_changedon any change to the record, andcustomer_deleted. These are the ones to mirror into a CRM or a directory so billing and sales see the same names. - Events, transactions:
transaction_createdwhen a transaction is recorded,transaction_deleted, andtransaction_updated, which also covers a transaction being removed, an excess payment applied to an invoice, or a change to the capturable amount.
What can the Chargebee node do?
The Chargebee node exposes 5 operations across 3 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
| Resource | Create | Delete | Cancel | List | PDF Invoice URL |
|---|---|---|---|---|---|
| Customer | ✓ | ||||
| Invoice | ✓ | ✓ | |||
| Subscription | ✓ | ✓ |
Operations index
Customer
1 operationCreate a customer
customer.createWhat you see in n8n
Notes & use cases
Adds a customer to Chargebee and hands the created record back to the workflow, so a signup captured elsewhere lands in billing without retyping.
Key parameters
- Email: the customer email address, normally mapped from the item that started the run.
- User ID: your own identifier for the customer. Leave it empty and Chargebee generates one for you.
- First Name, Last Name, Phone and Company: the naming details that show up on invoices and in the customer list.
- Custom Properties: sets values that are not in the predefined list, such as a plan code or an account owner.
Invoice
2 operationsList an invoice
invoice.listWhat you see in n8n
Notes & use cases
Returns invoices from your Chargebee site as items, which is what turns a monthly export chore into a workflow that runs itself.
Key parameters
- Max Results: how many invoices come back, kept under 100 by the node. Plan a loop if you need a longer period rather than pushing the number up.
- Filters: narrows which invoices are returned. Without one you get whatever the site hands over first, which is rarely the set you meant.
Get URL for the invoice PDF
invoice.pdfUrlWhat you see in n8n
Notes & use cases
Hands back the URL of an invoice PDF. That link is what makes a billing notification useful instead of merely informative.
Key parameters
- Invoice ID: the identifier of the invoice you want, and it is required, so an empty value stops the node. It usually comes from the previous node as an expression such as
{{ $json.id }}, the n8n syntax for reading a field off the incoming item.
Subscription
2 operationsCancel a subscription
subscription.cancelWhat you see in n8n
Notes & use cases
Cancels a subscription, either right away or at the end of the current term. The choice between those two is the whole point of this operation.
Key parameters
- Subscription ID: required, the identifier of the subscription to cancel. An empty value blocks the node before it calls Chargebee.
- Schedule End of Term: off, the cancellation happens directly. On, it is scheduled for the end of the term, which is what a customer who has already paid for the period expects.
Delete a subscription
subscription.deleteWhat you see in n8n
Notes & use cases
Removes a subscription from Chargebee rather than ending its billing cycle, which makes it a very different tool from the cancel operation above.
Key parameters
- Subscription ID: required, the identifier of the subscription to delete. The node expects the identifier, not the customer name or the plan label, so read it from the item that triggered the workflow.
Need help automating Chargebee with n8n?
A person reads every message.

