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

NameDescriptionTypeAdditional 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

NameDescriptionTypeAdditional information
FirstName

First Name

string

Required

Max length: 255

Surname

Surname

string

Required

Max length: 255

Email

Email address (will be used as login)

string

Required

Max length: 512

AlternativeEmail

Alternative (personal) email

string

Max length: 512

Password

Password

string

Required

Max length: 512

Min length: 6

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 wanna recieve newsletters from LogBuy

boolean

None.

TermsAndCondidtionsAccepted

Terms and Conditions accepted (must always be true)

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "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": "2017-11-20T08:41:40.7627621+01:00",
  "receiveNewsletter": true,
  "termsAndCondidtionsAccepted": true
}

Response Information

Id of created user profile

Response Formats

application/json, text/json

Sample:
1