Kategorien anzeigen

Verbindung zwischen Stripe und Excel - Abfrage von Zahlungsdaten mit SQL

Stripe mit Excel verbinden

Daten abrufen von Streifen hinein Excel

Importieren Sie Live-Daten aus Ihrem Stripe-Konto in Excel und aktualisieren Sie sie nach Belieben. Kein ODBC-Treiber, kein Export, keine Makros. Die erste Einrichtung dauert etwa zehn Minuten und ist im kostenlosen Tarif enthalten.

Ungefähr 10 Minuten Keine Programmierung erforderlich Die Zugangsdaten bleiben bei Ihnen Excel überall nutzen, sogar im Web
Sie kommen an irgendeiner Stelle nicht weiter? Fragen Sie uns einfach. Öffnen Unterstützung Gehen Sie zu „Abfrageströme“ (Menü oben rechts → Support) und senden Sie uns eine Nachricht. Echte Menschen lesen sie, und „Ich verstehe nicht, was dieser Bildschirm von mir verlangt“ ist eine völlig berechtigte Frage.

Was am Ende dabei herauskommt

StreifenlogoEin Arbeitsblatt, das die Live-Ergebnisse einer SQL-Abfrage für Ihr Stripe-Konto anzeigt, mit einer Schaltfläche, die bei jeder Datenänderung die neuesten Zeilen abruft. Zum Beispiel so:

Stripe speichert Ihre Daten hinter seiner API. Um sie in Excel zu importieren, müssen Sie normalerweise jedes Mal eine CSV-Datei aus dem Stripe-Dashboard exportieren, wenn Sie aktuelle Zahlen benötigen. Query Streams umgeht diesen Schritt: Ein kleines Hilfsprogramm, der sogenannte Agent, führt die Abfrage dort aus, wo Ihre Daten gespeichert sind, und ein Excel-Add-In fordert die gewünschten Zeilen an. Nur die Ergebnisse werden über eine verschlüsselte Verbindung übertragen, und Excel kann sich überall befinden: auf Ihrem Laptop zu Hause, auf dem Rechner eines Kollegen im ganzen Land oder online.

WO DER AGENT LÄUFTjeder ständig eingeschaltete Computer oder Server mit InternetanschlussIhr StreifenKontoDie Schlüssel bleiben hierAbfrage-Streams-Agentbesitzt die AnmeldeinformationenAbfrageströmeverschlüsselter Linküber das Internet · nur ErgebnisseWO IMMER DU BISTIhr Laptop, ein anderes Büro, ein Hotel, Ihr TelefonExcelWindows, Mac oder Excel im Web
Der Agent arbeitet mit Ihren Daten. Excel muss das nicht. Öffnen Sie das Tabellenblatt einfach irgendwo, und die Zeilen werden automatisch angezeigt.

Was Sie benötigen

Ein Query Streams-Konto

Für diesen Leitfaden reicht der kostenlose Tarif aus. Melden Sie sich an unter mein.querystreams.de.

Der Agent auf jedem ständig eingeschalteten Computer

Ein kleines Programm, das im Hintergrund läuft und Stripe aufruft, wenn Excel dazu auffordert. Es benötigt lediglich einen Internetzugang.

Ihre Stripe-Anmeldedaten

Sie müssen sich einmalig bei Stripe anmelden und Lesezugriff gewähren. In Query Streams werden keine Passwörter eingegeben.

Welcher Computer erhält den Agenten? Jede ständig eingeschaltete Maschine, die bereits auf Ihr Stripe-Konto zugreifen kann. Excel kann überall seineinschließlich Excel im Web.

