# Paychex

> Source: https://truto.one/docs/integration-guides/paychex/

Paychex connects with OAuth 2.0 client credentials: the API key and secret of an application in Paychex Flex.

## Install the Paychex integration

Install Paychex from [Available integrations](https://app.truto.one/integrations/available/d43e8aca-2f47-438d-b494-d78bb18ea536) in each environment you connect accounts from.

## Create API credentials

1. In Paychex Flex, go to **Company Settings** → **Connected Applications**.
2. Create an application. Paychex Flex generates an API key and secret for it.
3. Copy both. Treat the secret like a password.

See Paychex's [Authentication](https://developer.paychex.com/resources/authentication) docs.

## Connect a Paychex account

1. In [Integrated Accounts](https://app.truto.one/integrated-accounts), click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a **Tenant ID** (your customer's ID; Truto creates the tenant if it is new), or pick one under **Existing tenant (optional)**. Check the **Environment** and the **Region** (where Truto places the account; Western North America by default). To open the link straight on Paychex, pick it under **Advanced settings** → **Integration (optional)**. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Click the open-in-new-tab button, or click **Copy** and send the link to your customer so they connect their own Paychex account. The link works for 7 days, until an account is connected with it.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Click **Get Started** if it shows, then select **Paychex**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **Client ID** | Yes | The application's API key. |
   | **Client Secret** | Yes | The application's secret. |
6. Close the tab when you see **Connection successful**. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
