Stripe Integration
Automatically import your subscriptions, renewals, and cancellations from Stripe.
How it works
You create a Stripe Restricted Key
A read-only key generated in your Stripe Dashboard. It cannot modify anything in your account.
You paste it in Datasimple
Datasimple validates the key and starts importing your full subscription history in the background.
Automatic sync every hour
We use Stripe's Events API to pull new events (subscriptions, renewals, cancellations) with no additional setup.
No webhooks, no shared secrets. Unlike other integrations, you don't need to configure endpoints or share your webhook signing secret. The Restricted Key is read-only and can be revoked at any time from your Stripe Dashboard.
Step-by-step setup
Create a Restricted Key in Stripe
Go to your Stripe Dashboard and follow these steps:
- 1Open Stripe Dashboard → Developers → API keys
- 2Click "Create restricted key"
- 3Give it a descriptive name: "Datasimple Analytics"
- 4Enable Read (read-only) for the following resources:
Required permissions
| Resource | Permission | Why |
|---|---|---|
| Subscriptions | ✓ Read | Import subscription history |
| Invoices | ✓ Read | Detect renewals and failed payments |
| Events | ✓ Read | Incremental sync of changes |
Tip: The generated key must start with rk_live_: SimpleData only reads live data and rejects test keys (rk_test_). A secret key (sk_live_) is also accepted, but it gives full access to your account: use a restricted one with these three permissions.
Paste the key in Datasimple
What gets imported
| Stripe Event | In Datasimple | Data included |
|---|---|---|
| subscription.created | subscription_started | Plan, list price, interval |
| invoice.paid (first invoice) | subscription_first_payment | Amount charged, currency, subscription ID |
| invoice.paid (renewal) | subscription_renewed | Amount, currency, subscription ID |
| subscription.deleted | subscription_cancelled | Plan, cancellation date |
| subscription.updated | subscription_updated | New plan, price change |
| invoice.payment_failed | payment_failed | Failed amount, subscription ID |
| checkout.session.completed | purchase | Amount, currency, order ID |
Security
Read-only
The Restricted Key cannot create, modify, or delete anything in your Stripe account.
Revocable at any time
If you want to disconnect the integration, go to Stripe Dashboard → API Keys and delete the key. Datasimple will stop syncing immediately.
No shared secrets
We don't share webhook signing secrets or write credentials. The key is only used to read events.
Incremental sync
We save the last sync timestamp so we only request new events from Stripe on each update.
Troubleshooting
The key shows "Invalid API key"
Make sure to copy the complete key from Stripe. It should start with rk_live_ (restricted) or sk_live_.
The key shows "Key missing required permissions"
Edit the Restricted Key in Stripe Dashboard and enable Read on Subscriptions, Invoices and Events. The message lists which ones are missing.
Historical data doesn't appear immediately
History import runs in the background. Depending on how much data you have, it may take a few minutes. Refresh the dashboard after a moment.
Can I use a test key?
No. SimpleData only reads live data and rejects rk_test_ and sk_test_ keys. If your site was left connected with a test key you will see a notice: disconnect it and connect a live key.