Verbinden Sie es in fünf Schritten

  1. Erstellen Sie Ihr Konto

    Gehen Sie zu mein.querystreams.de und melde dich an. Wähle die Kostenlos Es handelt sich um einen echten Plan, nicht um eine Testversion, und er beinhaltet die Verbindung Ihres Stripe-Kontos und die Ausführung von Abfragen aus Excel.

  2. Installieren Sie den Agenten auf einem beliebigen, ständig eingeschalteten Computer.

    Anmelden, öffnen HerunterladenInstallieren Sie den Agenten auf einem beliebigen Computer oder Server mit ständigem Internetzugang. Das dauert nur eine Minute und der Agent startet anschließend automatisch.

    Warum ein kleines Programm anstelle eines Treibers? Der Agent ist eine einmalige Installation für Windows, Mac oder Linux (ca. 85 MB unter Windows, etwas über 100 MB unter Mac und Linux) und läuft unauffällig im Hintergrund. Er stellt eine einzige, verschlüsselte Verbindung zu Query Streams her, genau wie ein Browser. Daher müssen Sie weder einen Firewall-Port öffnen noch ein VPN einrichten. Ihre Schlüssel verbleiben auf Ihrem Rechner, und die Datensätze werden – falls nötig über das Internet – an Ihren Standort übertragen. Sie benötigen lediglich das Add-in.

    Die Downloadseite zeigt Ihr ZugangsschlüsselFügen Sie es in das Feld des Agenten ein, wenn Sie dazu aufgefordert werden, und warten Sie, bis das Abzeichen gelesen wurde. Verbunden mit AbfrageströmenDas ist das Einzige, was Sie auf dem Agenten selbst tun.

    Vollständige Komplettlösungen, falls gewünscht: Fenster, Mac, Linux.

  3. Richten Sie es auf Ihr Stripe-Konto aus.

    Zurück im Browser, öffnen Datenagenten (unter Daten (im oberen Menü). Ihr Agent ist dort aufgeführt. Anschluss hinzufügen und wählen Streifen. 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)
    Empfohlen
    Restricted API key with Read-only permissions (rk_live_… for live data, rk_test_… for a sandbox)

    Bevor Sie beginnen

    • 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

    ResourceZugangUsed for
    KundenLesencustomers table. Test connection also reads it first.
    Charges and RefundsLesencharges and refunds tables. One row covers both, and there is no separate Refunds row.
    Payment IntentsLesenpayment_intents table
    InvoicesLeseninvoices and invoice_items tables. Invoice items have no row of their own.
    SubscriptionsLesensubscriptions and subscription_items tables
    GleichgewichtLesenbalance_transactions table (Stripe’s list of balance transactions, formerly called Balance history)
    Balance transaction sourcesLesenbalance_transactions table: lets each transaction link to the charge, refund or payout behind it. Stripe says this also grants Read on Balance and Payouts.
    PayoutsLesenpayouts table
    DisputesLesendisputes table
    ProdukteLesenproducts table
    PreiseLesenprices table
    CouponsLesencoupons table
    EventsLesenevents 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-Geheimschlüssel
    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….

    Verbindungsname
    Ein beliebiger Name, den Sie später wiedererkennen werden, wie zum Beispiel die Vertriebsdatenbank.
    Stripe-Geheimschlüssel
    Ihr Stripe-Geheimschlüssel, den Sie im Stripe-Dashboard unter Entwickler, API-Schlüssel finden; er beginnt mit sk_live_ oder sk_test_.

    Klicken Sie auf TestverbindungWenn es liest Verbunden, klicken Speichern SieDie Verbindung erreicht Ihren Agenten innerhalb weniger Sekunden.

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

  4. Füge Abfrageströme zu Excel hinzu

    In Excel gehen Sie zu Einfügen → Add-Ins abrufen, suchen nach Abfrageströmeund klicken Sie HinzufügenOder öffnen Sie es direkt von Abfragestreams auf Microsoft AppSourceAuf dem Menüband wird eine Schaltfläche „Streams abfragen“ angezeigt. Melden Sie sich mit demselben Konto an.

    Funktioniert in Excel für Microsoft 365 unter Windows und Mac sowie in Excel im Web.

  5. Stellen Sie Ihren ersten Tisch auf

    Klicken Sie auf die Schaltfläche „Streams abfragen“ und wählen Sie aus Streamen Sie eine Abfrageund wählen Sie die Verbindung aus, die Sie soeben hergestellt haben.

    Geben Sie die Abfrage ein, die Sie ausführen möchten. Diese Abfrage ruft einige Spalten aus einer Tabelle ab. stripe.invoices Tisch:

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

    Unter Zielblatt wählen Neues Tabellenblatt erstellenDrücken Sie anschließend die Wiedergabetaste (den Pfeil ▶). Die Zeilen werden innerhalb von ein bis zwei Sekunden in Excel angezeigt. Drücken Sie die Taste erneut, sobald sich die Daten geändert haben; das Tabellenblatt wird dann aktualisiert.

    Sie kennen sich nicht mit SQL aus? Erstellen Sie die Abfrage stattdessen im Query Streams-Portal. Abfrage-Generator Ihre Tabellen und Spalten werden angezeigt, sodass Sie per Mausklick darauf zugreifen können. In Business-Tarifen können Sie Nova auch in einfacher Sprache fragen („Zeig mir Kunden in den USA“), und die SQL-Abfrage wird automatisch generiert. Speichern Sie die Abfrage, und sie ist mit einem Klick im Portal und in der Liste der gespeicherten Abfragen des Add-Ins (ab Personal Core) verfügbar.

