Skip to main content
RapidDev - Software Development Agency
stripe-guide

How to find your Stripe account ID

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.

What you'll learn

  • Where to find your Stripe account ID in the Dashboard
  • What the acct_ prefix means
  • How to retrieve your account ID via the API
  • When you need your account ID
Book a free consultation
4.9Clutch rating
600+Happy partners
17+Countries served
190+Team members
Beginner4 min read2 minutesAll Stripe accounts, all plansMarch 2026RapidDev Engineering Team
TL;DR

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

1

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.

2

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.

3

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.

typescript
1const Stripe = require('stripe');
2const stripe = Stripe(process.env.STRIPE_SECRET_KEY);
3
4async function getAccountId() {
5 const account = await stripe.accounts.retrieve();
6 console.log('Account ID:', account.id);
7 // Output: acct_XXXXXXXXXX
8 return account.id;
9}
10
11getAccountId();

Expected result: The console logs your account ID, e.g. acct_1A2b3C4d5E6f7G.

Complete working example

get-account-id.js
1// get-account-id.js
2// Retrieve your Stripe account ID and basic info
3
4const Stripe = require('stripe');
5const stripe = Stripe(process.env.STRIPE_SECRET_KEY);
6
7async function getAccountInfo() {
8 try {
9 const account = await stripe.accounts.retrieve();
10
11 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);
17
18 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}
26
27getAccountInfo();

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.

ChatGPT Prompt

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.

Stripe Prompt

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.

RapidDev

Talk to an Expert

Our team has built 600+ apps. Get personalized help with your project.

Book a free consultation

Need help with your project?

Our experts have built 600+ apps and can accelerate your development. Book a free consultation — no strings attached.

Book a free consultation

We put the rapid in RapidDev

Need a dedicated strategic tech and growth partner? Discover what RapidDev can do for your business! Book a call with our team to schedule a free, no-obligation consultation. We'll discuss your project and provide a custom quote at no cost.