Skip to content

create customer api route #14030

@didinadir1

Description

@didinadir1

What Medusa version and documentation are you using?

v2

Preliminary Checks

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions