> ## 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.

# Connect Braintree with API Key – StackOne Hub

> Link a Braintree account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Braintree actions.

> [!WARNING]
>
> Braintree keeps Sandbox and Production completely separate. A Merchant ID and API key created in one environment never work in the other, so create and copy your credentials in the environment (Sandbox or Production) this StackOne connection uses.

## Sign in to the Braintree Control Panel

Your **Merchant ID**, **Public Key** and **Private Key** all come from the Braintree Control Panel.\
Start by signing in to the environment you are connecting.

**1. Sign in to the Control Panel**

Open the Braintree Control Panel for your environment. On the **Log into Sandbox** (or production) screen, enter your **Username** and **Password**, then click **Log In**.

<ul>
  <li>**Production** — [Braintree production Control Panel](https://www.braintreegateway.com)</li>
  <li>**Sandbox** — [Braintree sandbox Control Panel](https://sandbox.braintreegateway.com/login)</li>
  <li>If your team signs in through PayPal or a corporate domain, use **Log In With PayPal** or **Log in with SSO** on the same screen.</li>
  <li>If a cookie consent banner appears, click **Accept** or **Decline** to dismiss it.</li>
  <li>If the login screen appears even though you are already signed in, sign in again to reach the Control Panel home page.</li>
</ul>

![Braintree sandbox login screen with the Username field, Password field and Log In button highlighted.](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/braintree/images/custom-config-sign-in.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=bb8a45e571b70219b97416aaf5cf88ee)

## Find your Merchant ID

The Merchant ID identifies your whole Braintree gateway account and lives on the **Business** page.

**1. Open the settings menu**

In the top-right corner of the Control Panel, click the **settings menu** gear icon.

<ul>
  <li>The menu lists **Team**, **API**, **Fraud Management**, **Account Settings**, **Business**, **OAuth** and **Audit Logs**.</li>
</ul>

![Braintree Control Panel home page with the settings gear icon in the top-right corner highlighted.](https://mintcdn.com/stackone-60/bcO9ek56v-ik46rJ/connectors/braintree/images/custom-config-settings-menu.png?fit=max\&auto=format\&n=bcO9ek56v-ik46rJ\&q=85\&s=9c609fdc5cc138b267cfc2c50da576f6)

**2. Open the Business page**

In the settings menu, select **Business**. You will come back to this menu later for **API**.

<ul>
  <li>The **Business** page opens on the **Merchant Accounts** tab.</li>
</ul>

![Open Braintree settings menu with the API and Business entries highlighted.](https://mintcdn.com/stackone-60/bcO9ek56v-ik46rJ/connectors/braintree/images/custom-config-settings-api-business.png?fit=max\&auto=format\&n=bcO9ek56v-ik46rJ\&q=85\&s=e29543a37c5a02ce98a9e43313a28549)

**3. Copy your Merchant ID**

Under the **Merchant ID** heading, click the copy icon to the right of the value (its tooltip reads **Copy**).

<ul>
  <li>Braintree describes this value as a unique identifier for your entire gateway account, required to connect your API calls to the Braintree gateway.</li>
  <li>Paste it into the **Merchant ID** field in StackOne Hub.</li>
  <li>Do not use a **Merchant Account ID** from the **Merchant Accounts** table further down the page — that identifies one merchant account inside your gateway, not the gateway itself.</li>
</ul>

![Braintree Business page with the Merchant ID value redacted and the Copy icon next to it highlighted.](https://mintcdn.com/stackone-60/bcO9ek56v-ik46rJ/connectors/braintree/images/custom-config-merchant-id.png?fit=max\&auto=format\&n=bcO9ek56v-ik46rJ\&q=85\&s=11e8349fee8844af68e75b5eac25b31b)

## Create and copy your API keys

The **Public Key** and **Private Key** are the username and password Braintree uses for server-side API access. Both live on the **API** page of the settings area.

**1. Open the API keys page**

In the top navigation bar of the settings area, click **API**, and stay on the **Keys** tab.

<ul>
  <li>Braintree lists your server credentials under **API Keys**, and notes that they are for server use only and should not be shared.</li>
  <li>If the **API Keys** table is empty, click **Generate New API Key** to create a key pair.</li>
</ul>

![Braintree API Keys page with the Generate New API Key button highlighted.](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/braintree/images/custom-config-api-keys.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=9b0bee161983b2ea978d33bb645057e9)

**2. Open your private key**

In the **API Keys** table, find your key and click **View** in the **Private Key** column.

<ul>
  <li>The **Public Key** is shown directly in the **Public Key** column of the same row.</li>
  <li>Each API key belongs to the user who created it, so use a key that belongs to the user account you want StackOne to act as.</li>
  <li>An API key has the same permissions as its owner's user role. A key from a user with a restricted role connects successfully but fails on actions that role cannot perform, so use a key owned by an **Account Admin** or a role with access to the data you need.</li>
</ul>

![Braintree API Keys table with the Public Key value and the View link in the Private Key column highlighted.](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/braintree/images/custom-config-view-private-key.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=da5f7e3ae49b452a907ec2d4a63aa9b5)

**3. Copy your credentials into StackOne Hub**

The **Client Library Key** page shows **Public Key**, **Private Key**, **Environment** and\
**Merchant ID** together. Copy each value into the matching field in StackOne Hub.

<ul>
  <li>**Merchant ID** — your Braintree gateway account identifier; paste it into the **Merchant ID** field in StackOne Hub.</li>
  <li>**Public Key** — the username half of the Basic Auth pair; paste it into the **Public Key** field in StackOne Hub.</li>
  <li>**Private Key** — the password half of the Basic Auth pair; paste it into the **Private Key** field in StackOne Hub and treat it like a password.</li>
  <li>**Environment** — shows whether this key belongs to `sandbox` or `production`. It must match the environment this StackOne connection uses; there is no Environment field to fill in.</li>
  <li>**Native Webhook URL** — read-only and filled in by StackOne. Leave it as is; you only need it later if you set up Braintree webhooks.</li>
</ul>

![Braintree Client Library Key page with the Public Key, Private Key and Merchant ID values highlighted and redacted.](https://mintcdn.com/stackone-60/oG8Uy_hOFWfKtPO9/connectors/braintree/images/custom-config-client-library-key.png?fit=max\&auto=format\&n=oG8Uy_hOFWfKtPO9\&q=85\&s=20880eab53cd293a90851c36c87235e8)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/braintree/guides/webhook-setup.md)
>
> Configure receiving Events for Braintree into StackOne.


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