Skip to content

customerNotificationPreferencesUpdate

Mutationin Customer

Update the customer's notification and marketing preferences. Omitted fields are left unchanged.

Arguments

ArgumentTypeDescription
inputNotificationPreferencesInput!

Returns

CustomerNotificationPreferencesUpdateResponse!

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

Example

mutation {
customerNotificationPreferencesUpdate(input: {
newsletter: true
}) {
customer {
id
notificationPreferences {
newsletter
}
}
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: