Structuring Hyperswitch organizations, merchant accounts and business profiles: what it answers
A payments team that must represent several brands, legal entities or countries in one self-hosted Hyperswitch stack needs to decide how those units map onto Hyperswitch's account hierarchy before any connector is configured. The hierarchy decides who can see which payments and settings, which connectors and routing rules apply to a transaction, and where settlement and reporting split. Changing the shape later tends to mean moving data, re-issuing credentials and re-testing flows, so the structure is worth settling early and writing down.
At a high level, Hyperswitch separates three layers. The organization is the top container, typically aligned with the company or a group of companies. A merchant account sits under an organization and usually represents a legal entity that contracts with processors and receives settlement. A business profile sits under a merchant account and usually represents a brand, storefront, country or payment setup that needs its own return URLs, webhook endpoints, connectors and routing configuration. Your mapping should show which legal entity owns each merchant account and which brands or markets sit in each profile.
The exact labels, the fields that belong to each layer, and which roles can act at each level change between releases, so confirm them against the current Hyperswitch docs and the release you plan to run. Check in particular where API keys, webhook settings and connector credentials attach, because these determine blast radius if a key leaks or a profile is misconfigured. Test the mapping in a non-production environment with one example brand and one example legal entity, and confirm that reports, settlement references and access scopes behave the way your finance and compliance teams expect.
Connectors and routing sit under profiles, while some API key and role scopes need confirming
The diagram starts at the organization, which holds one merchant account for each legal entity. Each merchant account owns business profiles, one per brand or region, and each profile connects to processor connectors and uses routing rules. The hand-off to check first is where routing rules and API keys attach in your version, because those levels are drawn with dashed edges. Confirm each dashed level in a test environment before you design your account model around it.
Nesting of organizations, merchant accounts, profiles, connectors, routing and API keys.
Which hierarchy option fits which business shape
This table compares three common ways to map a business onto Hyperswitch: one merchant account with several profiles, one merchant account per legal entity, and one organization per group company. Read each column against your own brand, entity and reporting structure, then check the open questions before you commit, because changing the hierarchy later is harder than choosing it now.
| Option | When it fits | What it simplifies | What it makes harder |
|---|---|---|---|
| One merchant account, several profiles | One legal entity trading under several brands or regions with shared finance and reporting | Shared connectors and API key management, one settlement view, fewer accounts to administer | Separate legal records per entity, routing isolation between brands, and per-brand reporting exports |
| One merchant account per legal entity | Each company in the group contracts with its own acquirers and files its own accounts | Entity-level settlement, tax and reconciliation matches the legal structure | Duplicate connector setup and credentials, more keys to rotate, and cross-entity reporting needs consolidation |
| One organization per group company | Group companies run independently with separate admins, policies and compliance owners | Strongest separation of administrators, roles and configuration between companies | Shared customers, payment methods or group-wide routing rules are harder to reuse, and group reporting sits outside the product |
| Mixed model | A group with a few legal entities and several brands inside each one | Entity boundaries follow the law while brands use profiles | More design work up front and a documented rule for which level owns each setting |
| Connector and routing ownership | Where processor contracts are held by one entity but used by several brands | Single credential set per acquirer where contracts allow it | Routing that differs by brand may need profile-level rules, which must be tested separately |
| Key management effects | Any option where several teams hold API keys | Fewer keys if one account serves many brands | Each key scope must match the team that holds it, so rotation and revocation need a named owner |
How to map brands, legal entities and regions onto the hierarchy
Start with three separate inventories, because each one answers a different question. The first lists legal entities, since the legal entity that holds the merchant of record relationship and receives settlement usually drives the merchant account. The second lists brands and storefronts, which usually map to business profiles because a profile carries the customer-facing settings, such as the name shown on statements and the return URL. The third lists regions and currencies, which decide which processors you can contract with and which connectors and routing rules apply in each market. Before you open the Control Center, also list every processor and acquirer account you already hold, with the entity, currency and country each one is contracted under. Gaps in that list are the most common reason a mapping has to be redrawn later.
Next, test each proposed mapping against three checks. Confirm that every merchant account maps to exactly one legal entity and settlement account, because money and reconciliation follow that line. Confirm that a brand which runs in several regions can be split into profiles without duplicating settings you intend to keep in one place. Confirm that each connector you plan to attach to a profile is actually contracted for that profile's entity and currencies. Routing and API keys follow the same structure, so a connector attached at the wrong level will route traffic you did not intend. Ask your processors which account identifiers and merchant IDs they issue per entity, since these must match the hierarchy you choose.
Write the result down as a single table before any configuration work starts. Include the entity, the merchant account, the profiles beneath it, the connectors and currencies per profile, and the person who owns each row. Illustrative example: one holding company with two regional subsidiaries, each selling under two brands, would usually produce two merchant accounts and four profiles. Review the table with finance, tax and the payments operations team, since they will each find a different error. Confirm the exact object names, nesting rules and limits for your Hyperswitch version in the Hyperswitch docs and in the release notes for the version you plan to run, because the Control Center evolves between releases.
Where connectors, routing rules and API keys sit
A connector is the link to a processor or acquirer that Hyperswitch calls to authorize, capture and refund payments. Hyperswitch supports more than 100 processors, so a single instance can hold many connector configurations for different brands, entities and regions. The documentation for your release should confirm which object stores connector credentials and where a connector is enabled or disabled, because moving connector credentials later is one of the more disruptive changes in a multi-entity setup.
- Attachment level: Confirm whether a connector is configured under a merchant account and then made available to one or more business profiles, or whether it is attached directly to a profile.
- Credential sets: Keep one credential set per legal entity and region where the processor requires it, so that a live key for one entity is never reused for another.
- Overrides: Check the documentation for each connector setting to see whether a profile-level value overrides a merchant-level value, and record the answer for each one.
- Test credentials: Attach sandbox credentials first, so scoping can be tested before any live credential is stored.
In the sandbox, create a payment under one business profile and confirm it cannot select a connector that is attached only to a different profile.
Routing decides which connector handles a payment. Hyperswitch documents six strategies: rule-based, volume-based, auth-rate, multi-objective (auth rate re-ranked by processor cost), least cost routing for debit networks, and default fallback for when no rule applies or a processor is ineligible. Routing rules are configured in the Control Center, and the level at which a rule applies (merchant account, business profile or both) should be confirmed for your release before you design around it. The intelligent routing documentation describes each strategy in detail.
- Rule-based: Matches payment attributes that you define, and is usually the first tool used to separate entities, regions or brands.
- Volume-based and auth-rate: Split traffic by configured share or by observed authorization performance, and both need enough payment history per connector to be meaningful.
- Multi-objective: Re-ranks processors by auth rate with processor cost as a factor, so it depends on the cost data you provide.
- Least cost and default fallback: Least cost applies to debit network routing, and default fallback applies when no rule matches or a processor is ineligible.
In the sandbox, create a rule scoped to one business profile, send test payments from a second profile, and confirm the rule does not match them. Then confirm which connector the fallback selects.
API keys authenticate your servers and client applications to Hyperswitch. Secret keys are used server-side and must be protected, while publishable keys are intended for client-side use in checkout. The Control Center documentation should confirm whether a key is bound to an organization, a merchant account or a business profile in your release, since that binding determines which payments and objects the key can reach.
- Binding: Record the scope of each key type in your release, and do not assume that a key created in one profile can act on another until the sandbox test confirms it.
- Key types: Use publishable keys only in front-end code and keep secret keys on servers and in secret stores.
- Who manages keys: Restrict key creation and rotation to the roles that manage developer settings, following the role model your team has chosen.
- Rotation and expiry: Plan overlapping keys during rotation, and confirm how expiry and notifications behave in your release.
In the sandbox, create keys under two business profiles, call the same endpoint with each one, and confirm that neither key can read or change payments that belong to the other profile.
Setting up the hierarchy in a self-hosted stack
This sequence builds the Hyperswitch hierarchy from the top down, so each legal entity, brand and region has its own merchant account, profile, connectors and keys before any live traffic flows.
Deploy the stack from the self-hosting guide
Your platform team deploys the Hyperswitch router, scheduler, PostgreSQL, Redis and Control Center using the self-hosting guide in infrastructure you control. Confirm that the Control Center version matches the router release using the compatibility matrix on the releases page, and that Superposition is running if your target version requires it. The step is done when the Control Center loads and the API health endpoint responds from your test environment.
Sign in and create the organization
A platform administrator signs in to the Control Center, using SSO if you have configured it (OpenID Connect is the supported protocol), and creates the top-level organization. Keep one organization per company or per group that shares governance, so that roles and settings inherit correctly. The check is that the organization appears in the admin view and that a second administrator, invited by email, can sign in and see it.
Create a merchant account for each legal entity
Under the organization, create one merchant account for each legal entity that will hold a processor relationship or settle funds. Record the legal name, registration identifier and settlement currency in your own change log, since these fields determine which processor contracts and reporting entities map to the account. The check is that each merchant account lists its own ID, and that no two entities share an account unless your finance team has confirmed that they should.
Create business profiles per brand or region
Inside each merchant account, create a business profile for each brand, storefront or region that needs separate checkout settings, return URLs, webhook endpoints or routing behavior. Profiles are where most day-to-day configuration lives, so name them clearly, for example by brand and country. The check is that a test payment created with a profile's API key is recorded under that profile in the dashboard and not under a sibling profile.
Attach connectors to each profile
Connect each processor or acquirer account to the profiles that are allowed to use it, entering credentials from the processor's own portal. Attach only the connectors that a profile's contracts cover, because a connector attached to a profile is eligible for routing there. The check is a sandbox test payment on each profile that returns a connector response from the expected processor, with the connector name visible on the payment record.
Set routing rules per profile
Configure routing for each profile, starting with default fallback routing so that every payment has a processor when no rule matches. Add rule-based, volume or auth-rate strategies only after the basic path works, and document which profile each rule belongs to. The check is a set of test payments with different attributes, such as currency or card network, confirming that each one reaches the connector your routing table predicts, and that a profile with no matching rule falls back as expected.
Confirm reporting appears under the right profile
Run a small set of sandbox payments, refunds and a simulated dispute across two or more profiles, then open the reporting views and confirm that each transaction sits under its own merchant account and profile. Check that finance users with merchant-level access cannot see another entity's totals. The step is done when the reconciled counts in the dashboard match the sandbox transaction log for each profile.
Issue scoped API keys for each profile
Create secret and publishable API keys at the level each service needs, usually one secret key per profile per backend service, and store the secret keys in your secrets manager rather than in front-end code. Record which profile and service each key belongs to, and set an owner and rotation process. The check is that a key issued for one profile is rejected when used to create a payment for a sibling profile, and that the key appears in the key list with its scope.
Access and key risks in a multi-entity setup
Once brands, legal entities and regions share one Hyperswitch organization, a single permission or credential mistake can reach every merchant account beneath it. The four risks below are the ones to settle on paper before any production traffic flows, with the control to design for each.
Over-broad roles across merchant accounts
Organization-level and merchant-level roles can reach more merchant accounts and profiles than a single brand's team needs. A developer who can change routing in one region may also be able to alter settings for another legal entity if roles are granted too high in the hierarchy. Design a role matrix per brand and region, grant at the narrowest level that works, and review who holds admin rights at each level on a fixed schedule. Confirm the exact permission sets in your Hyperswitch version before you map them.
Hyperswitch docsShared secret key across brands
When several brands or profiles call the API with one secret key, a leak exposes every brand behind it, and rotation becomes an outage for all of them at once. Issue keys per brand or per integration, and keep each key tied to the profile it is meant to serve. Record who owns each key, where it is stored, and how it is rotated. Keep secret keys out of front-end code and never place them in shared repositories.
Connector credentials visible to the wrong profile
Processor credentials are configured per connector account, and a connector attached to one profile can be used by payment flows that reach that profile. If a test or sandbox connector is visible next to live credentials, a misrouted request can hit the wrong environment or the wrong legal entity's processor account. Map each connector account to exactly one legal entity and region, separate test and live setups, and check which profiles can select each connector before routing rules are enabled.
SSO limits for Control Center access
Control Center single sign-on uses OpenID Connect only, SAML is not supported, and there is no just-in-time or SCIM provisioning. Users must be invited in Hyperswitch first, and roles are managed inside Hyperswitch rather than mapped from your identity provider. Plan an invitation and offboarding process owned by your identity team, since removing a user at the identity provider does not remove their Hyperswitch access. Confirm these limits against the version you deploy.
SSO setup docsUnreviewed access changes over time
Brands get added, legal entities get acquired and staff rotate, so the hierarchy drifts away from the original design. Without a recorded owner for each organization, merchant account and profile, orphaned users and unused keys accumulate. Assign an owner for every entity, run an access review each time the hierarchy changes, and keep a current inventory of organizations, merchant accounts, profiles, connectors and API keys. Ask your implementation partner to include this inventory in the handover documentation.
Questions teams ask before structuring Hyperswitch
How much effort does designing a Hyperswitch structure take?
The effort depends mostly on how many legal entities, brands, processors, regions and reporting views the structure has to hold, and on how many of those decisions are already settled. A single entity with one brand and two processors is a short design exercise. A group with several entities, brands in different countries, and separate settlement and reporting needs takes longer because each mapping choice affects connectors, routing, roles and API keys. Ask any partner to break the estimate down by those drivers and to list which decisions are assumed rather than confirmed. Effort also rises when the design has to be reviewed by finance, tax or compliance teams before anything is built.
Can our team design the Hyperswitch structure alone?
Yes, if one or two engineers understand the Hyperswitch hierarchy and someone on the business side owns the entity and brand decisions. The hard part is rarely the configuration itself. It is getting agreement on which legal entity settles which money, which brand sits under which profile, and who may change routing for each. Teams that design alone usually benefit from a written review by finance and compliance before building, and from testing the structure in a non-production environment first. A partner can provide that second review and a written design, but the decisions remain the client's.
What inputs do we need to provide for a structure design?
Prepare three inventories before the first design session. The first is an entity list: each legal entity, its country, its settlement accounts, and which brands or sites it trades under. The second is a processor contract list: which acquirers and processors each entity holds contracts with, the merchant identifiers those contracts issue, and any contractual limits on routing or currency. The third is a role matrix: who in finance, operations, risk and engineering needs to see, change or approve each part of the setup. Add reporting requirements, such as what finance needs by entity and what operations needs by brand, because these often decide where profiles should split.
How hard is it to change the structure later?
Changing structure after payments are live is harder than designing it well at the start, because existing transactions, stored payment methods, API keys, webhooks and reports are tied to the entities and profiles that created them. The cost depends on how many objects must be recreated or re-pointed, whether saved cards or customer records need to move, and how much historical reporting must stay consistent. Ask your implementation partner which changes can be made in place and which require a new merchant account, and confirm against the current Hyperswitch docs and the release notes for your version. Plan a change window and a rollback step for any move that touches live routing.
Does single sign-on change how we should design the structure?
Single sign-on affects who can reach the Control Center, but it does not create the hierarchy by itself. Hyperswitch documents OpenID Connect support for the Control Center only, with no SAML, no just-in-time or SCIM provisioning, and roles managed inside Hyperswitch rather than mapped from the identity provider. That means users must be invited first and each role assignment is made in Hyperswitch, so the role matrix must be designed as a separate step. Confirm these limits against the current Control Center SSO documentation before you commit to an identity architecture, since provider support may change between releases.
Should we use one Hyperswitch organization or several?
Use one organization when the entities share a parent, a common administration team and one reporting view, and when access differences can be handled with roles and profiles. Consider several organizations when entities must be administered by separate teams, when a regulator or contract requires strict separation of configuration or data, or when the group plans to sell or spin off a business. Each extra organization adds its own users, roles, API keys and reporting, so the operating cost rises. For a shared group, write down the separation requirement first and test whether roles and profiles can meet it before splitting.
What changes after go-live and how to keep the structure clean
Every new brand, legal entity or region should be added as a deliberate change to the hierarchy, not as an ad hoc record. Before creating anything in the Control Center, decide which organization the entity belongs to, whether it needs its own merchant account (usually because it has its own settlement entity or tax identity), and which business profiles will carry its connectors, routing rules and API keys. Write that mapping down and keep it current, because it is the reference your team will use the next time someone asks which profile a webhook endpoint or refund belongs to. Confirm with your own finance and legal teams which entities settle separately before you create the merchant account, since changing that later is harder than adding a profile.
Retiring a profile is the riskier operation, so treat it as a checklist. Before deactivating a profile, confirm that no live routing rules, connector credentials or webhook endpoints still point at it, that open disputes and pending refunds have a known owner, and that secret API keys scoped to it have been rotated or revoked. Rotate keys per profile on a schedule your security team sets, and confirm in your own environment how expiry notifications reach the people who must act on them. Review roles after every staff change or reorganization, since roles are managed in Hyperswitch rather than mapped from your identity provider, so a departing employee's access will not change when they leave your directory. Also check who holds admin rights at the organization level, because that is where profile creation and key management sit.
Check each upgrade against the compatibility matrix published with the release. Hyperswitch publishes a compatibility matrix for Control Center and web client versions in each GitHub release, so confirm that your router, Control Center and SDK versions are listed together before you move any of them. If your configuration varies by profile, plan for the Superposition dependency noted for v1.124.0: deployments must have a Superposition service running before upgrading to that version. Ask your platform team to confirm whether that service is already in your environment, and record which profile-level settings depend on it, so a later structure change does not silently break them. Test profile-level routing and connector changes in a non-production environment before each upgrade.
How DeployOpen works on this
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure. For Hyperswitch, that means agreeing how brands, legal entities and regions map onto organizations, merchant accounts and business profiles before any connector or API key is configured, then building and handing over that structure in writing.
How we scope
- Engagements are fixed-scope, with the structure map and deliverables agreed in writing before work starts.
- Scope lists each brand, legal entity and region, with its planned merchant account and business profile.
- We confirm which connectors, routing rules and API keys sit at each level, and who manages each one.
How we build
- We create the organization, merchant account and profile hierarchy in a non-production environment first.
- Connector and routing settings are applied per profile, then tested against the agreed structure map.
- Role assignments are checked against the least-privilege model agreed for your payment and operations teams.
How we hand over
- You receive a written map of organizations, merchant accounts, profiles and the settings attached to each.
- Runbooks cover adding a new brand, region or legal entity without restructuring existing profiles.
- Handover includes a walkthrough with your administrators so the structure can be maintained in your team.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Structure changes are reviewed against each Hyperswitch release before they reach production.
- Ask any provider to confirm how changes to profiles and keys are logged and who approves them.

