POST api_v2/Accounts/Registration

Создать новую учетную запись

Request Information

Parameters

NameDescriptionAdditional information
accountInfo
Информация о новом аккаунте

Define this parameter in the request body.

Request body formats

application/xml, text/xml

Sample:
<Request>
  <AccountCaption>sample string 1</AccountCaption>
  <Login>sample string 2</Login>
  <Password>sample string 3</Password>
  <Inn>sample string 4</Inn>
  <Email>sample string 5</Email>
  <FirstName>sample string 6</FirstName>
  <LastName>sample string 7</LastName>
  <MiddleName>sample string 8</MiddleName>
  <FullPhoneNumber>sample string 9</FullPhoneNumber>
  <RegistrationConfig>
    <CloudService>Unknown</CloudService>
    <CloudServiceId>37a8715e-ccb3-4610-b4fc-3b26d4d73f98</CloudServiceId>
    <CloudServiceCompatibleConfig1CForCreateDatabase>sample string 1</CloudServiceCompatibleConfig1CForCreateDatabase>
    <Configuration1C>sample string 2</Configuration1C>
    <RegistrationSource>Promo</RegistrationSource>
    <ReferralAccountId>3c2460cd-21a4-490c-9801-96809e2cde29</ReferralAccountId>
  </RegistrationConfig>
  <LocaleName>sample string 10</LocaleName>
</Request>

application/json, text/json

Sample:
{
  "AccountCaption": "sample string 1",
  "ReferralAccountID": "3c2460cd-21a4-490c-9801-96809e2cde29",
  "Login": "sample string 2",
  "Password": "sample string 3",
  "Inn": "sample string 4",
  "Email": "sample string 5",
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "MiddleName": "sample string 8",
  "FullPhoneNumber": "sample string 9",
  "RegistrationConfig": {
    "CloudService": 0,
    "CloudServiceId": "37a8715e-ccb3-4610-b4fc-3b26d4d73f98",
    "CloudServiceCompatibleConfig1CForCreateDatabase": "sample string 1",
    "Configuration1C": "sample string 2",
    "RegistrationSource": 0,
    "ReferralAccountId": "3c2460cd-21a4-490c-9801-96809e2cde29"
  },
  "LocaleName": "sample string 10"
}

Response Information

Сессию для доступа по АПИ.

Response body formats

application/xml, text/xml

Sample:
<Result>
  <AccountID>9bdea6f9-07d0-4bb9-a10b-b48404c48f13</AccountID>
  <Token>a5c74c58-d29e-4d0b-afd4-e3befd8de3cd</Token>
</Result>

application/json, text/json

Sample:
{
  "AccountID": "9bdea6f9-07d0-4bb9-a10b-b48404c48f13",
  "Token": "a5c74c58-d29e-4d0b-afd4-e3befd8de3cd"
}