POST api/registration/CreateExternalUserProfile?countryId={countryId}

Creation user from external provider with Facebook. Authorization by token is required. Obsolete since registration and login with facebook are deprecated.

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

External User profile info

NameDescriptionTypeAdditional information
CustomerId

Company name

integer

You can get customerId with GET api/Customer?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount}

Required

AccessToken

External Access Token

string

Use to get access token

Required

PrimaryGeoPostCodeId

City(location) Id

integer

You can get PrimaryGeoPostCodeId with GET api/City?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount}

Required

TermsAndConditionsAccepted

Terms and Conditions accepted (must always be true)

boolean

None.

ReceiveNewsletter

If User wanna recieve newsletters from LogBuy

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": 1,
  "accessToken": "sample string 1",
  "primaryGeoPostCodeId": 1,
  "termsAndConditionsAccepted": true,
  "receiveNewsletter": true
}

Response Information

Id of created user profile

Response Formats

application/json, text/json

Sample:
1