Soft Clerk Logo
Fintech & SaaS

Multi-Tenant Invoicing & Accounting SaaS with White-Label & Custom SMTP

Built a full multi-workspace invoicing and accounting platform with unlimited customers/invoices, custom SMTP, white-label domains, income/expense tracking, and real-time P&L reporting — trusted by 500+ freelancers and agencies.

Client: Classified Billing
Timeline: 8 Weeks
View Live Site ↗
Primary Outcome
20,000+
Invoices Generated
Next.jsNext.jsTypeScriptTypeScriptPostgreSQLPostgreSQLPrismaPrismaStripeStripeVercelVercel
The Challenge

Legacy Bottlenecks & Technical Constraints

Freelancers and small agencies were stuck between free limited tools and expensive accounting software. They needed unlimited invoices, multi-business workspaces, professional branded email delivery, and built-in financial reporting without monthly per-user fees.

Existing free invoice generators imposed hard limits on customers and documents.
No native support for multiple organizations with isolated data and branding.
Email delivery from third-party domains hurt client trust and open rates.
Users still needed separate tools for income/expense tracking and P&L statements.
The Engineering Solution

Architectural Design & Implementation

Soft Clerk engineered a complete multi-tenant SaaS on Next.js + Prisma + PostgreSQL with row-level isolation, custom SMTP configuration, white-label domain support, and real-time financial dashboards.

Row-level multi-tenancy isolating every workspace’s customers, invoices, and financial data.
Custom SMTP setup allowing users to send from their own domain (invoices@theirbrand.com).
White-label mode with custom domain (cName) and complete removal of Classified Billing branding.
Built-in income & expense ledger + one-click Profit & Loss report generation.
Stripe-powered subscription plans with lifetime deal support and usage metering.
System Architecture & Data Pipeline

Engineered Technical Architecture

How data and execution flows through the system from edge ingestion to persistent storage.

Step 01

Workspace & Tenant Isolation

User creates or switches workspaces. Prisma middleware injects tenant_id on every query, guaranteeing complete data isolation.

Step 02

Invoice Generation & PDF

Client data + line items are rendered into professional templates and converted to PDF on the edge with sub-second latency.

Step 03

Custom SMTP Dispatch

User-configured SMTP credentials are encrypted and used to send invoices from the client’s own domain for maximum deliverability.

Step 04

Financial Aggregation

Income, expenses, and invoice status feed into real-time dashboards and exportable P&L statements.

Technical Deep Dive

Key Engineering Obstacles & Solutions

Real technical challenges encountered during implementation and how our engineering team overcame them.

Secure Multi-Workspace Data Isolation

The Engineering Hurdle

A single compromised session or incorrect query could leak data across organizations.

The Engineered Solution

Implemented Prisma client extensions that automatically inject and enforce tenant_id filters on every model, combined with JWT claims containing active workspace context.

Reliable Custom SMTP Across Providers

The Engineering Hurdle

Users bring Gmail, Outlook, SendGrid, SES, or raw SMTP credentials with widely varying auth requirements.

The Engineered Solution

Built a provider-agnostic SMTP abstraction layer with connection testing, credential encryption at rest, and graceful fallback messaging when delivery fails.

Execution Roadmap

Delivery Phases & Milestones

Structured milestone delivery ensuring total transparency and zero project drift.

Phase 1 (Weeks 1-2)

Core Schema & Multi-Tenancy

  • PostgreSQL schema with workspace isolation model
  • Next.js App Router + Prisma + Auth.js foundation
  • Basic invoice CRUD and PDF generation
Phase 2 (Weeks 3-5)

Collaboration, SMTP & White-Label

  • Team invites + role-based access control
  • Custom SMTP configuration UI and encrypted storage
  • White-label branding and custom domain support
Phase 3 (Weeks 6-8)

Accounting Features & Launch

  • Income/expense tracking and P&L reports
  • Stripe billing + lifetime deal logic
  • Production deployment, monitoring, and documentation handover

Core Technologies Deployed

Production technologies selected for high performance, zero technical debt, and enterprise scale.

Next.jsNext.jsTypeScriptTypeScriptPostgreSQLPostgreSQLPrismaPrismaStripeStripeVercelVercel
The Results

Quantifiable Business & Engineering Outcomes

20,000+
Invoices Created

Professional invoices generated and sent by freelancers and agencies worldwide.

500+
Active Businesses

Paying and free users actively managing customers and finances on the platform.

45%
Average Time Saved

Users report significant reduction in weekly administrative overhead.

Classified Billing transformed our agency workflow completely. We’re now processing 300% more invoices with half the effort. The multi-workspace feature is pure genius.

Alexandra Chen
Founder, Digital Bloom Agency
Client IP & Deliverables
100% Code Ownership

Production Assets Handed Over

Full intellectual property transfer with zero proprietary vendor lock-in.

Complete source code ownership and private GitHub repository
Docker Compose local development environment
Automated CI/CD pipeline (lint, typecheck, deploy)
Full architecture documentation and database schema dictionary

Related Case Studies

Explore more engineering success stories across our disciplines.

5,000+

AI-Powered Link Building Outreach & Marketplace Platform

Engineered an end-to-end AI-assisted link building SaaS combining automated outreach pipelines, vetted publisher marketplace, custom SMTP sending, synced inbox, multi-project workspaces, and free AI SEO tools — serving 500+ agencies and SEO teams since 2015 roots.

Read Case Study
5,000+

E-Commerce Mastery Platform with Global Commerce Directories

Built a complete e-commerce education platform featuring expert-led courses, lifetime access, certificates, and multi-country commerce directories covering Bangladesh, Pakistan, China, India, and more — helping thousands launch online businesses.

Read Case Study
Engineer Similar Results

Ready to achieve measurable outcomes for your product?

Tell us about your project requirements and technical constraints. Receive a comprehensive scope breakdown and fixed milestone quote within 24 hours.