Request Parameters:


For get the value of setting key


URL: ../Api/Client/ExternalAuthentication


Header:

Content-Type:application/json


Required Parameters :


[Note: If you are a guest customer pass "CustomerGUID":"00000000-0000-0000-0000-000000000000",then in response you will get your Guest CustomerId]


Case-1. Exception parameters :
Parameter:
{

       "ApiSecretKey":"i99b98d117m116a112o98k115c111",

       "CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",

       "StoreId": "",

       "LanguageId": "",

       "ResponseEmailAddress": "hardik.soneji@support.xcellence-it.com",

       "ResponseFirstName": "hardik",

       "ResponseLastName": "soneji",

       "ResponseUserName": "hardiksoneji",

       "ExternalAuthenticationParameter":

       {

         "ProviderSystemName": "ExternalAuth.Facebook",

         "Email": "hardik.soneji@support.xcellence-it.com",

         "ExternalIdentifier": "1453178781669014",

         "ExternalDisplayIdentifier": "",

         "OAuthToken": "",

         "OAuthAccessToken": "1453178781669014"

       }        

}
Response :
{

    "Status": 0,

    "Message": "Request cannot be empty",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}




Case-2. Success Response :

Parameter:
{
       "ApiSecretKey":"d101g114q119n106g97y111j112d104",
       "CustomerGUID":"F1F13527-BA8E-4C5A-ACA2-9EC3D78B3FF4",
       "StoreId": "1",
       "LanguageId": "1",
       "ResponseEmailAddress": "hardik.soneji@support.xcellence-it.com",
       "ResponseFirstName": "hardik",
       "ResponseLastName": "soneji",
       "ResponseUserName": "hardiksoneji",
       "ExternalAuthenticationParameter": 
       {
         "ProviderSystemName": "ExternalAuth.Facebook",
         "Email": "hardik.soneji@support.xcellence-it.com",
         "ExternalIdentifier": "1453178781669014",
         "ExternalDisplayIdentifier": "",
         "OAuthToken": "",
         "OAuthAccessToken": "1453178781669014"
       }        
}


Response:
 {         
"Id": 0,
"Message": "User already registered",         
"CustomerEmail": "brenda_lindgren@nopCommerce.com",
"CustomerId": 5,
"Errors": null,
"IsValid": false,
 "Name": "Brenda Lindgren",
"ProviderSystemName": null,
"Username": "brenda_lindgren@nopCommerce.com"
    }