Skip to Content

CustomerUpdateInput

Input for updating an existing customer account. All fields are optional, allowing partial updates to customer profile information including personal details, contact information, and address data.

Input Definition

input CustomerUpdateInput { firstName: String lastName: String phone: String address1: String address2: String city: String zipcode: String country: String region: String company: String vatNumber: String companyId: String acceptsMarketing: Boolean }

Fields

FieldTypeRequiredDescription
firstNameStringNoThe customer’s first name
lastNameStringNoThe customer’s last name
phoneStringNoThe customer’s phone number
address1StringNoThe first line of the customer’s address
address2StringNoThe second line of the customer’s address
cityStringNoThe customer’s city
zipcodeStringNoThe customer’s postal/zip code
countryStringNoThe customer’s country code (ISO 3166-1 alpha-2)
regionStringNoThe customer’s state/province/region
companyStringNoThe customer’s company name
vatNumberStringNoThe customer’s VAT number
companyIdStringNoThe customer’s company/business ID
acceptsMarketingBooleanNoWhether the customer accepts marketing communications

Example

mutation UpdateCustomer { updateCustomer(input: { firstName: "John" lastName: "Doe" phone: "+1-555-0123" address1: "123 Main Street" address2: "Suite 100" city: "New York" zipcode: "10001" country: "US" region: "NY" company: "Acme Corp" vatNumber: "IE1234567T" companyId: "comp_98765" acceptsMarketing: true }) { id firstName lastName email } }

No related types provided in source material.