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-06T07:31:10.081373",
"CustomerGuid": "a45a6f02-4e92-4024-8f9b-38d574305135",
"Deleted": false,
"Email": "David@gmail.com",
"EmailToRevalidate": null,
"FailedLoginAttempts": 0,
"HasShoppingCartItems": false,
"IsSystemAccount": false,
"IsTaxExempt": false,
"LastActivityDateUtc": "2021-01-06T07:31:10.0813731",
"LastIpAddress": null,
"LastLoginDateUtc": null,
"RegisteredInStoreId": 1,
"RequireReLogin": false,
"ShippingAddress": null,
"SystemName": null,
"Username": "David@gmail.com",
"VendorId": 0,
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}