Request Parameters:


Check customer UserName is exist in nopCommerce or not.


URL: ../Api/Client/CheckUserAvailability


Header:

Content-Type:application/json


Required Parameters : UserName


Case-1. Validating parameters :
Parameter:

{    

     "ApiSecretKey":"i99b98d117m116a112o98k115c111",

     "UserName":""

}
Response :
{

    "Status": 2,

    "Message": "Invalid parameters.",

    "Data": null,

    "ValidationMessage": [

        "The UserName field is required."

    ],

    "ErrorMessage": null

}


Case-2. Incorrect parameters :        
Parameter:
{    

     "ApiSecretKey":"i99b98d117m116a112o98k115c111",

     "UserName":"Brijesh"

}
Response :
{

    "Status": 0,

    "Message": "Customer not exist.",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:
{    

     "ApiSecretKey":"i99b98d117m116a112o98k115c111",

     "UserName":"admin@yourStore.com"

}
Response :

{

    "Status": 1,

    "Message": "Customer exist.",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}