Request Parameters:


Retrieve country by state Id


URL: ../Api/Client/GetCountryByStateId


Header:

Content-Type:application/json


Required Parameters :  


Case-1. Exception Respons  :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "LanguageId":"",

    "StateId":""

}

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",

    "LanguageId":"1",

    "StateId":"80"

}

Response :
{

    "Status": 0,

    "Message": "plugins.xcellenceit.restapi.message.nocountryfound",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Respons  :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "LanguageId":"1",

    "StateId":"1"

}

Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "CountryId": 1,

        "CountryName": "United States",

        "LimitedToStore": false,

        "TwoLetterIsoCode": "US",

        "NumericIsoCode": 840

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}