The Stripe-Account header is an HTTP request header used to target an API call at a specific connected account. It tells the platform which account the authenticated platform user or application is acting on behalf of, so authorisation is checked against that account boundary.
What the Stripe-Account header actually does
The Stripe-Account header is a request-scoping control, not an authentication method. It tells the Stripe API which connected account a platform request should be evaluated against, so the platform’s authenticated identity is authorised within the correct account boundary and not across the whole Stripe organisation.
That distinction matters because the header changes the target context of the call, while the underlying API credential still represents the caller. In practice, the header is part of how multi-account platforms safely separate tenant-level actions from platform-wide actions.
Why account scoping matters in platform integrations
In a connected-account model, the same platform integration may manage many downstream accounts with different balances, capabilities, and permissions. Without explicit account scoping, a request can land in the wrong context, which can produce data leakage, incorrect payouts, or unintended configuration changes. The control is therefore about containment as much as convenience.
That is why account-boundary mistakes are treated like authorisation defects. The header does not expand privilege by itself, but it can direct a privileged API call toward the wrong tenant if the application builds the request incorrectly or lets user input influence the account target.
For a practical reference on how Stripe-style webhook and secret handling fit into broader platform security, see the Webhook Secrets Security Guide.
Common implementation patterns and failure modes
Most implementations either select the connected account explicitly per request or derive it from trusted application state. The safer pattern is to bind the account identifier to server-side business logic, then send the header only after the platform has confirmed that the authenticated caller is allowed to act for that account. The API boundary should never be decided by a browser field or an unvalidated parameter alone.
Failure modes usually come from confused context, not from the header format itself. Examples include using the wrong connected account ID, reusing a cached account context across requests, allowing one customer to reference another customer’s account, or assuming that platform-level authentication automatically implies permission for every connected account.
How to think about security boundaries and authorisation checks
The security value of Stripe-Account is that it makes authorisation decisions explicit. Each request must be checked against the intended connected account boundary, which helps enforce least privilege in multi-tenant billing and marketplace workflows. It also makes audit trails easier to interpret because the target account is visible in the request context.
For general API security, the same principle appears in broken object-level authorisation and broken function-level authorisation: the server must decide whether the caller may access that exact object or function, not just whether the caller is authenticated. The header is only safe when the server’s authorisation logic treats it as a trusted selector rather than a user-controlled shortcut.
When you are designing or reviewing this pattern, the core question is whether the account boundary is enforced on the server before any sensitive operation is executed, including balance changes, payouts, refunds, and account settings updates.
Risk and Threat Considerations
Mis-scoped account headers can create cross-tenant exposure, especially in platforms that process payments or manage customer-owned accounts at scale. The main risk is that a valid credential is used against the wrong connected account, which can lead to unauthorised reads, writes, or financial actions even when the API key itself is legitimate.
Failure mechanism: A buggy integration, unsafe account selection flow, or request-replay path causes the platform to send a correct authenticated request with the wrong Stripe-Account value, so the authorisation check is evaluated in an unintended tenant context.
Impact: The result can be account data exposure, cross-tenant privilege misuse, incorrect payment actions, or hard-to-detect business logic abuse in a multi-account environment.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack surface, NIST SP 800-53 Rev 5 sets the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API5 — Broken Function Level Authorization | The header controls which account-bound function the caller may invoke. |
| API1 — Broken Object Level Authorization | The header selects the target account object for each API operation. | |
| Recommendation — Enforce server-side function checks before honoring any account-scoped Stripe request. Authorize every target account object on the server before processing the call. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Account-scoped requests should be limited to the minimum connected-account access needed. |
| AU-2 — Event Logging | Per-account request targeting needs traceable audit records for review and investigation. | |
| Recommendation — Restrict each integration to the smallest set of connected-account actions it requires. Log the authenticated caller, selected connected account, and sensitive action for each request. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | The header is part of controlling which account boundary a request may access. |
| Recommendation — Define and enforce account-scoping rules for platform-to-connected-account access. | ||
Practitioner Guidance
Governance implication: Treat connected-account targeting as a privileged server-side decision. Keep the account identifier under application control, validate that every request is bound to the correct tenant, and log the selected account alongside the authenticated caller for review and incident investigation.
What to watch for: Review paths where account IDs can be swapped, reused, inherited from session state, or influenced by the client. Those are the places where an otherwise legitimate request can cross the intended account boundary.
Related resources from NHI Mgmt Group
- Why does HTTP header injection create a broader account takeover risk than a simple response manipulation issue?
- Why does Host header poisoning create account takeover risk in password reset flows?
- What happens when a human uses an NHI account?
- What happened in the demo account left active in production scenario and what does it reveal?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on December 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org