CustomerUpdateInput
Input for updating an existing customer account
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
consents: [ConsentInput!]
}Fields
Example
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