Request Parameters:


URL:../Api/Client/Register


Header:

Content-Type:application/json


Required Parameters :  UserName,Password,EmailId,FirstName,LastName


Case-1. Validating parameters :

Parameter :
{

         "ApiSecretKey":"i99b98d117m116a112o98k115c111",

        "StoreId":"1",

         "UserName":"David",

        "EmailId": "" ,

        "Password": "",

         "LanguageId":"1",

         "FirstName":"David",

         "LastName":"Jones",

         "PhoneNumber":"9999999999",

         "Gender":"Male",

         "DateOfBirth":"1993-04-28",

         "CompanyName":"Xcellence-It",

         "NewsLetter":"true",

         "CustomerGUID":"00000000-0000-0000-0000-000000000000"

}

Response :

{

    "Status": 2,

    "Message": "Invalid parameters.",

    "Data": null,

    "ValidationMessage": [

        "The EmailId field is required.",

        "The Password field is required."

    ],

    "ErrorMessage": null

}


Case-2. Incorrect parameters :

Parameter:
 {

         "ApiSecretKey":"i99b98d117m116a112o98k115c111",

        "StoreId":"1",

         "UserName":"David",

        "EmailId": "David" ,

        "Password": "David123",

         "LanguageId":"1",

         "FirstName":"David",

         "LastName":"Jones",

         "PhoneNumber":"9999999999",

         "Gender":"Male",

         "DateOfBirth":"1993-04-28",

         "CompanyName":"Xcellence-It",

         "NewsLetter":"true",

         "CustomerGUID":"00000000-0000-0000-0000-000000000000"

}

Response Parameters:
{

    "Status": 0,

    "Message": "Wrong email",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Sucessfully Registered :

Parameter:
 {

         "ApiSecretKey":"i99b98d117m116a112o98k115c111",

        "StoreId":"1",

         "UserName":"Lisa",

        "EmailId": "Lisa@gmail.com" ,

        "Password": "lisa123",

         "LanguageId":"1",

         "FirstName":"Lisa",

         "LastName":"Marry",

         "PhoneNumber":"9999999999",

         "Gender":"Female",

         "DateOfBirth":"1993-04-28",

         "CompanyName":"Xcellence-It",

         "NewsLetter":"true",

         "CustomerGUID":"00000000-0000-0000-0000-000000000000"

}

Response Parameters:
{

    "Status": 1,

    "Message": "User registered successfully.",

    "Data": {

        "IsValidRegistration": false,

        "CustomerId": 0,

        "AdminComment": null,

        "Active": true,

        "AffiliateId": 0,

        "BillingAddress": null,

        "CannotLoginUntilDateUtc": null,

        "CreatedOnUtc": "2018-10-30T10:36:42.0559254",

        "CustomerGuid": "ed6bd972-554f-43a5-812a-202eb83141e9",

        "Deleted": false,

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

        "EmailToRevalidate": null,

        "FailedLoginAttempts": 0,

        "HasShoppingCartItems": false,

        "IsSystemAccount": false,

        "IsTaxExempt": false,

        "LastActivityDateUtc": "2018-10-30T10:36:42.0559254",

        "LastIpAddress": null,

        "LastLoginDateUtc": null,

        "RegisteredInStoreId": 1,

        "RequireReLogin": false,

        "ShippingAddress": null,

        "SystemName": null,

        "Username": "Lisa",

        "VendorId": 0,

        "Message": null

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}