- 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
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:1
Open your Chargebee site
Sign in to Chargebee with the account for the site you want to connect.
2
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.3
Open API keys
Follow Chargebee’s API key instructions to open the API keys area for your site.
4
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.5
Copy the key
Copy the API key and store it securely.
Step 2: Connect Chargebee to Lovable
You can create multiple connections using different API keys.1
Open Chargebee in Connectors
Go to Connectors → App connectors and select Chargebee.
2
Add a connection
Click Add connection.
3
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.
4
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.
5
Connect
Click Connect.
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:1
Open Connectors
Open Connectors, then go to App connectors, and select .
2
Open the connection
Open the connection you want to manage.
3
Select projects
Under Linked projects, check the projects you want to unlink.
4
Confirm
Click Unlink projects and confirm.
How to delete a connection
Workspace admins and owners can delete connections. Other members can delete a connection if they created it, or if they have been explicitly granted access to it. Before deleting, review the Linked projects section to see which projects are currently using the connection. To delete a connection:1
Open Connectors
Open Connectors, then go to App connectors, and select .
2
Open the connection
Open the connection you want to remove.
3
Review linked projects
Review the Linked projects section.
4
Delete
Under Delete this connection, click Delete and confirm.