Request Parameters:


This method is use to retrieve the addresses of user.


URL: ../Api/Client/GetAddress


Header:

Content-Type:application/json


Required Parameters :  CustomerGUID


Case-1. Exception Response :
Parameter:

{    

     "ApiSecretKey":"i99b98d117m116a112o98k115c111",

     "CustomerGUID":"",

     "StoreId":"1"

}


Response :
{

    "Status": 0,

    "Message": "Request cannot be empty",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-2. Customer not registered Response :
Parameter:

{    

     "ApiSecretKey":"i99b98d117m116a112o98k115c111",

     "CustomerGUID":"9C055047-5540-4652-8D4D-D9375C324B6D",

     "StoreId":"1"

}


Response :
{

    "Status": 0,

    "Message": "Customer is not registered",

    "Data": {

        "Addresses": [],

        "Message": null

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:

{    

     "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

     "StoreId":"1"

}


Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "Addresses": [

            {

                "AddressId": 1,

                "FirstName": "John",

                "LastName": "Smith",

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

                "Company": "Nop Solutions Ltd",

                "CountryId": 1,

                "StateProvinceId": 16,

                "City": "New York",

                "Address1": "21 West 52nd Street",

                "Address2": "",

                "ZipPostalCode": "10021",

                "PhoneNumber": "12345678",

                "FaxNumber": ""

            }

        ],

        "Message": null

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}