# CustomerUpdateInput Input for updating an existing customer account ## Input Definition ```graphql 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 consents: [ConsentInput!] } ``` ## Fields | Field | Type | Required | Description | |-------|------|----------|-------------| | firstName | String | No | The customer's first name | | lastName | String | No | The customer's last name | | phone | String | No | The customer's phone number | | address1 | String | No | The first line of the customer's address | | address2 | String | No | The second line of the customer's address | | city | String | No | The customer's city | | zipcode | String | No | The customer's postal/zip code | | country | String | No | The customer's country code (ISO 3166-1 alpha-2) | | region | String | No | The customer's state/province/region | | company | String | No | The customer's company name | | vatNumber | String | No | The customer's VAT number | | companyId | String | No | The customer's company/business ID | | acceptsMarketing | Boolean | No | Whether the customer accepts marketing communications | | consents | [ConsentInput!] | No | Consents to record for the customer (privacy, marketing, cookie policy, or custom types) | ## Example ```graphql mutation { updateCustomer(input: { firstName: "Jane" lastName: "Smith" phone: "+1-555-0123" address1: "123 Main Street" address2: "Suite 100" city: "Portland" zipcode: "97201" country: "US" region: "OR" company: "Acme Corp" vatNumber: "DE123456789" companyId: "comp-12345" acceptsMarketing: true consents: [ { type: "marketing" status: "accepted" } ] }) { id email firstName lastName } } ``` ## Related Types - `ConsentInput`