How to Connect to the Stripe API in Airtable

Feb 15, 2021Andy Cloke

In this guide, you'll learn to connect to the Stripe API in Airtable with no-code. We will use Data Fetcher's free Stripe Airtable integration to import customer data (e.g. name & email) into Airtable.

You can use the same approach to import Stripe subscriptions or Stripe invoices to Airtable. By importing Stripe customers and subscriptions, you can track your metrics such as monthly recurring revenue (MRR) in Airtable.

Finally, you'll learn how to connect Airtable to the Stripe API on a schedule, and import Stripe customer data automatically.

Install Data Fetcher

Add Data Fetcher to your base from the Airtable marketplace. This is a free extension that lets you import data from the Stripe API as well as other APIs like Google Sheets, Webflow and Instagram without needing to write code.

After you have added Data Fetcher to your base, create a free Data Fetcher account. Enter a password and click 'Sign up for free' or click 'Continue with Google'. Signing up for an account keeps your details secure. It's separate from your Airtable account.

Group 1Data Fetcher Sign Up .png

Import Stripe Customers to Airtable

Once you've signed up for a Data Fetcher account, you will land on the home screen. Click 'Create your first request' to go to the create request screen, where you will connect to the Stripe API and import customers.

click-create-your-first-request.png

On the create request screen in Data Fetcher, for Application, select 'Stripe' to use the Stripe to Airtable integration.

stripe-application-selected.png

Now we need to authorize Data Fetcher to read from your Stripe account. Under Authorization, click 'New Stripe connection'. On the new tab/window that opens, select the Stripe account you want to import Stripe data from and click 'Connect'.

Stripe Oauth.png

Back in Data Fetcher, select 'List all customers' for Endpoint.

Enter 'Import Stripe Customers' for the Name of your request. Then click 'Save & Continue'.

stripe-customers-save-continue.png

Enter an email in the Email input if you want to limit the customers imported to Airtable to only those with a particular email.

Select an option for Created to limit the customers imported to Airtable to only those created within a certain time period.

Click 'Run' in the bottom right-hand corner.

stripe-customers-run.png

The request will run and the Response field mapping modal will open. This is where you set how the fields from the Stripe API should map to fields in the output table. For each Stripe API customer field, you can either import or filter it. For an imported field, you can set whether to map them to an existing field or create a new field.

Make sure you import the 'Id' field, as we will use this to ensure the customer records we have in Airtable are kept in sync with any changes in Stripe. Import any other fields you want. Then click 'Save & Run'.

stripe-customers-response-field-mapping.png

Data Fetcher will create any new fields in the output table and import the customers from Stripe to Airtable. Stripe has a limit of 100 customers per page, so Data Fetcher may need multiple runs in order to import all customers.

stripe-customers-imported-data.png

Finally, we want to ensure Data Fetcher can match up customers in Stripe with records in Airtable, even if we move those records around. To do this, click 'Advanced settings' to open the advanced output settings. Under Update Based on Field, select 'Id'. Then click 'Save'

stripe-updated-based-on-id.png

Note: Stripe uses Unix timestamp fields for date fields (e.g. 'Created') that have numeric values. You can convert them to date format in Airtable by creating a formula field with this formula:

DATEADD('1/1/1970',Created,'seconds')

stripe-created-at-formula.png

Automatic Stripe Airtable Integration

At the moment, we have to manually run the request to connect to the Stripe API. We can use Data Fetcher's scheduled Stripe Airtable integration to automatically import them every 15 minutes/ hour/ day etc.

This is a paid feature, so you need to upgrade. In Data Fetcher, scroll to Schedule and click 'Upgrade'.

table-1-schedule-upgrade-button.png

A new tab will open where you can select a plan and enter your payment details to upgrade.

data fetcher upgrade pricing plans.png

Return to the Data Fetcher extension and click 'I've done this'.

table-1-schedule-ive-done-this-button.png

Under Schedule click '+ Authorize'.

Schedule Data Fetcher

Next, a window will open where you'll be able to authorize the Airtable bases Data Fetcher can have access to.

By selecting 'All current and future bases in all current and future workspaces' you'll avoid having to unauthorize bases in the future.

Click 'Grant access'.

schedule-authorize-bases.jpg

Back in Data Fetcher, you'll see Schedule this request is now toggled on.

Select how often you want the request to run, e.g. 'Every hour'. Click 'Save'. The Stripe Airtable integration will now import the Stripe customers automatically on the schedule.

Group 11(2).png

Related Posts

How to Import Company Revenue, EPS and Financial Ratios in Airtable

How to Import Company Revenue, EPS and Financial Ratios in Airtable

Mar 22, 2022

Rosie Threlfall

Alpha VantageFinance
How to Import Stripe Subscriptions to Airtable

How to Import Stripe Subscriptions to Airtable

Feb 24, 2022

Andy Cloke

Stripe
How to Import Stripe Invoices to Airtable

How to Import Stripe Invoices to Airtable

Feb 23, 2022

Andy Cloke

Stripe