DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsRecipesCustomer Account Page
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
Build a Product PageBuild a Cart DrawerBuild a Checkout FlowAdd SearchBuild a BlogAffiliate Landing PageCustomer Account PageWholesale Storefront
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Customer Account Page

Build a customer dashboard with orders and profile.

Updated March 29, 2026

On this page
  • Customer Account Page
  • Related

Customer Account Page

typescript
// app/account/page.tsx
import dash from "@/lib/dash"

export default async function AccountPage() {
  const { customer } = await dash.auth.getProfile()
  const { orders } = await dash.auth.getOrders({ limit: 5 })

  return (
    <div className="max-w-4xl mx-auto py-12">
      <h1>Welcome, {customer.first_name || "Customer"}!</h1>

      <div className="grid md:grid-cols-2 gap-6 mt-8">
        <div className="border rounded p-6">
          <h2>Profile</h2>
          <p>{customer.email}</p>
          <p>{customer.first_name} {customer.last_name}</p>
          <a href="/account/edit">Edit Profile</a>
        </div>

        <div className="border rounded p-6">
          <h2>Loyalty Points</h2>
          <p className="text-2xl font-bold">{customer.loyalty_points} points</p>
          <p>{customer.tier_name}</p>
          <a href="/rewards">Redeem Points</a>
        </div>
      </div>

      <div className="mt-8">
        <h2>Recent Orders</h2>
        {orders.map(order => (
          <a key={order.id} href={`/account/orders/${order.id}`} className="block border rounded p-4 mb-2">
            <div className="flex justify-between">
              <span>{order.order_number}</span>
              <span>{order.status}</span>
              <span>${order.total}</span>
            </div>
          </a>
        ))}
        <a href="/account/orders">View All Orders</a>
      </div>
    </div>
  )
}

Related

  • Profile Management
  • Customer Orders
  • Customer Points
PreviousAffiliate Landing PageNextWholesale Storefront

On this page

  • Customer Account Page
  • Related