POST api_v2/Accounts/Add

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

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>e74a690c-a2a1-406b-8d03-53522ab4569e</CloudServiceId>
    <CloudServiceCompatibleConfig1CForCreateDatabase>sample string 1</CloudServiceCompatibleConfig1CForCreateDatabase>
    <Configuration1C>sample string 2</Configuration1C>
    <RegistrationSource>Promo</RegistrationSource>
    <ReferralAccountId>98092041-d54f-4e94-be02-c7f87d6a521a</ReferralAccountId>
  </RegistrationConfig>
  <LocaleName>sample string 10</LocaleName>
</Request>

application/json, text/json

Sample:
{
  "AccountCaption": "sample string 1",
  "ReferralAccountID": "98092041-d54f-4e94-be02-c7f87d6a521a",
  "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": "e74a690c-a2a1-406b-8d03-53522ab4569e",
    "CloudServiceCompatibleConfig1CForCreateDatabase": "sample string 1",
    "Configuration1C": "sample string 2",
    "RegistrationSource": 0,
    "ReferralAccountId": "98092041-d54f-4e94-be02-c7f87d6a521a"
  },
  "LocaleName": "sample string 10"
}

Response Information

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

Response body formats

application/xml, text/xml

Sample:
<Result>
  <AccountID>e580ef04-8449-4181-bc23-4745a80b88c7</AccountID>
  <Token>6ac0ea46-356e-4b0a-b707-c3dab48abb4d</Token>
</Result>

application/json, text/json

Sample:
{
  "AccountID": "e580ef04-8449-4181-bc23-4745a80b88c7",
  "Token": "6ac0ea46-356e-4b0a-b707-c3dab48abb4d"
}