← Back to Blog

Architecture

From One Card to Many Clients:
Turning a Credit Card Platform into a B2B Product

Rodrigo Ramos · November 2026

1. The Day Our Customer Became a Company

For years, our credit card platform had one customer that mattered: the person holding the card. Every architecture decision assumed one brand, one app, one set of rules and one company paying the bills. Then the business changed direction. The same infrastructure would be offered to other companies, so they could launch and run their own card products on top of it.

Today the platform runs four clients on a shared environment, serving more than 200,000 cardholders and processing more than 500,000 transactions a day. Getting there wasn't about rewriting the platform. It was about answering, one by one, a set of questions that a single-brand system never had to ask.

The core idea: in B2C, the system serves the cardholder. In B2B, it serves companies that serve cardholders. Every component now needs to know which client it is working for, and every client expects to be treated as if it were the only one.

This post covers the decisions that shaped that transformation, the trade-offs behind them, and the tools we used. Most of them apply to any platform moving from one brand to many.

2. What Actually Changes in B2B

The transactions look the same: a purchase, an authorization, an invoice, a payment. What changes is everything around them.

Consumer platform (B2C) B2B platform
Who you serve One brand, its cardholders Several clients, each with its own cardholders
Business rules One set, often in code One set per client: fees, limits, billing cycles, collection rules
Data One database, one owner Each client's data must be isolated and provably so
Incidents Affect your customers Can affect every client at once, or one client because of another
Success metric Cardholder experience Cardholder experience and each client's contract (SLAs, reports, invoices)
New business A marketing campaign A pre-sales process, an integration project and an onboarding

Each row became a decision. The rest of this post walks through them.

3. Decision 1: How Much Do Clients Share?

The first and most expensive decision is the tenancy model: how much infrastructure each client shares with the others. There are three classic options, and none of them is free.

Model What it means Good at Costs you
Silo A full stack per client Strong isolation, simple compliance story Infrastructure and operations multiply with every client
Pool Everything shared, data tagged by client Lowest cost, fastest onboarding Isolation depends on discipline in every query and every service
Bridge Shared services, isolated data or critical parts Balance of cost and isolation More design work up front

For a card platform, the bridge model is usually the right answer: share the compute, isolate what is sensitive. Authorization, billing and collection services run once for everyone, while cardholder data, credentials and client configuration are separated per client. It keeps the cost of a new client low without making isolation depend on every developer remembering a WHERE client_id = ?.

The retrofit trap: adding tenancy to a system that was built for one brand touches every table, every event and every log line. It is the most expensive kind of change there is. If there is any chance your product will serve other companies one day, design for it from the start. It costs little early and a lot later.

4. Decision 2: Every Request Knows Its Client

Once clients share services, the most important rule is simple: the client context travels with every request, every event and every log.

This is unglamorous work, and it is what makes everything else possible: per-client billing, per-client monitoring, per-client limits and per-client audits all depend on it.

5. Decision 3: Configuration, Not Code

In a single-brand platform, business rules tend to live in code. That stops working the moment a second client wants a different billing cycle. If every client difference becomes an if in the code, the fifth client turns the platform into a maze.

The answer is to treat each client's product as configuration: fees, interest rates, credit limits, billing cycles, due dates, notification templates, collection rules and the client's branding. New clients get a new configuration, not a new branch.

Example: collections as configuration

Our collections platform was built multi-tenant from day one. Each client defines its own collection flow, with segments by days overdue, amount and risk, and reminder steps over email, SMS and WhatsApp, as configuration on a shared engine. It processes 400,000+ records a day, and with its GraphQL API, onboarding a new partner went from weeks to days.

The rule I use: if two clients could reasonably want different values, it's configuration. If no client will ever want it different, it's code. When in doubt, ask in pre-sales: clients will tell you exactly what they need to change.

6. Decision 4: Design for the Peak, Not the Average

500,000 transactions a day sounds big. Divided by the seconds in a day, it's about six transactions per second. That average is almost useless, and it's the number that misleads teams most often.

Card traffic is not flat. It peaks at lunchtime, on paydays, on Friday nights and around shopping dates, and when several clients share a platform, their peaks add up. Card authorizations also have a hard time limit: the network expects an answer in a fraction of a second, every time.

That led to a few standard decisions:

Rule of thumb: size for the busiest minute of the busiest day of your biggest client, plus the others at the same time. Then load-test it before a client does it for you.

7. Decision 5: One Client Can't Hurt the Others

Shared infrastructure brings a new kind of incident: the noisy neighbor. One client runs a big campaign, imports a large batch or has a bug in its integration, and every other client feels it.

The defenses are well known, and all of them depend on the client context from Decision 2:

8. Decision 6: Security and Compliance as a Product Feature

In B2C, security protects your customers. In B2B, it is also part of what you sell. Every prospective client asks the same questions in pre-sales: how is our data separated, who can access it, and how can you prove it?

9. Decision 7: Observe Each Client Separately

A platform-wide dashboard that is green can hide one client having a terrible day. In B2B, averages lie in a new way: a 99.9% success rate overall can mean one client at 95%.

Watch out: your clients have their own support teams and their own customers. If they learn about an incident from their cardholders before they hear it from you, you've lost more than uptime. Per-client monitoring is also per-client communication.

10. How We Make These Decisions

None of the decisions above has a single right answer. Each one trades cost against isolation, speed against safety, or flexibility against simplicity. What matters is making those trade-offs explicitly, and being able to explain them a year later.

11. The Toolbox

Need Tools
Services Java (Quarkus), Node.js/TypeScript, Python for data pipelines
APIs for clients REST and GraphQL
Events and messaging AWS SQS and SNS
Identity AWS Cognito
Data PostgreSQL, MongoDB, DynamoDB, Redis
Runtime AWS, Kubernetes, Docker
Quality and security GitLab CI, SonarQube quality gates, TDD, Cypress, CodeRabbit
Observability OpenTelemetry, Prometheus, Grafana, Sentry, Firebase Crashlytics
Architecture C4 models, documented trade-offs, review committee

The tools matter less than the decisions. Each of these could be swapped for an equivalent. Skipping the client context or the per-client monitoring can't be fixed with a better tool.

12. A Checklist Before Your Platform Goes B2B

  1. Have you chosen a tenancy model on purpose? Silo, pool or bridge, with the trade-off written down.
  2. Does every request, event and log carry the client? From the token, not from a parameter.
  3. Are client differences configuration? Fees, cycles, limits, rules and branding.
  4. Are you sized for the peak? All clients' peaks at once, load-tested.
  5. Can one client hurt the others? Rate limits, separate queues and per-client alerts.
  6. Can you prove isolation to a client's security team? Not just explain it.
  7. Can you see each client's health on its own? Per-client dashboards and SLOs.
  8. Are decisions reviewed and recorded? With security at the table.

13. Conclusion

Turning a credit card platform into a B2B product didn't need a new platform. It needed a new question at every layer: "for which client?". Once identity, events, data, configuration and monitoring could answer it, adding a client stopped being a project and started being an onboarding.

The hardest part wasn't technical. It was accepting that a B2B platform has two kinds of customers, the companies and their cardholders, and that both judge you every day. The architecture has to make it easy to keep both happy, and to know quickly when one of them isn't.

The takeaway: design for many clients before you have them. Tenancy, client context and configuration are cheap on day one and very expensive on day one thousand.

Share the compute. Isolate what's sensitive. And make sure every part of the system knows who it's working for.