Skip to content

No. 15SaaS7 min read1,902 words

Building a customer portal: customers actually use

How to build a customer portal people log into on purpose: picking features from support tickets, auth, data sync, permissions, notifications and cost drivers.

Written by
Lazy Devs
Published
Updated
Sources
Cited inline

Key takeaways · 05

The short version

  1. 01Choose a customer portal's first features from your support inbox: build the two or three screens that replace your most repetitive emails, such as invoice requests and order status questions.
  2. 02A portal only gets used if self-service is faster than emailing a human. Every core flow should take fewer steps than writing that email.
  3. 03Scope every query to the logged-in customer's organisation on the server. Changing an ID in the URL must never reveal another customer's data.
  4. 04Use a hosted auth provider and your payment provider's hosted billing portal rather than building login, password reset and card management yourself.
  5. 05Notifications with deep links (invoice ready, order shipped) are what bring customers back. A portal with no reason to return gets forgotten.
On this page · 11

A customer portal gets used when logging in is faster than emailing you. Build it by reading your support inbox, picking the two or three questions customers ask most (usually invoices, order status and account changes), and building screens that answer them in fewer steps than an email. Then get the foundations right: a proven auth provider, every query scoped to the customer's organisation, and notifications that link straight to the answer.

Most customer portals get built, launched and then quietly ignored. The login page collects dust while customers keep emailing support, because the portal does less than the email does. A portal customers actually use is not a bigger feature list. It is a smaller set of jobs done so well that logging in beats every other option.

Start with the questions customers keep emailing you

Before anyone opens a design tool, read your last three months of support tickets. The portal you should build is hiding in there. If half your inbound is "can you send me the latest invoice?" or "what is the status of my order?", that is your first screen. Not a dashboard with twelve widgets. One screen that answers the question people actually ask.

A simple way to do it:

  1. Export recent support tickets and tag each by what the customer wanted.
  2. Count the tags and rank them by volume and by the time each takes your team.
  3. For the top few, check the data needed to answer them is available in a system you can read.
  4. Those become version one. Everything else goes on a list for later.

The tell that you are overbuilding: a feature nobody can connect to a specific email they are tired of answering. If you cannot name the message it replaces, it is decoration.

Common portal features, and what each replaces

FeatureThe email it replacesTypical data sourceEffort
Invoices and billing history"Can you resend last month's invoice?"Billing providerLow with a hosted billing portal
Payment method and plan changes"Please update my card"Billing providerLow with a hosted billing portal
Order or project status"Where is my order?"Your operations database or ERPMedium, depends on data quality
Documents and reports"Can you send the contract or report again?"File storage, document systemLow to medium
Support requestsUnstructured emails to a shared inboxHelp desk toolMedium if integrated
Team members and permissions"Can you add my colleague?"Your auth providerMedium to high for business accounts

Self-service only works if it is faster than asking

Customers use a portal when it is genuinely quicker than sending an email and waiting. That sets a hard bar. If downloading an invoice takes four clicks and a password reset, people email you instead, and now you maintain a portal and answer the tickets. Every flow has to beat "just email someone". Design for the impatient customer late at night, not the patient one in office hours.

That means: passwordless or long-lived sessions where appropriate, deep links that land on the exact invoice or order, and the most common action on the first screen.

Authentication and identity

Use a proven auth provider or library. Rolling your own password reset and session handling is where small projects quietly lose weeks and create security holes. Our post on authentication patterns for Next.js compares the options.

The decisions that matter:

  • Consumer or business customers? Magic links or email and password cover most consumer portals. Business portals need organisations, roles and an invite flow, which is a meaningful jump in scope. Decide early.
  • Enterprise SSO. If you sell to larger companies, they will ask for single sign-on through their identity provider. Choose an auth provider that supports it, even if you switch it on later.
  • Account recovery. Make it fast and safe. The OWASP forgot password cheat sheet covers the details most teams get wrong, such as revealing whether an email address has an account.

Where the data lives: live queries or sync

Most portals are a window onto systems you already have: a billing provider for invoices, an operations database for order status, a CRM for account details. For each data source, decide whether to query it live or sync it into your own database.

ApproachProsConsUse when
Query liveAlways current, less codePortal speed and uptime depend on the other system; rate limitsThe source is fast, reliable and well-documented
Sync by webhookFast portal, near real-timeMust handle missed or duplicate eventsThe source sends reliable change events
Scheduled syncSimple, resilientData is minutes or hours oldThe source has no webhooks, or freshness is not critical

Most portals use a mix. For billing, lean on your payment provider's hosted pages for the heavy lifting. Stripe's customer portal handles payment methods, invoices, cancellations and plan changes, and you can link to it from your own portal with a short-lived session. Build custom billing screens only where the hosted pages do not fit. Our Stripe integration work usually starts exactly here.

If the portal pulls from a CRM you built yourself, the data model matters. We cover that in how to build a custom CRM.

Permissions: scope every query on the server

The day you have team accounts, you need to answer "can this user see this thing?" for every request. Get the rules right in the data layer, not the UI. Hiding a button is not security.

The most common and most embarrassing portal bug is customer A seeing customer B's invoice by changing a number in the URL. OWASP ranks this class of bug, broken object level authorisation, as the top API security risk. The fix is a habit: always include the caller's organisation in the query, taken from the session, never from the request.

// List: scope to the caller's organisation, taken from the session.
const invoices = await db.invoice.findMany({
  where: { organizationId: session.user.orgId },
  orderBy: { issuedAt: "desc" },
});
 
// Single record: match on the ID *and* the organisation.
// A guessed or tampered ID from another customer returns nothing.
const invoice = await db.invoice.findFirst({
  where: { id: params.invoiceId, organizationId: session.user.orgId },
});
if (!invoice) notFound();

