✨ Instagram integration is live! Tutorial
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.
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.
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.
On the create request screen in Data Fetcher, for Application, select 'Stripe' to use the Stripe to Airtable integration.
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'.
Back in Data Fetcher, select 'List all customers' for Endpoint.
Enter 'Import Stripe Customers' for the Name of your request. Then click 'Save & Continue'.
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.
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'.
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.
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'
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:
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'.
A new tab will open where you can select a plan and enter your payment details to upgrade.
Return to the Data Fetcher extension and click "I've done this".
Click 'Add API key' in order to add your Airtable API key. You can find your Airtable API key here.
Enter your Airtable API key and click 'Save'.
Enable Schedule this request.
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.
Mar 22, 2022•
Rosie Threlfall•Alpha VantageFinance