Docs
Dashboard

CustomerUpdateInput

Input

Specifies the fields to update a customer.

#

Fields


customerGroups
[ID!]

The new list of customer group IDs the customer belongs to.

email
String

The new email address of the customer.

firstName
String

The new first name of the customer.

id
ID!

The ID of the customer to update.

lastName
String

The new last name of the customer.

marketingConsent
Boolean

Indicates whether the customer has consented to marketing.

metadata
[KeyValuePairOfStringAndStringInput!]

The new metadata of the customer.

metafields
[CustomerMetafieldInput!]

The metafield values to add or update on the customer. Existing metafields not included in the list are preserved. When explicitly specified as null, all assigned customer metafields are removed.