Register new user

Register new user

POST /api/users/register

Query Parameters

Name
Type
Description

Email*

string

Email of user

(must be unic in project)

PasswordHash*

string

Password hash for user, calculated by function

MD5(EMAIL + PASS)

SendEmails

bool

Send an email to the client about registration (True/False) or the need to confirm the account / enter a password

IsActive

bool

Is the profile active (True/False)

IsConfirmed

bool

Is Email confirmed (True/False)

Name

string

Name

Phone

string

Phone

CounterPartyId

int

Counterparty ID to which the user will belong

AllowedIps

string

Allowed IPs for B2B payment (comma separated)

B2BRailway

bool

Enable B2B Railway for user (True/False)

B2BAir

bool

Enable B2B Air for user (True/False)

B2BBuses

bool

Enable B2B Buses for user (True/False)

B2BHotels

bool

Enable B2B Hotels for user (True/False)

B2BInsurances

bool

Enable B2B Insurance for the user (True/False)

CustomLogo

string

Url of custom user logo

SETTING_

String

Additionally, settings for the user can be transferred. Settings have prefix SETTING_ , for example SETTING_AVIA_BTB_VIEW_ORDERS

A successful response will contain the object of added user (see Get user request)

Last updated