CustomerCreateInput
Input for creating a new customer account
Input Definition
input CustomerCreateInput {
email: String!
password: String!
passwordConfirm: String
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 {
createCustomer(input: {
email: "john.doe@example.com"
password: "securePassword123"
passwordConfirm: "securePassword123"
firstName: "John"
lastName: "Doe"
phone: "+1234567890"
address1: "123 Main Street"
address2: "Suite 100"
city: "San Francisco"
zipcode: "94102"
country: "US"
region: "CA"
company: "Acme Corp"
acceptsMarketing: true
consents: [
{
type: "MARKETING"
status: "ACCEPTED"
}
]
}) {
customer {
id
email
firstName
lastName
}
}
}Related Types
ConsentInput