Request Parameters:


Get total language available in store and also set the language


URL: ../Api/Client/SetLanguage


Header:

Content-Type:application/json


Required Parameters :  


Case-1. Exception parameters :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

       "StoreId": "",

       "LanguageId":""

}
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":"8"

}
Response :
{

    "Status": 0,

    "Message": "Language not available",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

       "StoreId": "1",

       "LanguageId":"1"

}
Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "Message": "Language set successfully"

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}


==============================================================


URL: ../Api/Client/GetLanguage


 Success Response :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

       "StoreId": "1",

       "LanguageId":"1"

}
Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "AvailableLanguages": [

            {

                "Name": "English",

                "FlagImageFileName": "us.png",

                "Id": 1,

                "CustomProperties": {}

            },

            {

                "Name": "French",

                "FlagImageFileName": "fr.png",

                "Id": 2,

                "CustomProperties": {}

            }

        ],

        "CurrentLanguageId": 1,

        "UseImages": false

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}



}