frelep Posted December 9, 2013 Share Posted December 9, 2013 Hi everyone! I have a functional question, via the GUI it's impossible to create two customers with the same email address. Why not ;-) Yet it is quite possible via the API, in fact I tried 3 times to send the same request to create a customer and the 3 customers are created. Why the API does not return an error saying that the email is already in use? Why this choice by Prestashop? Without this error, it means proceed in two steps: - Launch a first query to verify that the email does not exist - If there is not, start a second query to create the client Hoping of course that the client is not created between these 2 steps through any other system ..... Thank you in advance for your clarification. P.S. : I'm using Prestashop Version 1.5.6.1 Link to comment Share on other sites More sharing options...
Dh42 Posted December 16, 2013 Share Posted December 16, 2013 Because the api does not error check, if you are using the api you should check for errors. It makes the api more powerful that way. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now