Return a 404 rather than a 403 for records in other organisations, so you do not confirm they exist. Then add roles within an organisation: an employee might see orders but not invoices. Write automated tests that log in as two customers and check neither can reach the other's records, and repeat them for exports and file downloads. If your portal serves many companies from one codebase, our post on multi-tenant architecture covers the wider design.

Documents deserve special care. Store them privately and serve them through short-lived signed URLs generated after the permission check, so a forwarded link stops working.

If your portal serves several client companies from one codebase, read what multi-tenancy is first: the tenant boundary is the same problem one level up.

Notifications bring people back

A portal with no reason to return gets forgotten. What makes a portal sticky is usually an email or text that says "your invoice is ready" or "your order shipped", with a link straight to the relevant screen.

  • Deep link to the exact record, not the portal home page.
  • Keep the login step light, so a link from an email does not end in a password prompt every time.
  • Let customers choose which notifications they get and how.
  • Reply to support emails with portal links for anything the portal answers. That teaches customers where to look next time.

The notification is not a nice-to-have. It is the loop that keeps the portal alive.

When customers expect statuses to change in front of them, the patterns in how to build a real-time app apply, but start with email and an in-app list before you reach for live updates.

Design for mobile, empty states and edge cases

Mobile reality. Many customers open the link on a phone, from a notification email. If the portal is a desktop-first dashboard that breaks on a narrow screen, they bounce. Build the core flows mobile-first, with tap targets that meet WCAG's minimum target size.

Empty states. New customers log in and see nothing, because they have no orders or invoices yet. An empty portal feels broken. Explain what will appear and what to do next.

A clear way to reach a human. Even the best portal will not answer everything. A visible contact path keeps people from giving up when their edge case is not covered. The goal is to shrink the support inbox, not pretend it will hit zero.

If your portal sits in a regulated industry, the same principles apply with more care around access and audit. Our post on designing patient portals people use covers the healthcare version, and a portal that shows usage or performance data overlaps heavily with a customer-facing dashboard.

The stack we would reach for

Nothing exotic. A typical portal we build runs on Next.js for the frontend and server logic, Postgres for synced and portal-owned data, a hosted auth provider, the payment provider's hosted billing portal and background jobs for syncs and notifications. The interesting decisions are not the framework. They are auth, data sources and permissions, covered above. This is the kind of web app development we do every week.

What drives the cost

We do not quote portals we have not scoped. The cost driver is rarely the UI. It is the number of external systems you touch and how messy their data is.

FactorSimplerMore involved
CustomersIndividualsOrganisations with roles, invites and SSO
Data sourcesOne clean databaseSeveral systems, including legacy or ERP
BillingHosted billing portalCustom billing screens and logic
FreshnessScheduled syncLive two-way sync
DocumentsDownload existing filesGenerate documents and reports
ActionsRead-only viewsCustomers create orders, requests or approvals

A portal that reads from one clean database is a modest build. A portal that reconciles three legacy systems with conflicting customer records is not, and most of that work is data plumbing nobody sees. Slow feedback during the project is the other big schedule risk, more than any technical choice.

Common mistakes to avoid

  • Building from a wish list instead of the support inbox.
  • Flows slower than an email. If it takes longer than asking, nobody will use it.
  • Authorisation in the UI only. Scope every query on the server.
  • No notification loop. Without deep-linked notifications, the portal is forgotten.
  • Desktop-only design. The link will be opened on a phone.
  • Scope creep dressed as "while we are in there". Ship focused, measure usage from day one, and let evidence decide phase two.

Where to start

  1. Tag three months of support tickets and pick the top two or three requests.
  2. Map the data each one needs, and decide per source whether to query live or sync.
  3. Set up auth, organisations if you need them, and server-side scoping.
  4. Build those screens mobile-first, with empty states and deep-linked notifications.
  5. Launch, measure which screens are used and how support volume changes, then expand.

A customer portal earns its keep when logging in is faster than emailing you. If you want a second opinion on what your phase one should contain, get in touch and we will happily look at your support inbox with you.

FAQ · 05 questions

Frequently asked questions

What features should a customer portal have?

The features that replace your most common support requests. Typical first features are billing history and invoice downloads, order or project status, account and payment details, support requests, and team member management for business customers. Start with two or three and add more based on what customers actually use.

Should I build a custom customer portal or use an off-the-shelf one?

Off-the-shelf portals bundled with help desk, billing or CRM tools work well if your needs match what they show. Build custom when the portal must combine data from several systems, match your product and brand, support your own permission model or handle workflows specific to your business.

How do I keep customer data secure in a portal?

Authenticate with a proven provider, authorise every request on the server against the user's organisation and role, and never trust IDs sent from the browser. Log access to sensitive records, use short-lived signed links for documents, and test with two accounts to confirm neither can see the other's data.

How do I get customers to actually use a new portal?

Make the portal the fastest way to get the answer, then send people there. Link to specific portal pages from notification emails, reply to common support questions with a direct portal link, and make sure the core flows work well on a phone. Measure which pages get used and improve or remove the rest.

Should a customer portal sync data or query other systems live?

Query live when the source is fast, reliable and rarely changes shape, because it is simpler. Sync into your own database, using webhooks or scheduled jobs, when the source is slow, rate-limited or unreliable, or when you need to combine several systems. Most portals end up using both, chosen per data source.

Filed underSaaSFrontend

Related service

SaaS Platforms

From first login to multi-tenant scale.

Learn more

Next step

Want this built right?

This is the work we do every day. Tell us what you are building and we will show you exactly how we would ship it.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts