Update Customer
Update customer details and preferences.
Updated
On this page
Overview
Update the authenticated customer's profile fields. Only send the fields you want to change.
SDK Usage
import dash from "@/lib/dash"
const { customer } = await dash.auth.updateProfile({
first_name: "Jane",
last_name: "Smith",
phone: "555-9876",
address_line1: "456 Oak Ave",
city: "Dallas",
state: "TX",
zip_code: "75001",
country: "US",
accepts_marketing: false,
})