Update Customer
POST
/store/:storeCode/customers/meUpdate the logged-in customer.
Path Parameters
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
Query Parameters
fieldsstringComma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).
Request Body
Schema
CopyHttpTypes.StoreUpdateCustomer
Properties
first_namestringFirst name.
last_namestringLast name.
phonestringPhone number.
company_namestringCompany name.
metadataRecord<string, unknown>Custom metadata.
Response
Status
200OK
Schema
CopyHttpTypes.StoreCustomerResponse
Properties
customerrequiredStoreCustomerThe updated customer.