# 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. Click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a Tenant ID. This can be any ID you choose. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Open the generated link. You can also share it with your customer so they connect their own Paychex account.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. 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 the connection successful message. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
