name required | string |
email required | string <email> must be unique |
password required | string <password> >= 8 characters At least one number and one letter |
{- "name": "fake name",
- "password": "password1"
}
{- "user": {
- "username": "string",
- "status": "created",
- "is_registered": true,
- "type": "individual",
- "public_key": "string",
- "referer": "string",
- "role": "string",
- "is_email_verified": true,
- "private_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}, - "tokens": {
- "access": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg",
- "expires": "2020-05-12T16:18:04.793Z"
}, - "refresh": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg",
- "expires": "2020-05-12T16:18:04.793Z"
}
}
}
email required | string <email> |
password required | string <password> |
{- "password": "password1"
}
{- "user": {
- "username": "string",
- "status": "created",
- "is_registered": true,
- "type": "individual",
- "public_key": "string",
- "referer": "string",
- "role": "string",
- "is_email_verified": true,
- "private_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}, - "tokens": {
- "access": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg",
- "expires": "2020-05-12T16:18:04.793Z"
}, - "refresh": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg",
- "expires": "2020-05-12T16:18:04.793Z"
}
}
}
{- "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg"
}
{- "code": 404,
- "message": "Not found"
}
{- "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg"
}
{- "access": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg",
- "expires": "2020-05-12T16:18:04.793Z"
}, - "refresh": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg",
- "expires": "2020-05-12T16:18:04.793Z"
}
}
An email will be sent to reset password.
email required | string <email> |
{- "email": "[email protected]"
}
{- "code": 404,
- "message": "Not found"
}
token required | string The reset password token |
password required | string <password> >= 8 characters At least one number and one letter |
{- "password": "password1"
}
{- "code": 401,
- "message": "Password reset failed"
}
Маршрут для создания регистрационного платежа.
username required | string |
{- "username": "string"
}
{- "order_id": 0,
- "confirmation_token": "string"
}
Маршрут для создания депозита.
username required | string |
quantity required | string |
{- "username": "string",
- "quantity": "string"
}
{- "order_id": 0,
- "confirmation_token": "string"
}
Только администраторы могут создавать новых пользователей.
email required | string <email> |
password required | string |
role required | string Enum: "user" "admin" |
public_key required | string |
username required | string |
referer | string = 12 characters |
type required | string Enum: "individual" "entrepreneur" "organization" |
object (IIndividualData) | |
object (IOrganizationData) | |
object (IEntrepreneurData) |
{- "password": "string",
- "role": "user",
- "public_key": "string",
- "username": "string",
- "referer": "stringstring",
- "type": "individual",
- "individual_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "full_address": "string",
- "phone": "string",
- "email": "[email protected]"
}, - "organization_data": {
- "is_cooperative": false,
- "short_name": "string",
- "full_name": "string",
- "represented_by": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "position": "string",
- "based_on": "string"
}, - "country": "Russia",
- "city": "string",
- "full_address": "string",
- "phone": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}, - "entrepreneur_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}
{- "username": "string",
- "status": "created",
- "is_registered": true,
- "type": "individual",
- "public_key": "string",
- "referer": "string",
- "role": "string",
- "is_email_verified": true,
- "private_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}
Только администратор может получить всех пользователей
username | string Системное имя пользователя |
role | string Роль пользователя |
sortBy | string Сортировка по полю в формате field:desc/asc (например, name:asc) |
limit | integer >= 1 Default: 10 Максимальное количество пользователей |
page | integer >= 1 Default: 1 Номер страницы |
{- "results": [
- {
- "username": "string",
- "status": "created",
- "is_registered": true,
- "type": "individual",
- "public_key": "string",
- "referer": "string",
- "role": "string",
- "is_email_verified": true,
- "private_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}
], - "page": 1,
- "limit": 10,
- "totalPages": 1,
- "totalResults": 1
}
Авторизованные пользователи могут получать только свою собственную информацию. Только администраторы могут получать информацию о других пользователях.
username required | string Идентификатор пользователя |
{- "username": "string",
- "status": "created",
- "is_registered": true,
- "type": "individual",
- "public_key": "string",
- "referer": "string",
- "role": "string",
- "is_email_verified": true,
- "private_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}
Только администраторы могут обновлять информацию о других пользователях.
username required | string Системное имя пользователя |
string <email> должен быть уникальным | |
password | string <password> >= 8 characters Минимум одна цифра и одна буква |
{- "password": "pa$$word"
}
{- "username": "string",
- "status": "created",
- "is_registered": true,
- "type": "individual",
- "public_key": "string",
- "referer": "string",
- "role": "string",
- "is_email_verified": true,
- "private_data": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "birthdate": "string",
- "phone": "string",
- "country": "Russia",
- "city": "string",
- "full_address": "string",
- "details": {
- "inn": "string",
- "ogrn": "string"
}, - "bank_account": {
- "currency": "RUB",
- "card_number": "string",
- "bank_name": "string",
- "account_number": "string",
- "details": {
- "bik": "string",
- "inn": "string",
- "corr": "string",
- "kpp": "string"
}
}
}
}