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

# Clear Books OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 for Clear Books in StackOne to allow users to link their accounts.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Prerequisites

Clear Books requires multi-factor authentication to be enabled on your account before you can open the developer portal. Complete this one-time setup before creating an OAuth application.

**1. Sign in to Clear Books**

Sign in to your [Clear Books account](https://secure.clearbooks.co.uk/account/action/login/).

<ul>
  <li>Enter your **Email** and click **Continue**, then enter your password.</li>
  <li>The developer portal is only available to the account owner or a user with access to the business.</li>
</ul>

![The Clear Books Log in screen with the Email field and Continue button](https://mintcdn.com/stackone-60/uhJsW0OQWQU0x5JX/connectors/clearbooks/images/oauth2-setup-sign-in.png?fit=max\&auto=format\&n=uhJsW0OQWQU0x5JX\&q=85\&s=499401f91647ab630b3064831243aa80)

**2. Open your account menu**

Clear Books requires multi-factor authentication before you can open the developer portal. Click the account icon in the top-right corner of any page, then select **Security**.

![The account menu open with the Security link highlighted](https://mintcdn.com/stackone-60/lLZdyDHYmH-t7JzV/connectors/clearbooks/images/oauth2-setup-navigate-security.png?fit=max\&auto=format\&n=lLZdyDHYmH-t7JzV\&q=85\&s=4775b35c33c2a234698758fc93aef21e)

**3. Enable multi-factor authentication**

On the Security page, select **Multi-factor authentication**, and make sure **Authenticator app** is enabled.

<ul>
  <li>If it is not already enabled, expand **Authenticator app**, scan the QR code with an authenticator app, and enter the generated code to turn it on.</li>
  <li>Without multi-factor authentication, Clear Books blocks access to the developer portal.</li>
</ul>

![The Security page with Multi-factor authentication selected and Authenticator app enabled](https://mintcdn.com/stackone-60/uhJsW0OQWQU0x5JX/connectors/clearbooks/images/oauth2-setup-enable-mfa.png?fit=max\&auto=format\&n=uhJsW0OQWQU0x5JX\&q=85\&s=48cb7c50a921481afb06634d408d3a4c)

## Create an OAuth application

Clear Books uses OAuth 2.0. You create a confidential OAuth application in the Clear Books developer portal to obtain a Client ID and Client Secret, then paste them into the StackOne Connector profile.

**1. Create a new app**

Open the [Clear Books developer portal](https://secure.clearbooks.co.uk/developer-portal/apps/list) and, on the **My apps** page, click **New app**.

![The My apps page in the developer portal with the New app button highlighted](https://mintcdn.com/stackone-60/uhJsW0OQWQU0x5JX/connectors/clearbooks/images/oauth2-setup-create-app.png?fit=max\&auto=format\&n=uhJsW0OQWQU0x5JX\&q=85\&s=3c73daff22f08e40ad062b5d9ebbfdd9)

**2. Enter the app details**

Complete the **App details** form, set the **Redirect URL**, and click **Save**.

<ul>
  <li>**App name** — a name for the application, such as `StackOne Integration`.</li>
  <li>**App description** — a short description of the integration.</li>
  <li>**Responsible company or individual name** and **Contact email address** — your company name and a contact email.</li>
  <li>Set the **Redirect URL** to the **Callback URL** from your Connector Profile.</li>
  <li>Only confidential clients using the authorization code grant are supported.</li>
</ul>

![The New app form with the Redirect URL field and Save button highlighted](https://mintcdn.com/stackone-60/uhJsW0OQWQU0x5JX/connectors/clearbooks/images/oauth2-setup-app-details.png?fit=max\&auto=format\&n=uhJsW0OQWQU0x5JX\&q=85\&s=35b941f59800019f598b675ed0e8eb8d)

**3. Copy your Client ID and Client Secret**

After you save, Clear Books displays your **Client ID** and **Client secret**. Copy both and paste them into the **Client ID** and **Client Secret** fields in the StackOne Connector profile.

<ul>
  <li>The **Client secret** is only displayed once and cannot be retrieved later, so store it securely for use later.</li>
  <li>You can find the **Client ID** again later on the app's **Manage app** page.</li>
</ul>

![The developer portal banner shown after saving, with the Client ID and Client secret masked](https://mintcdn.com/stackone-60/uhJsW0OQWQU0x5JX/connectors/clearbooks/images/oauth2-setup-copy-credentials.png?fit=max\&auto=format\&n=uhJsW0OQWQU0x5JX\&q=85\&s=abb885a6ab2c6a99329831962957e27f)

**4. Regenerate the client secret**

If you lose the Client Secret, open the app's **Manage app** page and click **Regenerate client secret** to generate a new one.

<ul>
  <li>Regenerating the secret causes all token exchange and refresh attempts to fail until you update the connection with the new secret.</li>
</ul>

![The Client secret section of the Manage app page with Regenerate client secret highlighted](https://mintcdn.com/stackone-60/uhJsW0OQWQU0x5JX/connectors/clearbooks/images/oauth2-setup-regenerate-secret.png?fit=max\&auto=format\&n=uhJsW0OQWQU0x5JX\&q=85\&s=5a3b41317b413eaa2158fccf480e2808)

## Permissions

When you connect, StackOne requests the Clear Books permissions its actions need. You can narrow this set using the optional **Scopes** field in the StackOne Connector profile; leave it blank to request the full set below.

**1. Grant the required permissions**

Enables actions: Create Account Code, Create Allocation, Create Bank Account, Create Customer, Create Payment, Create Purchase Document, Create Sales Document, Create Supplier, Delete Account Code, Delete Allocation, Delete Bank Account, Delete Customer, Delete Payment, Delete Purchase Document, Delete Sales Document, Delete Supplier, Get Account Code, Get Allocation, Get Bank Account, Get Business, Get Customer, Get Payment, Get Purchase Document, Get Sales Document, Get Supplier, List Account Codes, List Allocations, List Bank Accounts, List Businesses, List Customers, List Payments, List Purchase Documents, List Sales Documents, List Suppliers, List VAT Rates, List VAT Treatments, Update Account Code, Update Bank Account, Update Business, Update Customer, Update Payment, Update Purchase Document, Update Sales Document, Update Supplier

Authorize the following permissions so the connector can read and write account codes, allocations, bank accounts, businesses, customers, payments, purchase documents, sales documents, suppliers, and VAT reference data.

<ul>
  <li>
    accounting.account\_codes:read
  </li>

  <li>
    accounting.account\_codes:write
  </li>

  <li>
    accounting.allocations:read
  </li>

  <li>
    accounting.allocations:write
  </li>

  <li>
    accounting.bank\_accounts:read
  </li>

  <li>
    accounting.bank\_accounts:write
  </li>

  <li>
    accounting.customers:read
  </li>

  <li>
    accounting.customers:write
  </li>

  <li>
    accounting.payments:read
  </li>

  <li>
    accounting.payments:write
  </li>

  <li>
    accounting.purchases:read
  </li>

  <li>
    accounting.purchases:write
  </li>

  <li>
    accounting.sales:read
  </li>

  <li>
    accounting.sales:write
  </li>

  <li>
    accounting.suppliers:read
  </li>

  <li>
    accounting.suppliers:write
  </li>

  <li>
    accounting.vat:read
  </li>

  <li>
    businesses:read
  </li>

  <li>
    businesses:write
  </li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/clearbooks/guides/link-account/oauth-2-0.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.