customerCreate
Create a new customer account with email and password
Arguments
| Argument | Type | Description |
|---|---|---|
customer | CustomerCreateInput! |
Returns
| Field | Type | Description |
|---|---|---|
customer | Customer | Created 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 } } }}{ "data": { "customerCreate": { "customer": { "id": "id-1", "email": "jane@example.com", "givenName": "Example", "familyName": "Example" }, "customerErrors": [ { "message": "Example" } ] } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Stub: answers Not implemented |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-auth:
CustomerCreate

