-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
What Medusa version and documentation are you using?
v2
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/medusajs/medusa/issues
Issue Summary
in the documentation that treats the registration of customers the create api route is often referenced. but it seems that it no longer exists and when clicking on the link for the related documentation it redirects to the register api route.
it seems that this api route is essential to the process of creating a customer when the same email is already used for another identity and the register route can't be used for this purpose , i quote :
However, a customer may enter an email that's already used either by an admin user, another customer, or a custom actor type. To handle this scenario:
Try to obtain a login token by sending a POST request to the /auth/customer/emailpass Authenticate Customer API route. The customer is only allowed to register if their email and password match the existing identity. This allows admin users to log in or register as customers.
If you obtained the login token successfully, create the customer using the login JWT token instead of the registration token. This will not remove the existing identity. So, for example, an admin user can also become a customer.
and :
... Send a request to the Create Customer API route to create the customer in Medusa.
does this api route still exits ? is there a way to achieve the creation of a customer despite the email being used for another identity ?
tnx