# Stripe

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

Stripe connects with an API key from your Stripe Dashboard. To read or provision team members and groups, add the account's SCIM API key too.

## Install the Stripe integration

Install Stripe from [Available integrations](https://app.truto.one/integrations/available/d3133e7c-515f-45ff-b649-8eaee9fc3470) in each environment you connect accounts from.

## Create an API key

1. In the Stripe Dashboard, open [API keys](https://dashboard.stripe.com/apikeys). Switch to live mode for real data, or stay in a sandbox for test data: each mode has its own keys.
2. Create a restricted key and grant it the permissions for the data you need. Stripe recommends restricted keys (`rk_live_…`) over secret keys (`sk_live_…`), which can do everything on the account. See Stripe's [restricted API keys](https://docs.stripe.com/keys/restricted-api-keys) guide.
3. Copy the key. In live mode Stripe shows a key you create only once.

## Get a SCIM API key (optional)

Only needed to read or provision Stripe team members and groups. Stripe's SCIM provisioning needs single sign-on (SSO) set up, live mode, and the Administrator or Super Administrator role.

1. In the Stripe Dashboard, open **Settings** → **Team and security** → [SCIM provisioning](https://dashboard.stripe.com/settings/security/scim-provisioning) and click **Enable**.
2. Copy the SCIM API key.

See Stripe's [Set up SCIM provisioning](https://docs.stripe.com/get-started/account/sso/scim) guide.

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

   | Field | Required | What to enter |
   |---|---|---|
   | **Stripe Secret Key** | Yes | Your restricted or secret API key. See [Create an API key](#create-an-api-key). |
   | **Stripe SCIM API key** | No | Your SCIM API key, only for team members and groups. See [Get a SCIM API key](#get-a-scim-api-key-optional). |
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.
