API

Register

POST/api/crm/v2/application.registrationv2
operationId: application.registration

Registers a new user (partner — with company, city, and legal entity; affiliate — by name and contact details), creates a session, and initiates two-factor authentication if required. The optional affiliate_id links a partner account to an affiliate account. The request is validated with reCAPTCHA.
Errors:

  • 328 — login is not a valid email address
  • 110 — password is shorter than 6 characters.

Authorization

language + role

Query parameters

affiliate_idinteger

Affiliate user ID — user_id from application.user_info; it is passed via the referral link. The partner account is linked to the affiliate account of this user. An unknown user ID is ignored, and registration proceeds without linking.

Example: 1

Request body application/json

object
One of the options
object

Role partner

city_idintegerrequired

City ID

Example: 1

company_namestringrequired

Company name

Example: Pizza & Hot Dog

entity_name_fullstringrequired

Legal entity

Example: IP Pizza & Hot Dog

loginstring · emailrequired

Email address — login

Example: example@example.com

phone_format_idinteger (PhoneFormatId) required

Country code: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Example: 1

phone_numberstringrequired

Phone number in masked format

Example: 999-999-99-99

passwordstringrequired

Password

captcha_tokenstringrequired

Example: example

captcha_versioninteger

ReCAPTCHA version: 2 or 3; only for the GOOGLE driver

Example: 3

Responses

OK

object
One of the options
object

Returns session_id

statusstringrequired

Values:successerror

Example: success

dataobjectrequired
need_2fabooleanrequired

Example: true

session_idstringrequired

Example: eOJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ0c2kiOjAsIm90cCI6IkZTRW5jcnlwdGVkX1ozTk9aN1l1WFlCSHNhK2hWcmdZMktJb0pkNzR0bE5CaTNKQTMxdEhTOVk9IiwicGFzIjoiRlNFbmNyeXB0ZWRfbCtuY2hsbkVIXC9KM2I3MW1hNXBEQkk0dUVhanlcL2JGWjg1aEZRN2FhemV2eFlMY2ZnTmE5VGtRbHFzMTRVZ05nd2NQTkRzbDJ5UEtKRkxZT0N4TDIzSWtNejVGRWFZdmgrQjh0disrdEtFYz0iLCJzdWIiOiJGU0VuY3J5cHRlZF95dGxiN1k0dGE0VjRmT0Vjem9EWEszN3FNMVpsSkVkZitxTzhPOFZEZUo0PSIsImlzcyI6ImZvb2Rzb3VsLnBybyIsImlhdCI6MTcxMjgyMTk3NiwiZXhwIjoxNzEyODIzNzc2fQ.4gWKujNQ0rcEu2EY-qCGcdi5R3rAprSCbPFOFA-b658gaA73EGvrqlcOQ73BNr3HCVBKB5ziTl54V0ZL48Hd2A