Categorieën bekijken

Stripe koppelen aan Excel - Betalingsgegevens opvragen met SQL

Verbind Stripe met Excel

Gegevens ophalen van Streep naar binnen Excel

Haal live rijen uit je Stripe-account naar Excel en vernieuw ze wanneer je maar wilt. Geen ODBC-stuurprogramma, geen export, geen macro's. De eerste keer duurt het ongeveer tien minuten en het is inbegrepen bij het gratis abonnement.

Ongeveer 10 minuten Geen programmeerkennis vereist Uw inloggegevens blijven bij u. Excel overal, zelfs op het web.
Loop je ergens vast? Vraag het ons gerust. Open Ondersteuning Ga naar Query Streams (menu rechtsboven → Ondersteuning) en stuur ons een bericht. Echte mensen lezen het, en "Ik weet niet wat er op dit scherm wordt gevraagd" is een volkomen terechte vraag.

Wat je uiteindelijk overhoudt

Stripe-logoEen werkblad dat de live resultaten van een SQL-query op uw Stripe-account weergeeft, met een knop waarmee de meest recente rijen worden opgehaald zodra de gegevens wijzigen. Zoals dit:

Stripe bewaart je gegevens achter zijn API. Om ze in Excel te krijgen, moet je normaal gesproken elke keer dat je nieuwe cijfers nodig hebt een CSV-bestand exporteren vanuit het Stripe-dashboard. Query Streams maakt dit overbodig: een klein hulpprogramma, de Agent, voert de query uit op de locatie waar je gegevens zich bevinden, en een Excel-invoegtoepassing vraagt de Agent vervolgens om de gewenste rijen. Alleen de resultaten worden verzonden via een versleutelde verbinding, en Excel kan overal zijn: op je laptop thuis, op de computer van een collega aan de andere kant van het land, of via Excel op het web.

WAAR DE AGENT HEEN RENTelke computer of server die altijd aan staat en internettoegang heeftJouw streeprekeningDe sleutels blijven hier.Query Streams Agentbeschikt over de vereiste kwalificatiesQuery-stromenversleutelde linkvia internet · alleen resultatenWAAR JE OOK BENTje laptop, een ander kantoor, een hotel, je telefoonExcelWindows, Mac of Excel via het web
De Agent leeft met uw gegevens. Excel hoeft dat niet te doen. Open het werkblad waar u maar wilt en de rijen verschijnen vanzelf.

Wat je nodig hebt

Een Query Streams-account

Het gratis abonnement is voldoende voor deze handleiding. Meld je aan via mijn.querystreams.nl.

De Agent op elke computer die altijd aan staat.

Een klein programmaatje dat op de achtergrond draait en Stripe aanroept wanneer Excel daarom vraagt. Het enige wat het nodig heeft is een internetverbinding.

Je Stripe-login

Je hoeft je maar één keer aan te melden bij Stripe en leesrechten toe te staan. Er worden geen wachtwoorden ingevoerd in Query Streams.

Welke computer krijgt de agent? Elke computer die altijd aan staat en al toegang heeft tot je Stripe-account. Excel kan overal zijn., inclusief Excel op het web.

