Skip to content

customerEmailUpdate

Mutationin Customer

Update customer email address (requires password for verification)

Arguments

ArgumentTypeDescription
emailEmailAddress!
passwordString!

Returns

CustomerEmailUpdateResponse!

FieldTypeDescription
customerCustomerUpdated customer account information
customerErrors[CustomerEmailUpdateError!]Error details if email update failed

Example

mutation {
customerEmailUpdate(
email: "newemail@example.com"
password: "currentPassword123"
) {
customer {
id
email
}
customerErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: