# Collect customers from Stripe ## Learn how to collect customers from Stripe. Krenalis collects customer data from your Stripe account, maps it to your Customer Model schema, and syncs it with your data warehouse for a unified view of your customers. ## How it works 1. **Select customers.** Choose which Stripe customers to import. 2. **Map data.** Match Stripe fields to your Customer Model using Visual Mapping, JavaScript, or Python. 3. **Schedule syncs.** Define how often Krenalis synchronizes customers. 4. **Stay updated.** Krenalis automatically adds or updates customers as they change in Stripe. ## Steps If you've already added a source connection for the same Stripe account, you can reuse it and start with the [Add a pipeline to import customers](#3-add-a-pipeline-to-import-customers) step. ### 1. Create a Stripe API key 1. Log in to your Stripe account. 2. Go to **Developers → API keys**. 3. Click **Create restricted key**. 4. If asked *How will you use this API key?*, select **Building your own integration**. 5. Enter a name (e.g., *Krenalis data destination*). 6. In the **Customers** row, enable **Read** permission. 7. Click **Create key**, then copy the token shown for the new key. ### 2. Connect Krenalis with Stripe 1. In your Krenalis workspace, open the **Sources** page. 2. Click **Add a new source ⊕**, then select the **Stripe** card. 3. Click **Add source...**. 4. Enter the previously copied key. 5. Click **Add** to complete the connection. ### 3. Add a pipeline to import customers On the connection page, click on **Add pipeline...** to define how customers should be imported from Stripe. [Add pipeline](https://www.krenalis.com/docs/ingest-users/images/add-stripe-pipeline.png)! Each pipeline defines which data Krenalis reads and how it is structured. You can define multiple pipelines per source to manage different datasets. ### 4. Filter customers If you don't want to read all customers from Stripe, use filters to select which customers to sync. Only customers that match the filter conditions will be synced. If no filters are set, all customers will be imported. For more information on how to use filters, see the [Filters documentation](https://www.krenalis.com/docs/filters.md). [Filter](https://www.krenalis.com/docs/ingest-users/images/stripe-filter.png)! ### 5. Enable incremental import By default, each import processes all customers in your Stripe account. You can enable **Run incremental import** to update only customers that have changed since the last sync. This option can help reduce processing time and API usage while keeping your data up to date. [Incremental import](https://www.krenalis.com/docs/ingest-users/images/increment-import.png)! ### 6. Transformation Use the **Transformation** section to define how profile data is mapped to Customer Model properties. You can visually map properties from Stripe to the Customer Model, or use JavaScript and Python for more advanced logic (for example, formatting dates or combining multiple properties). [Transformation](https://www.krenalis.com/docs/ingest-users/images/transform-stripe.png)! ### 7. Save your changes When everything looks good, click **Add** (or **Save** if you're editing an existing pipeline). To import another set of customers from the same Stripe account, repeat the process starting from the [Add a pipeline to import customers](#3-add-a-pipeline-to-import-customers) step. ## Pipelines Once saved, the new pipeline appears in the pipelines list for Stripe. From here, you can monitor imports, adjust filters, and manage transformations. Each pipeline defines how and when users flow from Stripe into your warehouse. With a single Stripe connection, you can create multiple import pipelines to sync different data segments within the same account. [Pipeline to import customers](https://www.krenalis.com/docs/ingest-users/images/stripe-pipelines.png)! | Column | Description | |--------------|-------------------------------------------------------------------------------------------------------------------------| | **Pipeline** | Name and description of the pipeline. | | **Filters** | Conditions used to select which customers are imported. If not set, all customers are imported. | | **Enable** | Switch to activate or deactivate the pipeline. When disabled, the pipeline will not run, even if a schedule is defined. | | **Run now** | Run the import immediately, one time only. _Available only when the pipeline is enabled_. | | **Schedule** | Frequency of automatic imports. You can also run the import manually at any time. | | **Manage** | Edit settings such as filter, incremental imports, and transformation | | **⋮ (More)** | Additional options, such as deleting the pipeline. |