POST api/registration/CreateUserProfile?countryId={countryId}
Create User Profile. If result of creating user profile is true, User should wait for approval from Logbuy. When profile is approved, User will receive email about success or reject for approval. User can login into the system just after approval.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
countryId |
Id for the country you request content for. Translation in responses will depend on this param |
integer |
Required You can get countryId with GET api/Country |
Body Parameters
User profile info
Name | Description | Type | Additional information |
---|---|---|---|
FirstName |
First Name |
string |
Required Max length: 255 |
Surname |
Surname |
string |
Required Max length: 255 |
Email address (will be used as login) |
string |
Required Max length: 512 |
|
AlternativeEmail |
Alternative (personal) email |
string |
Max length: 512 |
Password |
Password |
string |
None. |
CustomerId |
Company name |
integer |
You can get customerId with GET api/Customer?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount} Required |
SalaryNumber |
Salary Number (if known) |
string |
Max length: 512 |
PrimaryGeoPostCodeId |
City(location) Id |
integer |
You can get PrimaryGeoPostCodeId with GET api/City?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount} Required |
Gender |
Gender |
UserProfileGenderEnum |
None. |
DateOfBirth |
Date Of Birth |
date |
None. |
ReceiveNewsletter |
If User wants to receive newsletters from LogBuy |
boolean |
None. |
TermsAndCondidtionsAccepted |
Terms and Conditions accepted (must always be true) |
boolean |
None. |
Note |
Note |
string |
Max length: 255 |
Request Formats
application/json, text/json
{ "firstName": "sample string 1", "surname": "sample string 2", "email": "sample string 3", "alternativeEmail": "sample string 4", "password": "sample string 5", "customerId": 1, "salaryNumber": "sample string 6", "primaryGeoPostCodeId": 1, "gender": 0, "dateOfBirth": "2024-09-08T03:19:33.3941381+02:00", "receiveNewsletter": true, "termsAndCondidtionsAccepted": true, "note": "sample string 9" }
Response Information
Id of created user profile
Response Formats
application/json, text/json
1