Verbind het in vijf stappen.

  1. Maak uw account aan

    Ga naar mijn.querystreams.nl en meld je aan. Kies de Gratis plan. Het is een echt plan, geen proefversie, en het omvat het koppelen van je Stripe-account en het uitvoeren van query's vanuit Excel.

  2. Installeer de agent op een computer die altijd aan staat.

    Aanmelden, openen DownloadInstalleer de agent op een computer of server die altijd aan staat en internettoegang heeft. Dit duurt een minuut en daarna start de agent automatisch.

    Waarom een klein programma in plaats van een driver? De agent is een eenmalige installatie voor Windows, Mac of Linux (ongeveer 85 MB op Windows, iets meer dan 100 MB op Mac en Linux) die stil op de achtergrond draait. Het maakt één uitgaande, versleutelde verbinding met Query Streams, net zoals een browser dat doet, dus u hoeft geen firewallpoort te openen en geen VPN in te stellen. Uw sleutels blijven op die machine en de gegevens worden verzonden naar uw locatie, indien nodig via internet. Het enige dat u hoeft te doen, is de add-in installeren.

    De downloadpagina toont Uw toegangssleutelPlak het in de Agent wanneer daarom wordt gevraagd en wacht tot de badge is weergegeven. Verbonden met querystreamsDat is het enige wat je op de agent zelf doet.

    Complete walkthroughs zijn beschikbaar als je die wilt: Windows, Mac, Linux.

  3. Koppel het aan je Stripe-account.

    Ga terug naar je browser en open... Data Agents (onder Gegevens (in het bovenste menu). Uw makelaar staat daar vermeld. Klik Connector toevoegen en kiezen Streep. Need your Stripe credentials first? Open the walkthrough, then fill in:

    Create your Stripe credentials (about 8 minutes)

    Follow this with Stripe open in another tab. Query Streams keeps what you create here so your Agent can use it, and only ever reads from Stripe.

    Who can do this
    Account owner, Super Administrator, Administrator or Developer (the Stripe roles that can create API keys)
    Aanbevolen
    Restricted API key with Read-only permissions (rk_live_… for live data, rk_test_… for a sandbox)

    Voordat je begint

    • A Stripe login with the Account owner, Super Administrator, Administrator or Developer role. Other roles (Analyst, View Only, Support and so on) cannot create API keys.
    • Access to the email inbox or phone Stripe sends verification codes to. Stripe asks for a code before it creates the key.
    • The Query Streams wizard open in another tab (Data Agents → Add connector → Stripe) with your Agent online, so you can paste the key the moment Stripe shows it.

    Steps

    1. Sign in and choose live data or a sandbox

      Sign in to the Stripe Dashboard. Stripe keeps live data and sandbox (test) data apart, and each has its own keys. For your real payments, stay in your business account, not a sandbox. For test data, open the Dashboard’s account picker, click Sandboxes, and open the sandbox you want.

      A live key cannot read sandbox data, and a sandbox key cannot read live data. If you want both, create one key in each and add each one as its own Stripe connector in Query Streams.

    2. Open the API keys page

      Open the API keys page. From inside the Dashboard you can also click Developers (bottom-left) and choose API keys. The page has two lists: Standard keys (publishable and secret keys) and Restricted keys.

      Using a sandbox? Open the sandbox first (step 1). Each sandbox has its own API keys page and its own keys.

    3. Start a restricted key

      In the Restricted keys list, click Create restricted key. Some accounts show it as + Create restricted key.

      Don’t use the publishable key (pk_…). It can’t read account data. A secret key (sk_…) also works in Query Streams, but it can do anything in your account, including refunds and payouts. Stripe recommends restricted keys, and Query Streams only needs to read.

    4. Say how the key will be used

      Stripe asks how you will use the key. Choose Building your own integration, then click Continue.

      Don’t choose Authorizing agent access to your account. That option tags the key for AI agents and adds Stripe’s approval rules. If you chose Providing this key to another website by mistake, tick Customize permissions for this key on the next screen. If you leave it unticked, Stripe gives the key its default permissions instead of the read-only list in step 7.

    5. Start from no permissions

      Stripe offers ready-made permission templates or a start from zero permissions. Choose to start from zero (pick your own permissions), so every permission begins at None.

      Stripe changes the wording on this screen often. Look for an option worded like Start from scratch or Choose my own, not a template. If the screen is not there, go straight to step 6.

    6. Name the key

      In Key name, type a name you will recognise later, for example Query Streams (read-only).

    7. Set Read on the 13 resources Query Streams syncs

      Each resource row has three choices: None, Read and Write. Click Read on these 13 rows and leave every other row at None. Under Core: Balance, Balance transaction sources, Charges and Refunds, Customers, Disputes, Events, Payment Intents, Payouts, Products. Under Billing: Coupons, Invoices, Prices, Subscriptions. To find a row fast, press Ctrl+F (Cmd+F on a Mac) and type the first word of its name.

      Never choose Write. Query Streams only reads, so a key with only Read can’t create charges, refunds or payouts, even if it leaks. You need Events even if you never sync the events table, because Query Streams reads Stripe’s event list to pick up changes between syncs. If you use Connect, leave the connected-account permissions at None. If a row name doesn’t match what you see, click Read on the All core resources and All Billing resources header rows instead. The key is still read-only, but it can read more than Query Streams uses.

    8. Create the key

      Click Create key.

    9. Enter the verification code

      Stripe sends a verification code by email or text message. Type it into the dialog. If the dialog doesn’t move on by itself, click Continue.

      No code? Check spam, or the phone number on your Stripe profile.

    10. Copy the key

      Stripe now shows the new key. It starts with rk_live_ (or rk_test_ in a sandbox). Click the key value to copy it, then paste it straight into Stripe Secret Key in the Query Streams wizard.

      In live mode, Stripe shows a key you created only this once and can’t reveal it again. Sandbox keys can be revealed at any time. Don’t send the key by email or chat. Query Streams stores it for your Agent and only ever reads with it.

    11. Note where the key is used

      In Add a note, type where the key is used, for example Query Streams Agent on the office computer. Then click Done. The key now appears in the Restricted keys list.

      The note shows up whenever you or a colleague later review your keys, so nobody expires this one by accident.

    Permissions to grant

    ResourceToegangUsed for
    KlantenLezencustomers table. Test connection also reads it first.
    Charges and RefundsLezencharges and refunds tables. One row covers both, and there is no separate Refunds row.
    Payment IntentsLezenpayment_intents table
    InvoicesLezeninvoices and invoice_items tables. Invoice items have no row of their own.
    SubscriptionsLezensubscriptions and subscription_items tables
    SaldoLezenbalance_transactions table (Stripe’s list of balance transactions, formerly called Balance history)
    Balance transaction sourcesLezenbalance_transactions table: lets each transaction link to the charge, refund or payout behind it. Stripe says this also grants Read on Balance and Payouts.
    PayoutsLezenpayouts table
    DisputesLezendisputes table
    ProductenLezenproducts table
    PrijzenLezenprices table
    CouponsLezencoupons table
    EventsLezenevents table, and the change feed that keeps customers, subscriptions, invoices, invoice items, charges, payment intents, refunds, disputes, payouts, products, prices and coupons up to date between syncs

    Paste into Query Streams

    Stripe geheime sleutel
    The restricted key you copied in step 10 (starts with rk_live_ or rk_test_). A secret key (sk_live_ or sk_test_) also works, but it can do far more than read.

    Common problems

    Test connection fails with Invalid API key.

    Why: Part of the key was missed when copying, a space was added, the publishable key (pk_…) was pasted, or someone expired or rotated the key in Stripe.

    Fix: The key must start with rk_ or sk_. Paste it again with nothing before or after it. If you no longer have it (Stripe shows live keys only once), create a new restricted key (steps 3 to 11) and paste that one.

    Test connection says Connected, but some tables stay empty and their sync shows a Stripe permission error (403). Newer Agents also show a warning under Test connection that names the tables the key cannot read.

    Why: The key is missing Read on that table’s row. Stripe’s error message names the missing permission, for example rak_event_read means Events.

    Fix: On the Stripe API keys page, click the ⋯ menu next to the key, choose Edit key, set the missing row to Read, and save. The key itself does not change, so there is nothing to paste again. Click Test connection again in Query Streams.

    Connected, but you only see test data, or the tables are empty even though you take real payments.

    Why: The key comes from a sandbox (rk_test_) when you wanted live data, or the other way round.

    Fix: Check how the key starts. For live data, use the account picker to leave the sandbox, create the key again (steps 2 to 11), then open the connector in Data Agents, click Edit, and paste it into Stripe Secret Key. Keep test and live as separate connectors.

    A connector that used to work stops syncing with Invalid API key.

    Why: Someone rotated or expired the key in Stripe. A rotated key keeps working only until the expiration chosen at rotation, which is at most 7 days.

    Fix: Create a new restricted key, or copy the replacement from the rotation. In Query Streams, open the connector, click Edit, paste the key into Stripe Secret Key, click Test connection, then click Save.

    You can’t see Create restricted key, or the API keys page won’t open.

    Why: Your Stripe role can’t manage API keys. Analyst, View Only and support roles can’t.

    Fix: Ask your Stripe account owner, an Administrator or a Developer to create the key for you, or to change your role.

    Stripe emails you that it blocked a request, and syncs fail even though the key is correct.

    Why: An access policy on the key (IP addresses or Advanced) doesn’t allow the Agent computer’s internet address, or it blocks a VPN or proxy that the computer uses.

    Fix: On the API keys page, click ⋯ next to the key, choose Manage access policy, and either choose a policy that allows the Agent computer’s public IP address or choose None. Then click Save.

    The key was exposed (sent in an email or chat, or saved in a shared file), or someone who had it left your team.

    Why: Anyone holding the key can read everything its permissions allow.

    Fix: On the API keys page, click ⋯ next to the key and choose Rotate key. In Expiration, pick Now to cut off the old key at once, then click Rotate API key. Copy the new key, and paste it into the connector (Edit → Stripe Secret Key → Test connection → Save).

    You want Query Streams to stop reading this Stripe account.

    Why: Deleting the connector does not disable the key. It stays valid in Stripe until you expire it.

    Fix: On the API keys page, click ⋯ next to the key, choose Expire key, and click Expire key again to confirm. Then delete the connector in Data Agents.

    Limits to know

    • Events go back 30 days. Stripe’s event list reaches only 30 days back, so the events table never holds more than the last 30 days. Query Streams also reads events to pick up changes between syncs, so if a connector is switched off for more than about four weeks, its next sync reads its tables again in full.
    • Request speed: Stripe allows 100 API requests per second in live mode and 25 in a sandbox, and most individual endpoints allow 25. Each request returns at most 100 records, so a first sync of 1,000,000 charges is about 10,000 requests, roughly 7 minutes at 25 per second. Sandbox syncs are slower.
    • Monthly read allowance: Stripe expects an account’s read requests to average no more than 500 per transaction over a rolling 30 days, with a minimum of 10,000 a month. Every enabled table makes at least one request each time it syncs, so on a new or low-volume account, set longer sync intervals on tables you don’t need minute by minute.
    • One mode per key: a key reads only the mode it was created in (live, or one particular sandbox).
    • Connect: the key reads your own account’s objects only. Payments on connected accounts are not synced.
    • Showing the key again: Stripe shows a live key you created only once, while sandbox keys can be revealed at any time. When you rotate a key, the old one keeps working for at most 7 days.

    Steps verified 8 October 2026. Sources: docs.stripe.com/keys, docs.stripe.com/keys/restricted-api-keys, docs.stripe.com/keys-best-practices, docs.stripe.com/stripe-apps/reference/permissions, docs.stripe.com/sandboxes, docs.stripe.com/testing-use-cases, docs.stripe.com/rate-limits, docs.stripe.com/api/events/list, docs.stripe.com/api/balance_transactions/list, docs.stripe.com/api/errors, docs.stripe.com/get-started/account/teams/roles, docs.stripe.com/workbench, support.stripe.com/questions/plugin-user-migration-guide, stripe.com/sessions/2026/building-security-first-stripe, posthog.com/docs/cdp/sources/stripe, help.chaserhq.com/use-chaser-with-stripe, homerunner.io/docs/creating-stripe-restrict-key-for-homer…, chargebee.com/docs/reveal/transactions/get-started/stripe…, nango.dev/docs/api-integrations/stripe-api-key/connect, fivetran.com/docs/connectors/applications/stripe/troubles….

    Verbindingsnaam
    Elke naam die je later zult herkennen, zoals 'Verkoopdatabase'.
    Stripe geheime sleutel
    Je geheime Stripe-sleutel vind je in het Stripe-dashboard onder Ontwikkelaars, API-sleutels; deze begint met sk_live_ of sk_test_.

    Klik op TestverbindingWanneer er staat Aangesloten, klik SlaDe verbinding bereikt uw agent binnen enkele seconden.

    Test mislukt? Usually a missing permission, or a credential from the wrong Stripe account. The walkthrough above lists the common problems and their fixes.

  4. Querystreams toevoegen aan Excel

    Ga in Excel naar Invoegen → Invoegingen ophalen, zoeken naar Query-stromenen klik ToevoegenOf open het direct vanuit Querystreams op Microsoft AppSourceEr verschijnt een knop 'Query Streams' in het lint. Meld u aan met hetzelfde account.

    Werkt in Excel voor Microsoft 365 op Windows en Mac, en in Excel op het web.

  5. Schuif je eerste tafel aan

    Klik op de knop Query Streams en kies Een query streamenen kies de verbinding die je zojuist hebt gemaakt.

    Typ de query die u wilt uitvoeren. Deze haalt een paar kolommen op uit een stripe.facturen tafel:

    Voorbeeld · SQL
    SELECT number, status, amount_due / 100.0 AS amount_due, currency FROM stripe.invoices ORDER BY created DESC LIMIT 100;

    Onder Bestemmingsblad kiezen Maak een nieuw werkblad aanDruk vervolgens op de afspeelknop (de ▶-pijl). De rijen verschijnen binnen een seconde of twee in Excel. Druk er nogmaals op wanneer de gegevens zijn gewijzigd en het werkblad wordt direct bijgewerkt.

    Weet je niet wat SQL is? Stel de query samen in de Query Streams-portal. Querybouwer Het toont je tabellen en kolommen, zodat je ze kunt selecteren met een muisklik. Bij Business-abonnementen kun je Nova ook gewoon in het Engels vragen ("laat me klanten in de VS zien") en dan genereert het de SQL-query voor je. Sla de query op en je hebt hem met één klik in de portal en in de lijst met opgeslagen query's van de add-in (vanaf Personal Core).

Dat is alles. Uw gegevens staan in het spreadsheet en worden met één klik bijgewerkt. Er is niets van uw netwerk verwijderd, behalve de rijen die u hebt opgevraagd.

Goede volgende stappen

  • Sla de zoekopdracht op. In het portaal kunt u het vervolgens met één klik opnieuw uitvoeren, vanuit Excel of Google Sheets.
  • Voeg een filter toe zoals een datumbereik, zodat dezelfde zoekopdracht "deze maand" kan antwoorden zonder aanpassingen.
  • Deel de resultaten met een collega. Zij zien de rijen, niet je inloggegevens.

Vragen die mensen stellen

Moet Excel op dezelfde computer staan als je Stripe-account?

Nee. Alleen de Agent hoeft zich op dezelfde locatie te bevinden als uw Stripe-account. Excel kan op elke computer met een internetverbinding staan, inclusief de webversie van Excel en Excel op een Mac. Meld u aan bij de add-in met uw account en uw verbindingen zijn daar beschikbaar.

Worden mijn gegevens naar Query Streams gekopieerd?

Nee. De agent voert de query uit op de locatie waar uw gegevens zich bevinden en verzendt alleen de rijen die worden geretourneerd. Er vindt tussendoor geen synchronisatie of opslag plaats.

Is dit echt inbegrepen bij het gratis abonnement?

Ja. Gratis is een abonnement dat je behoudt, geen proefperiode die verloopt. Bekijk precies wat het inhoudt op de website. prijspagina.

Werkt het ook met Excel voor Mac?

Ja. Excel voor Microsoft 365 op Mac en Windows, en Excel op het web.

Zit je nog steeds vast? Open Ondersteuning Ga naar Query Streams en laat ons weten in welke stap u zich bevindt en wat u ziet. Dan zorgen wij ervoor dat u verbonden wordt.
Query Streams verbindt dezelfde gegevens ook metGoogle formulierenClaude, Cursor en ChatGPTeen REST APIen meer

Elke gids voor Stripe

Is dit niet helemaal jouw situatie?

  • Wil je de Excel-werkmappen zelf opvragen? Excel Folder leest een map met werkmappen als tabellen → Excel Folder
Geüpdatet op oktober 8, 2026

Mogelijk gemaakt door BetterDocs