Register
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": "2021-01-06T06:58:29.7245171Z",
"CustomerGuid": "b7e0f8a7-b467-4e17-96ee-5b0ba08b2712",
"Deleted": false,
"Email": "Lisa@gmail.com",
"EmailToRevalidate": null,
"FailedLoginAttempts": 0,
"HasShoppingCartItems": false,
"IsSystemAccount": false,
"IsTaxExempt": false,
"LastActivityDateUtc": "2021-01-06T06:58:29.7245172Z",
"LastIpAddress": null,
"LastLoginDateUtc": null,
"RegisteredInStoreId": 1,
"RequireReLogin": false,
"ShippingAddress": null,
"SystemName": null,
"Username": "Lisa@gmail.com",
"VendorId": 0,
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}