DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsAuthenticationProfile Management
Introduction
Getting Started
Authentication
RegisterLogin / LogoutPassword ResetProfile Management
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
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Profile Management

Update customer profile, addresses, and preferences.

Updated March 29, 2026

On this page
  • Get Profile
  • Update Profile
  • Update Metadata
  • View Order History
  • REST API Endpoints
  • Next Steps

Get Profile

Retrieve the authenticated customer's profile:

typescript
import dash from "@/lib/dash"

const { customer } = await dash.auth.getProfile()

// customer = {
//   id: "cust_abc123",
//   email: "customer@example.com",
//   first_name: "Jane",
//   last_name: "Doe",
//   phone: "555-0123",
//   has_password: true,
//   has_address: true,
//   address: {
//     address_line1: "123 Main St",
//     city: "Austin",
//     state: "TX",
//     zip_code: "78701",
//     country: "US"
//   },
//   loyalty_points: 250,
//   tier: "gold",
//   tier_name: "Gold Member"
// }

Update Profile

Update the customer's personal information. Only include the fields you want to change:

typescript
const { customer } = await dash.auth.updateProfile({
  first_name: "Jane",
  last_name: "Doe",
  phone: "555-0123",
  address_line1: "123 Main St",
  address_line2: "Apt 4B",
  city: "Austin",
  state: "TX",
  zip_code: "78701",
  country: "US",
  accepts_marketing: true,
})

Update Metadata

Store custom key-value data on a customer profile:

typescript
const { customer } = await dash.auth.updateMetadata({
  preferred_strain: "indica",
  birthday: "1990-05-15",
  vip_note: "Prefers edibles",
})

Metadata is freeform JSON — use it for any custom data your storefront needs.

View Order History

Get the customer's past orders directly from the auth module:

typescript
const { orders, pagination } = await dash.auth.getOrders({ limit: 10 })

orders.forEach(order => {
  console.log(order.order_number, order.status, order.total)
})

// Get a specific order's details
const { order } = await dash.auth.getOrder("ord_xyz789")

See Orders for more detail on order data.

REST API Endpoints

ActionMethodEndpoint
Get ProfileGET/storefront/auth/me
Update ProfilePOST/storefront/auth/profile
List OrdersGET/storefront/auth/orders
Get OrderGET/storefront/auth/orders/{order_id}

All profile endpoints require a Bearer token in the Authorization header. See Base URL & Headers.

Next Steps

  • Customer Addresses — Managing multiple addresses
  • Customer Points — Loyalty points and tiers
  • List Orders — Full order history details
PreviousPassword ResetNextList Products

On this page

  • Get Profile
  • Update Profile
  • Update Metadata
  • View Order History
  • REST API Endpoints
  • Next Steps