Skip to content

Latest commit

 

History

History
112 lines (92 loc) · 5.91 KB

stripe-realtime.md

File metadata and controls

112 lines (92 loc) · 5.91 KB

Stripe Real-time

This connector captures data from Stripe's API into Flow collections.

It is available for use in the Flow web application. For local development or open-source workflows, ghcr.io/estuary/source-stripe-native:dev provides the latest version of the connector as a Docker image. You can also follow the link in your browser to see past image versions.

Supported data resources

The following data resources are supported through the Stripe API:

By default, each resource is mapped to a Flow collection through a separate binding.

Connected Accounts

This connector can capture data from Stripe Connected Accounts. To enable this feature, set the capture_connected_accounts property to true in your configuration. When enabled, each document will include an account_id field that identifies which account the data belongs to.

Prerequisites

  • An API Key for your Stripe account. This usually starts with sk_live_ or sk_test_ depending on your environment. Manage your Stripe keys in their developer dashboard.

Configuration

You configure connectors either in the Flow web app, or by directly editing the catalog specification file. See connectors to learn more about using connectors. The values and specification sample below provide configuration details specific to the Stripe source connector.

Properties

Endpoint

Property Title Description Type Required/Default
/credentials Credentials object Required
/credentials/credentials_title Credentials Title The type of authentication. Currently only accepts Private App Credentials. string Private App Credentials
/credentials/access_token Access Token Stripe API key. Usually starts with sk_live_. string Required
/start_date Start Date UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Only data generated after this date will be replicated. string 30 days before the present date
/capture_connected_accounts Capture Connected Accounts Whether to capture data from connected accounts. boolean false

Bindings

Property Title Description Type Required/Default
/stream Stream Resource from Stripe from which collections are captured. string Required
/syncMode Sync Mode Connection method. string Required

Sample

captures:
  ${PREFIX}/${CAPTURE_NAME}:
    endpoint:
      connector:
        image: ghcr.io/estuary/source-stripe-native:dev
        config:
            credentials:
                credentials_title: Private App Credentials
                access_token: <secret>
            start_date: 2025-01-01T00:00:00Z
            capture_connected_accounts: true
    bindings:
      - resource:
          stream: charges
          syncMode: incremental
        target: ${PREFIX}/charges
      - resource:
          stream: customer_balance_transactions
          syncMode: full_refresh
        target: ${PREFIX}/customerbalancetransactions
    {...}