- List and manage customers and subscriptions
- Read invoices, credit notes, payments, and orders
- Build billing workflows around products and item prices
- Create hosted checkout pages and billing portal flows
Common use cases and example apps
| Example app | Example prompt | Description |
|---|---|---|
| Customer billing portal | Use Chargebee and build a customer billing portal where customers can view their subscription, invoices, and payment status. | Give customers access to billing information from Chargebee. The app reads customer, subscription, invoice, and payment data from Chargebee and presents it in a self-service portal. |
| Subscription admin dashboard | Use Chargebee and build an admin dashboard for searching customers, viewing subscriptions, and checking invoice status. | Help operators manage subscription accounts in one place. The app lists Chargebee customers and subscriptions so support or finance teams can investigate account status. |
| Checkout flow | Use Chargebee and build a checkout flow that creates hosted checkout pages for subscription plans. | Start subscription checkout from your app. The app creates Chargebee hosted checkout pages and redirects customers to complete subscription signup. |
| Revenue reporting app | Use Chargebee and build a revenue dashboard showing recent invoices, payments, credit notes, and orders. | Turn billing activity into operational reporting. The app reads Chargebee billing records and summarizes recent revenue activity for your team. |
| Plan management tool | Use Chargebee and build an internal tool for reviewing products, item prices, and subscription plan details. | Surface product catalog data from Chargebee. The app reads Chargebee product and price data so teams can inspect plans without leaving the app. |
| Renewal workflow tracker | Use Chargebee and build a workflow tracker for upcoming subscription renewals and failed payments. | Track billing events that need follow-up. The app uses Chargebee subscription and payment data to highlight accounts that need attention. |
How to connect Chargebee
Workspace admins and owners can connect Chargebee. You can create multiple Chargebee connections using different API keys, which is useful for separating environments (for example, test and production) or connecting different Chargebee sites. When the connection is created, Chargebee becomes available across all projects in the workspace. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting Chargebee, make sure you have:- A Chargebee account
- Your Chargebee site name, for example
acme-testfromhttps://acme-test.chargebee.com - A Chargebee API key
- Lovable workspace owner or admin role
All API requests made through this connector use your Chargebee account. API usage, limits, and billing are handled directly by Chargebee, not Lovable.
Step 1: Get your Chargebee site name and API key
A Chargebee API key lets your Lovable app authenticate with the Chargebee API for your connected site. You can create separate keys for different environments or apps. To find your site name and create a Chargebee API key:Open your Chargebee site
Sign in to Chargebee with the account for the site you want to connect.
Note your site name
Copy the site name from your Chargebee URL. For example, if your Chargebee URL is
https://acme-test.chargebee.com, enter acme-test in Lovable.Create or copy an API key
Create a key for Lovable or copy an existing key with permissions for the Chargebee API actions your app needs. Use a descriptive name, for example
Lovable integration.Step 2: Connect Chargebee to Lovable
You can create multiple connections using different API keys.Configure the connection
- Display name: name the connection, for example
Chargebee ProdorChargebee Test. - Site name: enter your Chargebee site name without
.chargebee.com, for exampleacme-test. - API key: paste your Chargebee API key.
Choose who can access this connection
Under Who can access this connection, decide who in your workspace can use the connection:
- Only you (default): only the person creating the connection can use it and its associated data.
- Invite specific people: only you and explicitly added workspace members can use the connection and its associated data.
- Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
Limitations
The Chargebee connector cannot:- Create or manage your Chargebee account or site configuration
- Receive Chargebee webhooks directly through the connector
- Rotate API keys automatically. To rotate a key, create a new key in Chargebee and update the Lovable connection
- Support per-end-user Chargebee login. Each connection represents a single Chargebee account shared across all projects linked to it
- Bypass Chargebee API permissions, limits, or billing rules for your account
How to unlink projects from a connection
Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects. To unlink projects:
When unlinked, those projects will no longer have access to through this connection. If a project needs again, you can link it to any available connection.