0

I am checking the rest api regarding customer has been existed or not with the email. I found an API in the swagger tool i.e POST /V1/customers/isEmailAvailable

  1. At Swagger Tool:-

First Screen shot

  1. At Post Man APP:-

second Screen shot

  1. At Magento Admin End:-

3rd Screen shot

my question is customer is existing with the email but return false instead of true. whether it is a correct? please clarify.

thanks

2

actually this returns that the email you entered is available to register or not, if it found the email in the database it returns false else it returns true that yes you can use this email for new registration.

And yes your output is correct.

3
  • one small doubt how do u know whether this api is used before registration? – Nagaraju K Apr 27 '18 at 11:03
  • i just uses a example scope of registration . You can use it anywhere. Registration is a good example to make it understand – Deepak Apr 27 '18 at 11:10
  • For more example you can use this before forget password action, you can check if the entered email is available or not. – Deepak Apr 27 '18 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.