Sync Inc

Stripe Setup

This guide walks you through the setup process for Stripe on Sync Inc. In just a couple of minutes, you'll have a Postgres database with all your Stripe data, syncing in real-time.

Connect your Stripe API

First, add your Stripe secret key to Sync Inc:

Step 1: Create a new Sync Inc account at

Step 2: Select Stripe as the paltform you want to sync.

Step 3: Provide us with your Stripe secret key (it should begin with the characters `sk_live_`). On our console, click the How do I get this? link if you need a little help generating your API key or follow this link to your Stripe dashboard.

As a best practice, we recommend you create a new Restricted secret key for Sync Inc. Sync Inc needs read permissions for everything and just write access for webhooks.

Step 4: Select the destination database you want to sync your data to. We can sync to a new or existing database we provision and host. Or, we can sync to a database you host (just send us a note).

Step 5: Click Create.

After you click Create, we'll immediately connect to Stripe and begin backfilling all your data. While we're backfilling, you can still connect to your database and start querying your data.

Sync complete

Connect to your Postgres database

As soon as your database is provisioned, you can connect to it and start querying.

Sync Inc provisions you a Postgres database hosted on AWS RDS. You can connect to your database in all the ways you're used to. For this setup guide, we'll use TablePlus as an example.

Step 1: Download and install TablePlus from

Step 2: Open TablePlus and click Create a new connection...

Step 3: Click the Import from URL button.

Step 4: Copy and paste the Connect URL from Sync Inc into the Connection URL in TablePlus then click Import.

Step 5: Then name your TablePlus connection and click Create.

Query your base using SQL

To begin playing with your data, you can use our in-browser query tool. Just click "Connect" then visit the "Query" tab.

This simple query will calculate the total revenue for each of your Stripe customers:

select as "customer",
sum(invoice.amount_paid) as "total revenue"
from customer
left join invoice on invoice.customer_id =
group by;

From here, check out our Cheat Sheet for quick tips on how to query your Stripe database in SQL.

Read our Stripe Reference to learn more about how we make Stripe work with SQL.

Airtable App
Cheat sheet

Was this helpful?