Skip to content

customerCreate

Mutationin Customer

Create a new customer account with email and password

Arguments

ArgumentTypeDescription
customerCustomerCreateInput!

Returns

CustomerCreateResponse!

FieldTypeDescription
customerCustomerCreated customer account information
customerErrors[CustomerCreateError!]Error details if account creation failed

Example

mutation {
customerCreate(customer: {
email: "john.doe@example.com"
password: "securePassword123"
givenName: "John"
familyName: "Doe"
salutation: MR
}) {
customer {
id
email
givenName
familyName
}
customerErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: