Cannot create customer after guest checkout
See original GitHub issueBug report
After guest checkout, cannot create an account
Describe the bug
Made a guest order, then try to create account for the email, got 422
{
"code": "invalid_request_error",
"type": "duplicate_error",
"message": "Customer with email test.t0k9z4um@gmail.com already exists."
}
This scenario works well on v1.6.5
System information
Medusa version (including plugins): 1.7.0 Node.js version: 16 Database: Postgres Operating system: MacOS Browser (if relevant): Postman
Steps to reproduce the behavior
- Checkout with email that has not account
- Create account with same email (endpoint
POST store/customers)
Expected behavior
Able to create customer with the email
Screenshots
Issue Analytics
- State:
- Created 9 months ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
After guest checkout, user cannot create an account ... - Drupal
This rule originally creates an account with the order e-mail address both as name and email. If the customer later returns and decides...
Read more >Magento 2.3.3 After completing the order as a guest user ...
Recently after upgrading our site to Magento 2.3.3 Version, the guest user can't create an account after successful checkout.
Read more >Guest checkout creates account even when not requested
Enable/Disable the option “Allow customers to log into an existing account during checkout” in Woocommerce > Settings > Account & Privacy .
Read more >The customer account is not created automatically
I cannot find a solution. The customer account is not created automatically. In the Accounts and Privacy tab, I have selected: Guest checkout:...
Read more >Can't create customer account on checkout success page ...
After placing order and reaching success page customer is presented with "create account" button.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, I’m able to create customer after
medusa migrations run, maybe this should be added on upgrade guides https://docs.medusajs.com/advanced/backend/upgrade-guides/1-7-0After customer creation, I see 2 accounts with same email. The documentation about the claim order is clear so far. Thank you.
Linking this documentation as well in case it’s helpful 🙂