Das war’s. Ihre Daten befinden sich in der Tabelle und bleiben mit einem Klick aktuell. Außer den von Ihnen angeforderten Zeilen hat nichts Ihr Netzwerk verlassen.

Gute nächste Schritte

  • Abfrage speichern im Portal, sodass Sie es mit einem Klick erneut ausführen können, entweder aus Excel oder Google Sheets.
  • Füge einen Filter hinzu wie beispielsweise ein Datumsbereich, sodass dieselbe Abfrage ohne Bearbeitung auch „diesen Monat“ beantworten kann.
  • Ergebnisse teilen mit einem Kollegen. Dieser sieht die Zeilen, nicht Ihre Qualifikationsnachweise.

Fragen, die Menschen stellen

Muss Excel auf demselben Computer wie mein Stripe-Konto installiert sein?

Nein. Nur der Agent muss sich auf demselben Server befinden wie Ihr Stripe-Konto. Excel kann auf jedem Computer mit Internetverbindung installiert sein, also sowohl auf Excel im Web als auch auf einem Mac. Melden Sie sich mit Ihrem Konto beim Add-in an, und Ihre Verbindungen sind hergestellt.

Werden meine Daten in Query Streams kopiert?

Nein. Der Agent führt die Abfrage dort aus, wo Ihre Daten gespeichert sind, und sendet nur die zurückgegebenen Zeilen. Es werden keine Daten synchronisiert oder zwischengespeichert.

Ist das im kostenlosen Tarif wirklich enthalten?

Ja. „Kostenlos“ ist ein dauerhafter Tarif, keine befristete Testphase. Die genauen Leistungen finden Sie hier: Preisseite.

Funktioniert es mit Excel für Mac?

Ja. Excel für Microsoft 365 auf Mac und Windows sowie Excel im Web.

Immer noch festgefahren? Öffnen Unterstützung Bitte geben Sie in Query Streams an, bei welchem Schritt Sie sich befinden und was Sie sehen. Wir stellen dann die Verbindung her.
Query Streams verbindet außerdem dieselben Daten mitGoogle SheetsClaude, Cursor und ChatGPTeine REST-APIund mehr

Jeder Leitfaden für Stripe

Nicht ganz Ihre Konfiguration?

  • Möchten Sie die Excel-Arbeitsmappen selbst abfragen? Excel Folder liest einen Ordner mit Arbeitsmappen als Tabellen → Excel Folder
Aktualisiert am Oktober 8, 2026

Angetrieben durch BetterDocs