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

Creation user from external provider. For now we only support creating users with Facebook. Authorization by token is required.

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

Facebook token

string

Use to get facebook 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

Response Formats

application/json, text/json

Sample:
1