- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateCustomerAccountCreation - Medusa Core Workflows Reference
This documentation provides a reference to the validateCustomerAccountCreation
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates the input data for creating a customer account. The step throws an error if:
- The email is missing
- A customer with the email already exists and has an account
- A guest customer with the email already exists
Example#
Input#
CreateCustomerAccountWorkflowInput
CreateCustomerAccountWorkflowInputThe details of the customer account to create.
CreateCustomerAccountWorkflowInput
CreateCustomerAccountWorkflowInputauthIdentityId
stringThe ID of the auth identity to attach the customer to.
authIdentityId
stringcustomerData
CreateCustomerDTOThe details of the customer to create.
customerData
CreateCustomerDTOWas this page helpful?