Skip to content
Create account or Sign in
The Stripe Docs logo
/
Ask AI
Create accountSign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
APIs & SDKsHelp
Overview
Billing
OverviewAbout the Billing APIs
Subscriptions
Invoicing
Usage-based billing
Advanced usage-based billing
Quotes
Customer management
Billing with other products
Revenue recovery
Automations
Scripts
Test your integration
Tax
Overview
Use Stripe Tax
Manage compliance
Reporting
Overview
Select a report
Configure reports
Reports for multiple accounts
Reports API
Revenue recognition
Data
Overview
Query business data
Sigma
Data Pipeline
Next generation of Data PipelineDatabase
Import external data
United States
English (United States)
  1. Home/
  2. Revenue

Stripe DatabasePrivate preview

Connect to a Stripe-hosted Postgres database with immediate access to your data.

Stripe Database is a Stripe-hosted, read-only Postgres database that gives you direct SQL access to your current Stripe data. You can use any standard Postgres client to connect, and you can query your data with sub-second latency, with no infrastructure to manage on your end. Use it to run analytics on your Stripe account, or build your application directly on top of the Stripe database.

Note

Here’s an example of how you can access your data using a standard Postgres client:

psql "postgres://{id}.db.stripe.com/{id}" select * from customers;

Data availability

Stripe Database includes everything in the public Stripe API that supports a list endpoint. This means:

  • All listable resources are available: charges, customers, subscriptions, payment intents, invoices, and so on.
  • Resources that return a single object rather than a list aren’t available. For example, Balance is a single object and is not synced.
  • No data outside the public API is available. Financial reports and other derived datasets aren’t included.

You control which tables to sync. You can enable or disable syncing for individual tables at any time.

API version

Every database you create uses your account’s current API version. After you create it, the database stays on that API version.

To update to a newer API version, Stripe provisions an entirely new database with the new version. Your existing database remains unchanged.

Request access Private preview

Stripe Database is currently in private preview. Sign up below to request access.

Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Chat with Stripe developers on Discord.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc
On this page