# ProfitWell

![ProfitWellLogo_Large.png](https://assets.relyanceuat.xyz/images/docs/13459609417741/13459228983821.png)
ProfitWell is an online churn management solution designed to help businesses improve conversion rates and automate churn reduction using a white-labeled platform. It does this by driving better monetization, customer retention, and insights, with solutions backed by data science.

In order to integrate ProfitWell with Relyance AI you will need a **Private Token**.

ProfitWell is now [Paddle Metrics](https://www.paddle.com/profitwell-metrics).

#### In ProfitWell:

1. Login to your ProfitWell account.
2. Click on the cogwheel in the bottom left-hand side to open up your settings.
3. Select **Integrations** from the resulting menu.
4. Select the Paddle Metrics API tab from Integrations page.
5. Copy the **Private Token** to be used in Relyance.

![Screenshot](https://assets.relyanceuat.xyz/images/docs/13459609417741/34978871513229.png)

![Screenshot](https://assets.relyanceuat.xyz/images/docs/13459609417741/34978871513869.png)

#### In the Relyance AI application:

1. Login to your Relyance account.
2. Navigate to the **Settings** Menu in the bottom left-hand side.
3. Select **Integrations**.
4. Click on the **Vendor Integration** tab.
5. Find the **ProfitWell** integration card and click it to open its connections.
6. Under **Authentication Method**, choose **Custom**.
8. Paste the **Private Token** into its respective field.

![ProfitWell-1.png](https://assets.relyanceuat.xyz/images/docs/13459609417741/13459406610189.png)

9. Click **Authenticate**.
10. At this point, you should see the following result on the **Vendor** Integrations page:

![ProfitWell-2.png](https://assets.relyanceuat.xyz/images/docs/13459609417741/13459406531981.png)

11. Congratulations, you are now connected to **ProfitWell**.

<!-- terraform-examples:begin (generated from the integration catalog; do not hand-edit) -->

## Manage this integration with Terraform

Connections for this integration can be managed as code with the [Relyance Terraform provider](https://registry.terraform.io/providers/Relyance/relyance/latest). Non-secret fields go in `auth.params`; secret fields go in `auth.secrets_wo`, which is write-only — never stored in Terraform state. Rotate secrets by bumping `auth.secrets_wo_version`.

```hcl
resource "relyance_integration_connection" "profitwell" {
  vendor = "profitwell"
  name   = "<your connection name>"

  auth = {
    method = "access-token"
    params = {
      data_storage_location = "us"
    }
    # Secret fields are write-only: sent to Relyance, never stored in state.
    secrets_wo = {
      private_token = var.profitwell_private_token
    }
    secrets_wo_version = 1
  }

  scans = { "property-inspection" = { enabled = true } }
}
```

<!-- terraform-examples:end -->
