Custom Fields
Add and manage custom metadata fields on customers.
Updated
On this page
Overview
Store arbitrary key-value metadata on customer profiles. Use this for preferences, notes, or any custom data your storefront needs.
SDK Usage
import dash from "@/lib/dash"
// Set/update metadata
const { customer } = await dash.auth.updateMetadata({
preferred_strain: "indica",
birthday: "1990-05-15",
referral_source: "instagram",
custom_note: "Prefers discreet packaging",
})
// Read metadata
const { customer } = await dash.auth.getProfile()
console.log(customer.metadata.preferred_strain) // "indica"