Request Parameters:


Retrieve the information of customer.


URL: ../Api/Client/Info


Header:

Content-Type:application/json


Required Parameters :  CustomerGUID


Case-1. Validating parameters :
Parameter:

{    

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

    "CustomerGUID":""

}


Response :
{

    "Status": 0,

    "Message": "Request cannot be empty.",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-2. Incorrect parameters :
Parameter:
{    

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

    "CustomerGUID":"F1F13527-BA8E-4C5A-ACA2-9EC3D78B3FF4"

}


Response :
{

    "Status": 0,

    "Message": "No customer found with id f1f13527-ba8e-4c5a-aca2-9ec3d78b3ff4",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success response :

Parameter:
{    

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

}


Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "Gender": null,

        "FirstName": "John",

        "LastName": "Smith",

        "DateOfBirth": null,

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

        "CompanyName": null,

        "Phone": null,

        "AvatarPictureUrl": "http://localhost:15536/images/default-image.png",

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

        "UsernamesEnabled": false,

        "CheckUsernameAvailabilityEnabled": false,

        "AllowUsersToChangeUsernames": false

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}


Note:

  • If parameter UsernamesEnabled is true then need to display username on customer information edit section.
  • If parameter  AllowUsersToChangeUsernames is true then customer can able to change his/her username otherwise it will display as lable
  • If parameter CheckUsernameAvailabilityEnabled is true then user can able to validate his/her email address before update information. For validate username use Api CheckUserAvailability