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

# Chargebee

> Learn how to connect Chargebee to Slicker

### Prerequisites

Slicker integrates with Chargebee via an API key. Creating a Chargebee API key requires a user who is an
`Admin` or `Owner` of the Chargebee site.

### Create credentials

1. Create a new API key by going to `Settings > Configure Chargebee > API Keys and Webhooks` and then click on the `API Keys` tab.
   Then click on the `Add an API Key` button.

2. Give the API key a meaningful name like `Slicker`.

3. Select the `type` of the key as `Full-Access Key` with either `All` or `Write Key` permissions.

   <Warning>If the credentials are read-only, Slicker will not be able to retry failed transactions and recover revenue. </Warning>

   It should look something like this.

   <Frame>
     <img src="https://mintcdn.com/slicker/HZZPLdXP1aKdz94r/images/integrations/chargebee_key_creation.png?fit=max&auto=format&n=HZZPLdXP1aKdz94r&q=85&s=6a302453159ea1f0cb4dc2bb38c825ce" alt="Chargebee API key creation" width="654" height="485" data-path="images/integrations/chargebee_key_creation.png" />
   </Frame>

4. Click `Create Key` and copy the generated key - we will need it later.

### Create integration in Slicker

1. Go to the Slicker's [new integration page](https://app.slickerhq.com/integrations/new).
2. Select `Chargebee` from the list of integrations.
3. Give the integration a name and description to help you identify it later.
4. Enter the API key you copied earlier.
5. Enter your Chargebee site - for example, if you are using `https://{yourcompany}.chargebee.com`, enter `yourcompany`.
6. Click the `Submit` button to create the integration.

### Troubleshooting

On integration creation, Slicker will attempt to connect to Chargebee using the provided API key.
If the connection fails, you will see an error message like the one below.
Please double-check the API key, make sure it has the correct permissions, and try again.

<Frame>
  <img src="https://mintcdn.com/slicker/HZZPLdXP1aKdz94r/images/integrations/integration-failure.png?fit=max&auto=format&n=HZZPLdXP1aKdz94r&q=85&s=59f6f532473345be5919699e5de59427" alt="Failed integration creation message" width="946" height="177" data-path="images/integrations/integration-failure.png" />
</Frame>
