> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Chargebee - How do I link my account?

# Overview

To authenticate with Chargebee, you will need:

1. **API Key** - A key that grants Nango permission to interact with Chargebee's APIs resources and services.
2. **Chargebee Domain** - The unique subdomain for your Chargebee account. It is usually in the form of `https://{your-site-name}.chargebee.com`, where `{your-site-name}` is the unique identifier for your account.

This guide will walk you through generating the API Key within Chargebee. You should also have your Site URL ready, which is the URL shown in your browser when you are logged into your Chargebee account.

## Prerequisites:

* You should have a registered account with Chargebee. Create one on [Chargebee Getting Started page](https://www.chargebee.com/).
* Permission to generate an **API Key**.

#### Step 1: Creating an API key

1. Once logged in to your Chargebee dashboard, click on the **Settings** option from the left sidebar.

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_select_settings.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=e522a6612b389325aadebbb5deb2c001" width="654" height="1578" data-path="integrations/all/chargebee/chargebee_select_settings.png" />

2. Select **Configure Chargebee** from the dropdown menu.

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_configure_chargebee.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=aeefaf2caecc88a937d23637c62d11e6" width="654" height="1578" data-path="integrations/all/chargebee/chargebee_configure_chargebee.png" />

3. Scroll to the API Keys section and click on the **API Keys** tab.

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_select_api_keys.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=d9f49c371b4599ebcf846bc2f55cd60a" width="2854" height="1348" data-path="integrations/all/chargebee/chargebee_select_api_keys.png" />

4. Click on the **Add API Key** button.

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_add_api_keys.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=0b1e2c3a05f487b77b928bc7c6ba9f72" width="2356" height="516" data-path="integrations/all/chargebee/chargebee_add_api_keys.png" />

5. Select the type of key you want to create. To take advantage of all Nango features, we recommend creating a **Full-Access** key.

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_select_full_access_key.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=53ea8409f41e2d3ae5ba9a942e248dfe" width="1620" height="846" data-path="integrations/all/chargebee/chargebee_select_full_access_key.png" />

6. Enter a name for the API Key and click on the **Create Key** button at the top right of the modal.

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_create_api_key.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=4aef40859fded62dfaa3392906b8effd" width="1640" height="1112" data-path="integrations/all/chargebee/chargebee_create_api_key.png" />

7. Copy the generated API key and store it securely. You will need it for the next steps

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/chargebee_copy_api_key.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=ae87181b64125a9107dd816afcbc9e63" width="1712" height="794" data-path="integrations/all/chargebee/chargebee_copy_api_key.png" />

#### Step 2: Connect Your Chargebee Account

<img src="https://mintcdn.com/nango/y06akAF1oWR5rbsa/integrations/all/chargebee/connect_ui.png?fit=max&auto=format&n=y06akAF1oWR5rbsa&q=85&s=66cf43333d46315ca770af2fd50a7da5" width="1050" height="1421" data-path="integrations/all/chargebee/connect_ui.png" />

To authenticate using your API credentials, navigate to the Chargebee authentication form.
Enter your credentials as follows:

* API Key: Your API Key
* Chargebee Domain: Your Chargebee Domain (e.g., `https://{your-site-name}.chargebee.com`). You need only the `{your-site-name}` part of the URL.
  Click "Connect" to complete the authentication.

Note: Make sure to match the credentials exactly as shown above - the field names in the form may differ from your Chargebee dashboard.
