dash.customer
Customer profile and account methods.
Updated
dash.customer
Customer data is accessed through the dash.auth module. There is no separate customer module on the storefront.
// Get customer profile
const { customer } = await dash.auth.getProfile()
// Update profile
await dash.auth.updateProfile({ first_name: "Jane", phone: "555-0123" })
// Update metadata
await dash.auth.updateMetadata({ preferred_strain: "indica" })
// Get order history
const { orders } = await dash.auth.getOrders()
const { order } = await dash.auth.getOrder("ord_abc")
See Customers and Profile Management for full details.