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
}Fields
Example
mutation CreateCustomer {
createCustomer(input: {
email: "john.doe@example.com"
password: "SecurePassword123"
passwordConfirm: "SecurePassword123"
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 Corporation"
vatNumber: "US123456789"
companyId: "ACME-12345"
acceptsMarketing: true
}) {
customer {
id
email
firstName
lastName
}
}
}Related Types
No related types specified.