Linking Stripe as a source

Last updated:

|Edit this page

The Stripe connector can link charges, customers, invoices, prices, products, subscriptions, and balance transactions to PostHog.

Creating a Stripe API key

You need a Stripe API key to create a connector. Head to your Stripe dashboard > Developers > API keys, under Restricted keys, click + Create a restricted key.

You need to give your API key the following Read permissions:

Resource TypeRequired Read Permissions
CoreBalance transaction sources, Charges, Customer, Product
BillingInvoice, Price, Subscription
ConnectedAll resources

Adding a data source

  1. In PostHog, go to the Data pipeline page select the Sources tab.
  2. Click + New source button and select Stripe by clicking the Link button.
  3. In Stripe, get your Account ID by going to Settings > Business, selecting the Account details tab, and clicking your Account ID or pressing + I to copy your ID.
  4. Get a your API key from the previous section
  5. Optional: Add a prefix to your table names
  6. Click Next

For Stripe tables, incremental syncs will only sync new records and not update existing records. This is a limitation of the Stripe API in which it's not possible to query for updated data.

The data warehouse then starts syncing your Stripe data. You can see details and progress in the data pipeline sources tab.

Questions? Ask Max AI.

It's easier than reading through 634 pages of documentation

Community questions

Was this page useful?

Next article

Linking Hubspot as a source

The Hubspot connector can link contacts, companies, deals, emails, meetings, quotes, and tickets to PostHog. To link Hubspot: Go to the Data pipeline page and the sources tab in PostHog Click New source and select Hubspot Select the Hubspot account you want to link and click Connect app Optional: Add a prefix to your table names Select the tables you want to import and configure their syncing method . Click Import The data warehouse then starts syncing your Hubspot data. You can see…

Read next article