Request Parameters:

User can subscribe to store

URL : ../Api/Client/SubscribeNewsletter

Header:
Content-Type:application/json

Required Parameters :  


Case-1. Exception parameters :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "StoreId": "1",

    "LanguageId": "",

    "Email": ""

}
Response :
{

    "Status": 0,

    "Message": "Request cannot be empty",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-2. Incorrect parameters :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "StoreId": "1",

    "LanguageId": "1",

    "Email": "admin@"

}

Response :
{

    "Status": 0,

    "Message": "Enter valid email",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "StoreId": "1",

    "LanguageId": "1",

    "Email": "admin@gmail.com",

    "IsSubscribed":"true"

}

Response : Mail Activation Response

{

    "Status": 1,

    "Message": "Success.",

    "Data": "Thank you for signing up! A verification email has been sent. We appreciate your interest.",

    "ValidationMessage": [],

    "ErrorMessage": null

}

Response : Mail DeActivation Response
{

    "Status": 1,

    "Message": "Success.",

    "Data": "A verification email has been sent. Thank you!",

    "ValidationMessage": [],

    "ErrorMessage": null

}