# Paylocity

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

Paylocity connects with OAuth 2.0 client credentials that Paylocity issues to you, plus the company ID of the Paylocity company you're connecting.

## Install the Paylocity integration

Install Paylocity from [Available integrations](https://app.truto.one/integrations/available/a272d610-88a4-405e-a9ad-9cb617801314) in each environment you connect accounts from.

## Get API credentials

Paylocity doesn't let you create API credentials yourself. Request API access through Paylocity's [integration program](https://developer.paylocity.com/integrations/docs/getting-started#building-an-integration-with-paylocity-overview). Once Paylocity approves the request, it sends you OAuth credentials and access to a sandbox account.

To find the **Company ID**, sign in to Paylocity and go to **Help** → **About/Copyright**.

## Connect a Paylocity 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 Paylocity, 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 Paylocity 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 **Paylocity**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **Client ID** | Yes | The Client ID Paylocity issued. |
   | **Client Secret** | Yes | The Client Secret Paylocity issued. |
   | **Company ID** | Yes | Your Paylocity company ID. Sign in to Paylocity and go to **Help** → **About/Copyright**. |
   | **Environment** | Yes | Pick **Testing** for Paylocity's sandbox, **Production** for live companies. |
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.
