Find your Stripe account ID in the Dashboard by clicking Settings in the bottom-left corner and looking under your business name — it starts with acct_ followed by alphanumeric characters. You can also retrieve it via the API. The account ID is the same for both test and live modes.
Locating Your Stripe Account ID
Your Stripe account ID is a unique identifier that starts with acct_ and is used for Connect integrations, support requests, and API calls that reference your account. It is the same across test and live modes. This guide shows you exactly where to find it in the Dashboard and how to retrieve it programmatically.
Prerequisites
- A Stripe account
- Access to the Stripe Dashboard
Step-by-step guide
Open Account Settings in the Dashboard
Open Account Settings in the Dashboard
Log in to the Stripe Dashboard at dashboard.stripe.com. Click the gear icon or 'Settings' in the bottom-left sidebar. Your account ID is displayed at the top of the settings page under your business name.
Expected result: You see your account ID in the format acct_XXXXXXXXXX displayed on the settings page.
Copy the account ID
Copy the account ID
Click the account ID to copy it to your clipboard. The ID starts with acct_ followed by alphanumeric characters, for example acct_1A2b3C4d5E6f7G. This is the same ID in both test and live modes.
Expected result: The account ID is copied and ready to use.
Retrieve the account ID via the API (optional)
Retrieve the account ID via the API (optional)
If you need the account ID programmatically, call the Account retrieve endpoint with no parameters. This returns the account object for the API key owner.
1const Stripe = require('stripe');2const stripe = Stripe(process.env.STRIPE_SECRET_KEY);34async function getAccountId() {5 const account = await stripe.accounts.retrieve();6 console.log('Account ID:', account.id);7 // Output: acct_XXXXXXXXXX8 return account.id;9}1011getAccountId();Expected result: The console logs your account ID, e.g. acct_1A2b3C4d5E6f7G.
Complete working example
1// get-account-id.js2// Retrieve your Stripe account ID and basic info34const Stripe = require('stripe');5const stripe = Stripe(process.env.STRIPE_SECRET_KEY);67async function getAccountInfo() {8 try {9 const account = await stripe.accounts.retrieve();1011 console.log('Account ID:', account.id);12 console.log('Business name:', account.business_profile?.name || 'Not set');13 console.log('Country:', account.country);14 console.log('Default currency:', account.default_currency);15 console.log('Charges enabled:', account.charges_enabled);16 console.log('Payouts enabled:', account.payouts_enabled);1718 return account;19 } catch (err) {20 console.error('Failed to retrieve account:', err.message);21 if (err.type === 'StripeAuthenticationError') {22 console.error('Check your STRIPE_SECRET_KEY environment variable.');23 }24 }25}2627getAccountInfo();Common mistakes when findding your Stripe account ID
Why it's a problem: Confusing the account ID with the API key
How to avoid: The account ID starts with acct_. API keys start with sk_ or pk_. They are different identifiers used for different purposes.
Why it's a problem: Looking for the account ID in the API keys section
How to avoid: The account ID is in Settings (gear icon), not in Developers → API keys.
Why it's a problem: Thinking the account ID is different in test and live modes
How to avoid: The account ID is the same in both modes. Only the API keys are different between test and live.
Best practices
- Store your account ID in an environment variable if your code references it frequently
- Use the account ID when contacting Stripe support to help them locate your account quickly
- For Stripe Connect platforms, the acct_ ID identifies each connected account
- Never share your account ID publicly alongside API keys — the ID alone is not sensitive, but combining it with other information could be
- Verify the account ID matches your Dashboard when setting up Connect integrations
Still stuck?
Copy one of these prompts to get a personalized, step-by-step explanation.
How do I find my Stripe account ID? Show me where it is in the Dashboard and how to retrieve it via the Stripe Node.js API. Explain what the acct_ prefix means.
Write a Node.js script that retrieves my Stripe account ID and displays basic account information like business name, country, and whether charges and payouts are enabled.
Frequently asked questions
What does the acct_ prefix mean?
The acct_ prefix identifies Stripe account objects. Every Stripe account — whether a standard account or a Connect account — has an ID starting with acct_.
Is my Stripe account ID sensitive?
The account ID alone is not particularly sensitive — it cannot be used to access your account or make API calls. However, do not share it publicly alongside other account details.
Do I need my account ID for anything?
You need it for Stripe Connect integrations, when contacting Stripe support, and sometimes for webhook configuration or partner integrations that reference your account.
Can I change my Stripe account ID?
No. The account ID is permanently assigned when your account is created and cannot be changed.
Is the account ID the same for test and live modes?
Yes. Your account ID is identical in both test and live modes. Only API keys differ between the two modes.
Talk to an Expert
Our team has built 600+ apps. Get personalized help with your project.
Book a free consultation