Stripe Reporting API: How to Pull Custom Financial Reports Programmatically

Learn how to use the Stripe Reporting API to pull custom financial reports programmatically, with real code examples, reconciliation tips, and tools that save hours each week.

· 6 min read

Stripe reports without the exports. Yesterday's revenue, MRR, churn and who signed up or left, by email and Slack every morning.

Try it free

What the Stripe Reporting API Does and When to Use It

The Stripe Reporting API lets you request pre-built financial data exports programmatically, covering payouts, balance transactions, disputes, and more. Instead of logging into the Stripe Dashboard and clicking through CSV exports, you send an API call, Stripe assembles the report in the background, and you download the resulting file.

That is the core loop. It is useful when you need to automate reconciliation, feed data into an accounting system, or schedule nightly exports without human intervention. If you just want a morning summary of yesterday's revenue, MRR, and new signups without writing any code at all, skip to the StripeReport section below; try StripeReport free and get your first daily Stripe revenue report delivered to your inbox or Slack in minutes.


Understanding the Core Concepts

Before writing a single line of code, it helps to understand how the Stripe Reporting API is structured. The Stripe documentation breaks it into two main objects.

Report Types

A Report Type describes the shape of a report: which columns it contains, which parameters it accepts, and what date range it supports. You can list all available report types with:

GET /v1/reporting/report_types

Common report types include:

  • balance.summary.1 - a summary of your Stripe balance over a period
  • balance_transaction.summary.1 - itemized balance transactions (fees, refunds, payouts)
  • payout_reconciliation.by_id.summary.1 - maps payouts to the transactions that funded them
  • connected_account_payout_reconciliation.by_id.summary.1 - the same for Connect platforms

Report Runs

A Report Run is a specific execution of a report type with parameters you supply. You create a run, Stripe processes it asynchronously, and when the status changes to succeeded, a download URL is available. The key parameters are report_type, parameters[interval_start], and parameters[interval_end], both expressed as Unix timestamps.


Step-by-Step: Creating a Report Run

Here is a concrete walkthrough using the stripe.reporting.reportRuns.create endpoint that frequently appears in developer searches.

Step 1: Authenticate

Use your Stripe secret key as a Bearer token. Never expose this key client-side. For production automation, use a restricted key with only Reporting read permissions.

Step 2: Create the Report Run

curl https://api.stripe.com/v1/reporting/report_runs \
 -u sk_live_YOUR_KEY: \
 -d "report_type=balance_transaction.summary.1" \
 -d "parameters[interval_start]=1704067200" \
 -d "parameters[interval_end]=1706745600"

The timestamps above cover January 2024. Stripe returns a Report Run object with a status of pending.

Step 3: Poll for Completion

The report is assembled asynchronously. Poll GET /v1/reporting/report_runs/{id} every 10-30 seconds until status becomes succeeded or failed. In production, use a webhook on the reporting.report_run.succeeded event instead of polling.

Step 4: Download the File

When the run succeeds, the response contains a result.url field pointing to a Stripe-hosted file. Retrieve it with the Files API:

curl https://files.stripe.com/v1/files/file_xxx/contents \
 -u sk_live_YOUR_KEY:

The file is a CSV you can pipe directly into your database, accounting software, or data warehouse.


Payout Reconciliation in Practice

One of the most common reasons developers reach for the Stripe Reporting API is payout reconciliation: matching the lump sum that hits your bank account to the individual transactions that funded it.

The payout_reconciliation.by_id.summary.1 report type accepts a parameters[payout] value. Pass a payout ID and Stripe returns every balance transaction that contributed to that payout, including gross amounts, Stripe fees, refunds, and disputes. This is far more reliable than trying to reconstruct the math yourself from the Events API.

For businesses running on Stripe Billing with recurring subscriptions, reconciliation is especially important because a single payout can contain subscription renewals, one-time charges, refunds, and application fees all mixed together. The report separates them cleanly by type.


Common Errors and How to Fix Them

