Skip to content

customerPersonalDetailsUpdate

Mutationin Customer

Update the customer's personal details (name, salutation and phone number) independently of any address.

Arguments

ArgumentTypeDescription
inputCustomerPersonalDetailsInput!

Returns

CustomerPersonalDetailsUpdateResponse!

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

Example

mutation {
customerPersonalDetailsUpdate(input: {
salutation: MR
givenName: "John"
familyName: "Doe"
phone: "+31 20 123 4567"
}) {
customer {
id
givenName
familyName
salutation
phone
}
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/sfccNot resolved

Used by

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