customerRegister
Create a new customer profile with authentication capabilities.
Creates both a customer record and associated login credentials, enabling immediate login access. Returns both the customer profile and session information for authentication.
Possible errors:
- CUSTOMER_ALREADY_EXISTS_ERROR: Customer with the provided email already exists
- CUSTOMER_CREATE_ERROR: Failed to create the customer profile
- EMAIL_ALREADY_IN_USE_ERROR: Email address is already associated with another account
- USERGROUP_NOT_FOUND_ERROR: Parent usergroup does not exist
- AUTH_CREATE_ERROR: Failed to create authentication credentials
AUTH: Role=[user.OWNER]
customerRegister(
input: RegisterCustomerInput!
): RegisterCustomerResponse!
Arguments
customerRegister.input
● RegisterCustomerInput!
non-null input
Customer registration input data.
Contains all the necessary information to register a new customer account with optional authentication setup.