Skip to main content

CustomerUpdateInput

Input for updating a Customer

input CustomerUpdateInput {
defaultBillingAddressId: ID
defaultShippingAddressId: ID
emailAddress: String
emailMarketingConsent: CustomerMarketingConsentInput
firstName: String
lastName: String
phoneNumber: String
smsMarketingConsent: CustomerMarketingConsentInput
}

Fields​

CustomerUpdateInput.defaultBillingAddressId ● ID scalar​

The CustomerAddressId for the default billing address for this Customer

CustomerUpdateInput.defaultShippingAddressId ● ID scalar​

The CustomerAddressId for the default shipping address for this Customer

CustomerUpdateInput.emailAddress ● String scalar​

The email address associated with the Customer, must be unique to the storefront, limit 256 characters

CustomerUpdateInput.emailMarketingConsent ● CustomerMarketingConsentInput input​

CustomerUpdateInput.firstName ● String scalar​

The first name of the Customer, limit 256 characters

CustomerUpdateInput.lastName ● String scalar​

The last name of the Customer, limit 256 characters

CustomerUpdateInput.phoneNumber ● String scalar​

Must be unique to the Storefront. Limit 64 characters. Format +11231231234

CustomerUpdateInput.smsMarketingConsent ● CustomerMarketingConsentInput input​

Member of​

updateCustomer mutation