Magento2 – Check if Customer is Associated with Email Using Rest API

apicustomermagento2rest

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

Best Answer

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.

Related Topic