Developers searching for stripe.reporting.reportRuns.create returning file related errors typically hit one of these issues:

  • report_run_not_complete: You tried to fetch the file before the run finished. Add polling or use the webhook event.
  • invalid_report_type: The report type string is misspelled or not available for your account type. List valid types first with GET /v1/reporting/report_types.
  • parameter_invalid_integer: Your timestamps are not integers or they fall outside the allowed range. Stripe limits most reports to data no older than a few years and requires the interval to be at most one year.
  • File returns 403: The file download requires the same secret key used to create the run. Files are not publicly accessible.

Consult the full Stripe documentation for the complete list of error codes and their resolutions.


Automating Reports: Architecture Patterns

If you need reports on a schedule, the simplest reliable architecture is:

  1. A cron job or scheduled cloud function that fires daily at a fixed time
  2. It calls reportRuns.create with yesterday's interval
  3. It registers for the reporting.report_run.succeeded webhook
  4. The webhook handler downloads the file and loads it into your data store
  5. A downstream job or BI tool queries the data store for dashboards

For SaaS founders who want MRR tracking, churn visibility, and cash flow forecasting without building this pipeline, tools like StripeReport handle the entire data layer. StripeReport reads your Stripe data with read-only access and delivers a daily email and Slack report covering yesterday's revenue, MRR, churn, projected renewals for today and tomorrow, new signups, cancellations, and failed payments by name. It also provides MRR and ARR tracking, cash flow forecasting, and revenue at risk inside a revenue dashboard. For founders who want to know what happened overnight without opening a terminal, it is the morning Stripe report that actually gets read.

If you are on the Pro plan, you also get failed-payment recovery, card-expiry emails, and win-back campaigns handled automatically. See the failed payment recovery feature for details on how that works.

Pricing starts with a 3-day free trial, no card needed, then $14.99 a month for the Reports plan, or Pro from $49 a month priced by business size. Compare plans if you want the full breakdown.


Going Deeper: SaaS Metrics and Learning Resources

The Stripe Reporting API surfaces financial transaction data, but it does not compute SaaS-specific metrics like MRR, churn rate, or LTV out of the box. Those require additional logic layered on top. The SaaS metrics guides at StripeReport cover how to derive these numbers from raw Stripe data, which is useful whether you are building your own pipeline or evaluating third-party tools.

For teams using AI assistants to query their revenue data, StripeReport also supports a ChatGPT and Claude connection via MCP, so you can ask natural-language questions about your Stripe metrics without writing SQL.


Frequently Asked Questions

Is the Stripe Reporting API available on all Stripe plans? Yes, the Reporting API is available to all Stripe users. Some report types, such as those related to Stripe Connect, require that feature to be enabled on your account. Check the Stripe documentation for plan-specific availability.

How long does it take for a report run to complete? Most reports complete within a few seconds to a few minutes depending on the data volume. Large date ranges covering many transactions can take longer. Stripe recommends using webhooks rather than polling for production reliability.

Can I use the Reporting API to get real-time data? No. Report runs have a minimum delay and are designed for period-based financial reporting rather than real-time event streaming. For near-real-time data, use the Stripe Events API or webhooks instead.


Key Takeaways

  • The Stripe Reporting API works via two objects: Report Types (templates) and Report Runs (executions with specific parameters).
  • Use stripe.reporting.reportRuns.create to kick off a report, then poll or use a webhook to detect completion before downloading the file.
  • Payout reconciliation reports are the most practical use case for finance teams needing to match bank deposits to individual transactions.
  • Common errors usually relate to polling too early, incorrect timestamps, or mismatched report type strings.
  • Building a fully automated reporting pipeline requires a scheduler, webhook handler, and data store; the architecture is straightforward but takes time to build and maintain.
  • For SaaS founders who want daily Stripe revenue reporting, MRR and churn visibility, cash flow forecasting, and failed-payment recovery without building any infrastructure, StripeReport delivers all of that with a 3-day free trial and no card required.

Related articles

Two minutes to set up

Get your first Stripe report tomorrow morning.

Yesterday's revenue, MRR, churn and who signed up or left, by email and Slack every morning. Plus a dashboard with what's coming next month.

3 days freeNo cardRead-only Stripe