B2B SaaS Platform Development
Multi-tenancy, subscription billing, API, role-based permissions and onboarding: the pieces that decide whether your SaaS goes from 10 to 10,000 customers without a rewrite. We design them before the first sprint and build each one when your traction calls for it.
$ GET /api/v1/invoices Host: acme.yourapp.com→ tenant from subdomain acme→ user role finance_admin→ plan pro · 50,000 calls/month→ row-level security app.tenant_id = acme{ "rows": 38, "tenant": "acme"}✓ 200 OK · acme rows only# another tenant cannot read them even if a filter fails What slows a B2B SaaS down once it starts selling
Early decisions (tenancy model, billing architecture, API design, permission model) determine whether the platform scales from 10 to 10,000 customers without rewriting the system. These are the symptoms that one of them was made in a hurry.
First-month decisions that force a rewrite
The tenancy model, permissions or API design get improvised for the demo. With dozens of customers on board, changing them means migrating everyone’s data.
Billing that gets harder with every plan
Mid-month upgrades, proration, coupons, trials, EU VAT and several currencies. If it is handled with one-off scripts, every price change becomes a project.
The first big customer asks for SSO and audit logs
With an ad hoc permission system, adding SAML, granular roles and audit trails means rebuilding authentication with the contract on the table.
Customers integrating against your API
As soon as a customer builds on your API, every unversioned change breaks their integration. Without a rate limit per tenant, a single one can slow everyone down.
Trials lost during onboarding
The user signs up, cannot find how to import their data and does not come back. Without activation metrics you do not know at which step they drop off.
You do not know which customer uses what
Without per-tenant metrics you cannot see who uses which feature, which customer generates the load or how MRR and churn are moving.
We have built several B2B SaaS platforms that are in production today: InfoAdex, the reference platform for advertising investment in Spain; Cawa, a social commerce engine; and eEvidence, the digital certification platform for electronic evidence.
What gets decided on day one and what waits for a customer to pay for it
Some decisions are cheap at the start and expensive later: how each customer’s data is isolated, how permissions are modelled and how the API is versioned. Those are made before the first endpoint.
Others, such as SAML SSO or a database per customer, only pay off when an enterprise customer requires them and pays for them. Those are prepared for and built when they arrive.
built before launch prepared for when it sells
What we settle before the first endpoint
Eight checks with product, business and engineering. Each one leaves a written decision, with the reason and the point at which it should be revisited.
- Isolation
Shared database with row-level security, schema per tenant or database per tenant, and at which customer that would change.
Written down Tenancy model with its switch threshold
- Permissions
Roles per tenant today and how they will grow when large teams arrive with SSO.
Written down Extensible RBAC model
- Plans
What each plan limits: seats, usage, features. Designed with the pricing in front of us.
Written down Feature flags and metering per plan
- Billing
Provider (Stripe, Chargebee, Paddle or Lago), taxes, currencies and what happens when a payment fails.
Written down Subscription flow with its webhooks
- API
What is exposed, how it is versioned, how it is authenticated and how many calls each plan allows.
Written down OpenAPI contract for v1
- Security
Encryption in transit and at rest, GDPR data export and deletion, and what SOC 2 or ISO 27001 would require.
Written down List of controls per phase
- Observability
Usage, latency and errors per tenant, plus business metrics: MRR, churn and expansion.
Written down Dashboards live from launch
- Activation
What a new user has to do in their first session to see the product’s value.
Written down Activation metric and its funnel
What we build into every B2B SaaS platform
The six technical pillars a B2B SaaS needs to scale.
Multi-tenancy
Multi-tenant architecture that isolates each customer’s data without hurting performance. Support for shared tenancy (one schema, many customers), schema per tenant or database per tenant, depending on the isolation required. Row-level security in PostgreSQL, tenant-aware queries and middleware that resolves the tenant by domain, subdomain or API key.
Billing and subscriptions
Billing integrated with Stripe Billing, Chargebee or Paddle to manage subscription plans, trials, upgrades, downgrades, proration, coupons and international invoicing with multiple currencies and taxes. Webhooks to sync subscription status with your platform, dunning for failed payments and a self-service portal where customers manage their billing.
API design
REST or GraphQL APIs built API-first: semantic versioning, auto-generated OpenAPI/Swagger docs, rate limiting per tenant, OAuth2 or API key authentication, consistent pagination and standardised errors. Webhooks so customers receive events in real time, and SDKs generated for the most common languages.
Dashboards and analytics
Dashboards for platform users with interactive charts, advanced filters, Excel/CSV export and scheduled reports. For internal management, SaaS business metrics (MRR, ARR, churn, LTV, expansion) and technical metrics (usage per tenant, latency, error rate). React with D3 or Recharts and a backend built for analytical queries.
Onboarding
Guided onboarding flows so users see the product’s value in their first session: setup wizards, data import from Excel/CSV or external APIs, templates, progress checklists and contextual help. Interactive tours for advanced features and activation metrics to see at which step users drop off.
Enterprise security
Single Sign-On with SAML 2.0 and OpenID Connect so B2B customers use their corporate identity provider. Role-based access control (RBAC) with granular permissions per tenant. Immutable audit logs of every action. Encryption at rest and in transit. GDPR compliance with data export and deletion, and preparation for SOC 2 and ISO 27001 certification.
Want to build or scale your SaaS platform?
Free consultation →A platform that grows with the contracts you sign
From 10 to 10,000 customers without a rewrite
Data isolation, permissions and the API are designed to grow from the first sprint, so growth is handled with infrastructure, not with a rewrite.
Ready for the first enterprise contract
SSO, audit logs and granular roles are added on top of a permission model built for them, without touching authentication for the rest of your customers.
Billing without spreadsheets
Upgrades, proration, coupons and failed payments are handled by the billing system. Changing prices or launching a new plan is configuration.
You know which customer uses what
Usage, load and errors per tenant next to MRR and churn. Product and pricing decisions come from that data.
Technologies we use
A stack for SaaS platforms with multi-tenancy, billing and APIs.
B2B SaaS platforms we have built
SaaS products in production with real customers.
InfoAdex
The reference SaaS platform in Spain for advertising investment analysis. Data dashboards with billions of records and an API for agencies and advertisers.
Advertising investment referenceCawa
Social commerce engine that lets brands sell through content creators. Commission system, conversion tracking and dashboards for brands.
Social commerce for brandseEvidence
Digital certification platform for legally valid electronic evidence. Bulk document processing, an enterprise API and regulatory compliance.
Legal digital certificationWhat we guarantee on every project
A prototype built in a hurry can look finished in a demo. What follows is what decides whether the system survives an audit, an incident or a change of supplier.
- Guarantee 01
Legal compliance from the foundations
GDPR, e-invoicing, payments and where the data lives are settled in the architecture, following the rules of the market you operate in.
How you can check Export and deletion of each tenant’s data, as GDPR requires.
E-invoicing - Guarantee 02
Security and access control by design
Data isolation per tenant, roles per customer, server-side validation of every input and backups with tested restores.
How you can check Row-level security in PostgreSQL: a tenant cannot read another tenant’s rows even if a filter in the code fails.
Secrets management - Guarantee 03
The code and the accounts are yours
Repositories, infrastructure, domains and third-party accounts (cloud, app stores, payment gateway) are registered to your company. There is no licence to pay us to keep using it.
How you can check Repository in your company's GitHub or GitLab organisation, or transferred whenever you ask.
- Guarantee 04
Documented so another team can take over
Architecture, data model, environment variables and how to deploy are written down next to the code. If you change supplier or hire an in-house team, nobody starts blind.
How you can check Technologies with a large community, such as TypeScript, React or PostgreSQL: there are developers on the market to maintain them.
- Guarantee 05
Accountable for the result in production
Automated tests, continuous deployment, monitoring and alerts from the first release. If you stay with us, the team that built it handles incidents and new features.
How you can check Error and performance alerts are active from launch day.
Our process
Frequently asked questions about B2B SaaS development
How much does it cost to build a B2B SaaS platform?
Which multi-tenancy model is best for my SaaS?
How are billing and subscriptions handled?
Do I need SSO and enterprise features from the start?
How do you ensure the availability and performance of the SaaS?
You might also be interested in
Let’s build your B2B SaaS platform
We review your business model and pricing, and tell you which architecture decisions to make now and which can wait.
Tell us your challenge. We'll propose a solution.
No commitment. We reply within 24 hours, and within 48 hours you have a proposal with scope, timeline and budget. No fine print.