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

# Stripe

> Sync Stripe billing and payment data into your warehouse.

## Prerequisites

* A Stripe account with a **secret API key** (starts with `sk_live_` or `sk_test_`).
* A [datasource](/datasources/overview) already configured in Mora.

## Required fields

| Field                  | Description                                                                                                     | Example             |
| ---------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------- |
| **Name**               | A display name for this connection.                                                                             | `Stripe production` |
| **Schema**             | The schema name where tables will be created. Letters and underscores only.                                     | `stripe`            |
| **API Key**            | Your Stripe secret key.                                                                                         | `sk_live_XXXX...`   |
| **Connected accounts** | Toggle on to also sync data from [Stripe Connect](https://stripe.com/docs/api/connected_accounts) sub-accounts. | Off                 |
| **Sync time frame**    | Choose **All time** to sync your entire history, or **Start date** to sync from a specific date forward.        | All time            |

### Conditional fields

| Field               | When required                                         | Description                                    |
| ------------------- | ----------------------------------------------------- | ---------------------------------------------- |
| **Sync start date** | When "Start date" is selected as the sync time frame. | The calendar date from which to begin syncing. |

## Steps

1. Open **Settings → Connections → New**.
2. Select **Stripe**.
3. Fill in the fields above.
4. Click **Create**.

The sync begins immediately. Depending on how much history you have, the initial sync may take some time.

## Getting your API key

1. In the [Stripe Dashboard](https://dashboard.stripe.com/apikeys), go to **Developers → API keys**.
2. Copy your **Secret key**. Use a restricted key with read-only permissions if you prefer.

## Related

* [Managing connections](/connections/manage)
* [Connections overview](/connections/overview)
