{"swagger":"2.0","info":{"title":"API 365","version":"1.0"},"host":"virtserver.swaggerhub.com","schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"securityDefinitions":{"Bearer":{"type":"apiKey","name":"Authorization","in":"header"}},"security":[{"Bearer":[]}],"paths":{"/api/v1/auth/token/":{"post":{"operationId":"api_v1_auth_token_create","description":"Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/TokenObtainPair"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/TokenObtainPair"}}},"tags":["api"]},"parameters":[]},"/api/v1/auth/token/refresh/":{"post":{"operationId":"api_v1_auth_token_refresh_create","description":"Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/TokenRefresh"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/TokenRefresh"}}},"tags":["api"]},"parameters":[]},"/api/v1/companies/":{"get":{"operationId":"api_v1_companies_list","summary":"Получение списка компаний","description":"","parameters":[],"responses":{"200":{"description":"Компании","schema":{"$ref":"#/definitions/Company"}}},"tags":["api"]},"parameters":[]},"/api/v1/companies/all/":{"get":{"operationId":"api_v1_companies_all_list","summary":"Получение списка компаний","description":"","parameters":[{"name":"search","in":"query","description":"Поиск по строке","required":false,"type":"string"}],"responses":{"200":{"description":"Компании","schema":{"$ref":"#/definitions/Company"}}},"tags":["api"]},"parameters":[]},"/api/v1/companies/{id}/":{"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"/api/v1/company/":{"get":{"operationId":"api_v1_company_list","summary":"Получение списка компаний","description":"","parameters":[],"responses":{"200":{"description":"Компании","schema":{"$ref":"#/definitions/Company"}}},"tags":["api"]},"parameters":[]},"/api/v1/company/all/":{"get":{"operationId":"api_v1_company_all_list","summary":"Получение списка компаний с фильтром","description":"","parameters":[{"name":"search","in":"query","description":"Поиск по строке","required":false,"type":"string"}],"responses":{"200":{"description":"Компании","schema":{"$ref":"#/definitions/Company"}}},"tags":["api"]},"parameters":[]},"/api/v1/company/{id}/":{"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"/api/v1/events/":{"get":{"operationId":"api_v1_events_list","summary":"Список событий","description":"","parameters":[],"responses":{"200":{"description":""}},"tags":["api"]},"parameters":[]},"/api/v1/finance/alert/":{"get":{"operationId":"api_v1_finance_alert_list","summary":"Получение списка алертов","description":"Мобильное API\nПолучение текста для окна сообщений для указаного типа сообщения","parameters":[],"responses":{"200":{"description":"","schema":{"type":"array","items":{"$ref":"#/definitions/Alert"}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/alert/{id}/":{"get":{"operationId":"api_v1_finance_alert_read","summary":"Получение алерта","description":"Мобильное API\nПолучение текста для окна сообщений для указаного типа сообщения","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/Alert"}}},"tags":["api"]},"parameters":[{"name":"id","in":"path","description":"A unique integer value identifying this Алерт для мобильного приложения.","required":true,"type":"integer"}]},"/api/v1/finance/balance-detail-new/":{"get":{"operationId":"api_v1_finance_balance-detail-new_list","summary":"Почему столько","description":"","parameters":[],"responses":{"200":{"description":"Детализация баланса","schema":{"type":"object","properties":{"from":{"title":"Дата начала периода","type":"string","format":"date"},"till":{"title":"Дата окончания периода","type":"string","format":"date"},"average_day_salary":{"title":"Среднедневной заработок","type":"string"},"worked_days_count":{"title":"Количество отработанных дней","type":"integer"},"amount_total_debet":{"title":"Общая сумма заработка","type":"string"},"amount_total_credit":{"title":"Общая сумма выплаты","type":"string"},"balance":{"title":"Текущий баланс (заработано)","type":"string"},"operations_history":{"title":"Операции, влияющие на сумму выплат","type":"array","items":{"type":"object","properties":{"transaction_id":{"type":"string"},"payment_method":{"type":"string"},"amount":{"type":"string"},"executed":{"type":"string","format":"date"},"created":{"type":"string","format":"date"},"commission":{"type":"string"}}}},"message_boxes":{"title":"Текстовые описания полей","type":"array","items":{"type":"object","properties":{"type":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string"}}}},"num_days_in_debt":{"title":"Количество дней в долгу","type":"integer"},"working_days":{"title":"Количество рабочих дней в месяце","type":"integer"},"limit_coefficient":{"title":"Коэффициент снятия","type":"string"},"max_withdrawal_amount":{"title":"Максимальная сумма снятий","type":"string"},"salary":{"title":"Месячный доход сотрудника","type":"string"},"details":{"title":"Детализация","type":"array","items":{"type":"object","properties":{"title":{"title":"Название","type":"string"},"value":{"title":"Значение","type":"string"}}}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/balance/":{"get":{"operationId":"api_v1_finance_balance_list","summary":"Получение баланса v1","description":"","parameters":[],"responses":{"200":{"description":"Информация о балансе","schema":{"type":"object","properties":{"balance":{"type":"number"},"button_resolution":{"type":"boolean"},"debt":{"type":"number"},"message_box":{"type":"object","properties":{"type":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string"}}},"alert":{"type":"object","properties":{"type":{"type":"integer"},"title":{"type":"string"},"short_description":{"type":"string"},"detailed_description":{"type":"string"}}},"calculator_type":{"type":"integer","enums":[[1,"Пользователь от работодателя (1С, ЛК, т.д.)"],[2,"Расчет баланса для сдельщиков"],[3,"Расчет баланса для ЗКД 3.0"]]}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/checkout/":{"post":{"operationId":"api_v1_finance_checkout_create","summary":"Получение выписки","description":"","parameters":[{"name":"user_id","in":"query","description":"Идентификатор пользователя","required":false,"type":"integer"},{"name":"date_from","in":"query","description":"Дата и время в формате ISO","required":true,"type":"string"},{"name":"date_to","in":"query","description":"Дата и время в формате ISO","required":true,"type":"string"},{"name":"outputs","in":"query","description":"Способ выгрузки","required":false,"type":"string","default":"json"},{"name":"email","in":"query","description":"Email пользователя","required":false,"type":"string"},{"name":"offset","in":"query","description":"Количество пропускаемых элементов","required":false,"type":"integer","default":0},{"name":"limit","in":"query","description":"Лимит выдаваемых элементов","required":false,"type":"integer","default":100},{"name":"finance_format","in":"query","description":"Формат вывода сумм","required":false,"type":"string","default":"int"}],"responses":{"200":{"description":"Параметры","schema":{"type":"object","properties":{"fio":{"title":"ФИО","type":"string"},"company_name":{"title":"Наименование работодателя","type":"string"},"company_inn":{"title":"ИНН работодателя","type":"string"},"total_withdraw_start":{"title":"Долг без комиссии на начало периода","type":"string"},"total_comission_start":{"title":"Неоплаченная комиссия на начало периода","type":"string"},"total_withdraw_end":{"title":"Долг без комиссии на конец периода","type":"string"},"total_comission_end":{"title":"Неоплаченная комиссия на конец периода","type":"string"},"debt_total":{"title":"Сумма снятий без комиссии за период)","type":"string"},"debt_return_total":{"title":"Сумма, которую пользователь вернул сервису без комиссии за период","type":"string"},"commission_return_total":{"title":"Комиссия, которую заплатил пользователь сервису за период","type":"string"},"details":{"title":"Детализация выписки","type":"array","items":{"type":"object","properties":{"datetime":{"title":"Дата и время операции","type":"string"},"amount":{"title":"Сумма","type":"number"},"description":{"title":"Назначение платежа","type":"number"}}}},"payment_total":{"title":"Начислено работодателем за период","type":"string"},"employees":{"title":"Данные по сотрудникам","type":"array","items":{"type":"object","properties":{"salary":{"title":"Оклад","type":"string"},"position":{"title":"Должность","type":"number"}}}},"total_ndfl":{"title":"НДФЛ","type":"string"},"meta":{"type":"object","properties":{"count_record":{"title":"Всего записей в детализации выписки","type":"integer"}}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/commission/":{"get":{"operationId":"api_v1_finance_commission_list","summary":"Получение комиссии для переданной суммы","description":"","parameters":[{"name":"amount","in":"query","description":"Сумма","type":"number"}],"responses":{"200":{"description":"Параметры","schema":{"type":"object","properties":{"commission_old":{"type":"number"},"commission_new":{"type":"number"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/message-box-types/":{"get":{"operationId":"api_v1_finance_message-box-types_list","summary":"Получение типов окон с сообщениями","description":"","parameters":[],"responses":{"200":{"description":""}},"tags":["api"]},"parameters":[]},"/api/v1/finance/message-box/":{"get":{"operationId":"api_v1_finance_message-box_list","summary":"Получение списка текстов для окон сообщений","description":"Мобильное API\nПолучение полного списка всех сохраненных\nв системе текстов для окон сообщения","parameters":[],"responses":{"200":{"description":"","schema":{"type":"array","items":{"$ref":"#/definitions/MessageBox"}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/message-box/{type}/":{"get":{"operationId":"api_v1_finance_message-box_read","summary":"Получение текста для окна сообщения по типу","description":"Мобильное API\nПолучение текста для окна сообщений для указаного типа сообщения","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/MessageBox"}}},"tags":["api"]},"parameters":[{"name":"type","in":"path","required":true,"type":"string"}]},"/api/v1/finance/operation-history-new/":{"get":{"operationId":"api_v1_finance_operation-history-new_list","summary":"Получение списка историй операций для нового дизайна","description":"","parameters":[],"responses":{"200":{"description":"Операции","schema":{"type":"array","items":{"type":"object","properties":{"id":{"title":"Идентификатор","type":"integer"},"type":{"title":"Тип","type":"string","enums":[["Debet","Входящая"],["Credit","Исходящая"]]},"payment_purpose":{"title":"Назначение платежа","type":"string"},"payment_method":{"title":"Способ оплаты","type":"string"},"is_salary":{"title":"Является ли зарплатой","type":"boolean"},"created":{"title":"Дата создания","type":"string","format":"date"},"executed":{"title":"Дата выполнения","type":"string","format":"date"},"amount":{"title":"Сумма операции","type":"number"},"status":{"title":"Статус","type":"string","enums":[[2,"Отправлено в банк"],[3,"Исполнено"],[6,"Не исполнено"]]},"commission":{"title":"Комиссия","type":"number"},"bank_name":{"title":"Банк","type":"string"},"withheld":{"title":"Сумма удержания","type":"string"}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/operation-history-new/{id}/":{"get":{"operationId":"api_v1_finance_operation-history-new_read","summary":"Получение детализации по операции для нового дизайна","description":"","parameters":[],"responses":{"200":{"description":"Операция","schema":{"type":"object","properties":{"id":{"title":"Идентификатор","type":"integer"},"type":{"title":"Тип","type":"string"},"payment_purpose":{"title":"Назначение платежа","type":"string"},"payment_method":{"title":"Способ оплаты","type":"string"},"is_salary":{"title":"Является ли зарплатой","type":"boolean"},"created":{"title":"Дата создания","type":"string","format":"date"},"executed":{"title":"Дата выполнения","type":"string","format":"date"},"amount":{"title":"Сумма операции","type":"number"},"status":{"title":"Статус","type":"string","enums":[[2,"Отправлено в банк"],[3,"Исполнено"],[6,"Не исполнено"]]},"commission":{"title":"Комиссия","type":"number"},"bank_name":{"title":"Банк","type":"string"},"withheld":{"title":"Сумма удержания","type":"string"},"detailed":{"type":"array","items":{"type":"object","properties":{"title":{"title":"Название","type":"string"},"amount":{"title":"Сумма","type":"string"},"note":{"title":"Примечание к строке","type":"string"},"is_style_bold":{"title":"Использовать жирный шрифт","type":"boolean"}}}}}}}},"tags":["api"]},"parameters":[{"name":"id","in":"path","description":"A unique integer value identifying this история операций.","required":true,"type":"integer"}]},"/api/v1/finance/operation-history/":{"get":{"operationId":"api_v1_finance_operation-history_list","summary":"Получение истории операций","description":"","parameters":[{"name":"id","in":"query","description":"Идентификатор записи","type":"integer"}],"responses":{"200":{"description":"Список операций","schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"payment_method":{"type":"string"},"payment_purpose_text":{"type":"string"},"is_salary":{"type":"boolean"},"created_date":{"type":"string","format":"date"},"amount":{"type":"number"}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/operation-history/{id}/":{"get":{"operationId":"api_v1_finance_operation-history_read","summary":"Получение детализации по операции","description":"","parameters":[{"name":"id","in":"path","description":"Идентификатор записи","required":true,"type":"integer"}],"responses":{"200":{"description":"Операция","schema":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"payment_purpose":{"type":"string"},"payment_method":{"type":"string"},"is_salary":{"type":"string"},"created_date":{"type":"string","format":"date"},"amount":{"type":"number"},"summa":{"title":"у начислений","type":"number"},"summa_name":{"title":"у начислений","type":"string"},"debt":{"title":"у начислений","type":"number"},"debt_name":{"title":"у начислений","type":"string"},"commission":{"type":"number"},"commission_name":{"type":"string"}}}}},"tags":["api"]},"parameters":[{"name":"id","in":"path","description":"A unique integer value identifying this история операций.","required":true,"type":"integer"}]},"/api/v1/finance/payment-method-types/":{"get":{"operationId":"api_v1_finance_payment-method-types_list","summary":"Получение типов начислений","description":"","parameters":[],"responses":{"200":{"description":""}},"tags":["api"]},"parameters":[]},"/api/v1/finance/payment-sheets/":{"get":{"operationId":"api_v1_finance_payment-sheets_list","summary":"Получение информации по расчетным листам за год","description":"Мобильное API\nПолучение списка расчетных листков за год","parameters":[{"name":"date","in":"query","description":"Дата и время в формате ISO","required":true,"type":"string"}],"responses":{"200":{"description":"Расчетные листы","schema":{"$ref":"#/definitions/PaymentSheetWrapper"}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/payment-sheets/{id}/":{"get":{"operationId":"api_v1_finance_payment-sheets_read","summary":"Получение информации по расчетному листу за месяц","description":"","parameters":[{"name":"id","in":"path","description":"Идентификатор записи","required":true,"type":"integer"}],"responses":{"200":{"description":"Расчетный лист","schema":{"$ref":"#/definitions/PaymentSheetDetail"}}},"tags":["api"]},"parameters":[{"name":"id","in":"path","description":"A unique integer value identifying this расчетный лист.","required":true,"type":"integer"}]},"/api/v1/finance/reminder/":{"get":{"operationId":"api_v1_finance_reminder_list","summary":"Получение напоминаний о зарплате завтра/авансе/отпуске","description":"","parameters":[],"responses":{"200":{"description":"Данные напоминания","schema":{"$ref":"#/definitions/Reminder"}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/requisite/":{"get":{"operationId":"api_v1_finance_requisite_list","summary":"Получение информации по реквизитам ДеньгиВперед","description":"","parameters":[],"responses":{"200":{"description":"Реквизиты деньги вперед","schema":{"$ref":"#/definitions/DVRequisite"}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/withdrawal-params/":{"get":{"operationId":"api_v1_finance_withdrawal-params_list","summary":"Получение параметров для функции \"Забрать деньги\"","description":"","parameters":[],"responses":{"200":{"description":"Параметры","schema":{"type":"object","properties":{"max_amount":{"type":"number"},"min_amount":{"type":"number"},"sum1":{"sum":{"type":"number"},"is_active":{"type":"boolean"}},"sum2":{"sum":{"type":"number"},"is_active":{"type":"boolean"}},"sum3":{"sum":{"type":"number"},"is_active":{"type":"boolean"}},"sum4":{"sum":{"type":"number"},"is_active":{"type":"boolean"}},"sum5":{"type":"number"},"commision_text":{"type":"string"},"commission_error_text":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/finance/withdrawal/":{"post":{"operationId":"api_v1_finance_withdrawal_create","summary":"Вывод средств","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"object","properties":{"amount":{"title":"Сумма","type":"number"}}}}],"responses":{"200":{"description":"NO_CONTENT"}},"tags":["api"]},"parameters":[]},"/api/v1/firebase/devices/":{"parameters":[]},"/api/v1/integration/activate/":{"post":{"operationId":"api_v1_integration_activate_create","description":"Подключение сотрудника к системе","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/IntegrationActivate"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/IntegrationActivate"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/deactivate/":{"post":{"operationId":"api_v1_integration_deactivate_create","description":"Отключение сотрудника от системы","parameters":[],"responses":{"201":{"description":""}},"tags":["api"]},"parameters":[]},"/api/v1/integration/employee-list/":{"post":{"operationId":"api_v1_integration_employee-list_create","summary":"Передача данных банковских реквизитов и расчетных дат последних взаиморасчетов","description":"Передача данных банковских реквизитов\nи расчетных дат последних взаиморасчетов","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/OrganizationInnKpp"}}],"responses":{"200":{"description":"Информация о банковских реквизитах и расчетных дат последних взаиморасчетов","schema":{"type":"object","properties":{"bank_props":{"type":"array","items":{"type":"object","properties":{"bik":{"type":"string"},"bank_name":{"type":"string"},"correspondent_account":{"type":"string"},"checking_account":{"type":"string"},"recipient":{"type":"string"},"client_inn":{"type":"string"},"client_kpp":{"type":"string"},"bank_inn":{"type":"string"},"bank_kpp":{"type":"string"},"individual_guid":{"type":"string","format":"uuid"}}}},"settlements":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"individual_guid":{"type":"string","format":"uuid"}}}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/refresh/":{"post":{"operationId":"api_v1_integration_refresh_create","description":"Отображение для обновления кадровых данных","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/IntegrationRefreshData"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/IntegrationRefreshData"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/request/":{"get":{"operationId":"api_v1_integration_request_list","summary":"Получение списка заявок на подключение физ. лиц от партнеров","description":"Список заявок на подключение физ. лиц от партнёров","parameters":[],"responses":{"200":{"description":"Заявки","schema":{"$ref":"#/definitions/ConnectionRequestCreate"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/request/individual-not-found/":{"post":{"operationId":"api_v1_integration_request_individual-not-found_create","summary":"Смена статуса заявок на \"Сотрудник не найден в базе работодателя\"","description":"Смена статуса заявок на \"Сотрудник не найден в базе работодателя\"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"array","items":{"title":"Расчётный счёт","type":"string"}}}],"responses":{"200":{"description":"NO_CONTENT"}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/bank-props/":{"post":{"operationId":"api_v1_integration_update_bank-props_create","description":"Обновление данных по банковским реквизитам","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockBankProps"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockBankProps"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/employee/":{"post":{"operationId":"api_v1_integration_update_employee_create","description":"Обновление кадровых данных (по сотруднику)","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockEmployee"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockEmployee"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/individual/":{"post":{"operationId":"api_v1_integration_update_individual_create","description":"Обновление данных физ.лиц","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockIndividual"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockIndividual"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/payments/":{"post":{"operationId":"api_v1_integration_update_payments_create","description":"Получение/обновление данных по расчетным листам","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockPaySheet"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockPaySheet"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/penalties/":{"post":{"operationId":"api_v1_integration_update_penalties_create","description":"Получение/обновление информации о взысканиях","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockPenalty"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockPenalty"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/settlements/":{"post":{"operationId":"api_v1_integration_update_settlements_create","description":"Обновление данных по взаиморасчетам с сотрудником","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockSettlement"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockSettlement"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/statement_file/{user_guid}/":{"post":{"operationId":"api_v1_integration_update_statement_file_create","description":"Класс обновления заявления на подключение.","parameters":[],"responses":{"201":{"description":""}},"tags":["api"]},"parameters":[{"name":"user_guid","in":"path","required":true,"type":"string"}]},"/api/v1/integration/update/timesheets/":{"post":{"operationId":"api_v1_integration_update_timesheets_create","description":"Получение/обновление информации о раскладке рабочих часов","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockTimesheet"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockTimesheet"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/vacation-remainder/":{"post":{"operationId":"api_v1_integration_update_vacation-remainder_create","description":"Обновление данных по остаткам дней отпуска","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockVacationRemainder"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockVacationRemainder"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/vacation/":{"post":{"operationId":"api_v1_integration_update_vacation_create","description":"Обновление данных по отпускам сотрудников","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockVacation"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockVacation"}}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/version/":{"post":{"operationId":"api_v1_integration_update_version_create","summary":"Получение версии плагина 1C","description":"Получение версии плагина 1C","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/PluginVersion1C"}}],"responses":{"200":{"description":"OK"}},"tags":["api"]},"parameters":[]},"/api/v1/integration/update/work-schedule/":{"post":{"operationId":"api_v1_integration_update_work-schedule_create","description":"Обновление данных по графику работы сотрудника","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/BlockWorkSchedule"}}],"responses":{"201":{"description":"","schema":{"$ref":"#/definitions/BlockWorkSchedule"}}},"tags":["api"]},"parameters":[]},"/api/v1/internal/individuals/":{"get":{"operationId":"api_v1_internal_individuals_list","summary":"Получение списка физ. лиц","description":"Возвращает список пользователей","parameters":[{"name":"offset","in":"query","description":"Отступ","type":"integer"},{"name":"limit","in":"query","description":"Количество записей","type":"integer"}],"responses":{"200":{"description":"Информация о балансе","schema":{"type":"object","properties":{"offset":{"title":"Отступ","type":"number"},"limit":{"title":"Количество записей","type":"number"},"size":{"title":"Общее количество записей","type":"number"},"items":{"title":"Список физ. лиц","type":"array","items":{"type":"object","properties":{"fio":{"title":"ФИО","type":"string"},"passport_series":{"title":"Серия паспорта","type":"string"},"passport_number":{"title":"Номер паспорта","type":"string"},"passport_issued_date":{"title":"Дата выдачи паспорта","type":"string"},"snils":{"title":"СНИЛС","type":"string"},"contract_number":{"title":"Номер договора","type":"string"},"company_inn":{"title":"ИНН компании","type":"string"},"company_kpp":{"title":"КПП компании","type":"string"},"company_name":{"title":"Наименование компании","type":"string"}}}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/internal/receipts/":{"get":{"operationId":"api_v1_internal_receipts_list","summary":"Получение списка чеков","description":"","parameters":[{"name":"date_from","in":"query","description":"Дата и время в формате ISO","required":false,"type":"string"},{"name":"date_to","in":"query","description":"Дата и время в формате ISO","required":false,"type":"string"},{"name":"offset","in":"query","description":"Количество пропускаемых элементов","required":false,"type":"integer","default":0},{"name":"limit","in":"query","description":"Лимит выдаваемых элементов","required":false,"type":"integer","default":500}],"responses":{"200":{"description":"","schema":{"type":"object","properties":{"TinyUrl":{"title":"Укороченный адрес для чека","type":"string"},"Email":{"title":"Почтовый адрес","type":"string"},"CalculationPlace":{"title":"Место проведения расчёта","type":"string"},"SettlePlace":{"title":"Место проведения сделки","type":"string"},"Items":{"title":"Операции, влияющие на сумму выплат","type":"array","items":{"type":"object","properties":{"Label":{"type":"string"},"Price":{"type":"string"},"Quantity":{"type":"string"},"Amount":{"type":"string","format":"date"},"Department":{"type":"string","format":"date"},"Vat":{"type":"string"},"EAN13":{"type":"string"},"AgentSign":{"type":"string"},"Method":{"type":"string"},"Object":{"type":"string"},"MeasurementUnit":{"type":"string"},"Code":{"type":"string"},"CalcVat":{"type":"string"},"VatDescription":{"type":"string"},"MethodName":{"type":"string"},"ObjectName":{"type":"string"},"AgentDescription":{"type":"string"},"AgentData":{"type":"string"},"PurveyorData":{"type":"string"},"Excise":{"type":"string"},"CountryOriginCode":{"type":"string"},"CustomsDeclarationNumber":{"type":"string"},"ProductCodeData":{"type":"object","properties":{"StampType":{"type":"string"},"GTIN":{"type":"string"},"SerialNumber":{"type":"string"},"CodeProductNomenclature":{"type":"string"}}}}}},"TaxationSystem":{"title":"Дата время исполнения","type":"string"},"Amounts":{"type":"object","properties":{"Electronic":{"type":"number"},"Cash":{"type":"number"},"AdvancePayment":{"type":"number"},"Credit":{"type":"number"},"Provision":{"type":"number"}}},"IsBso":{"title":"Признак заработной платы","type":"boolean"},"Currency":{"title":"Признак заработной платы","type":"boolean"},"CustomerInfo":{"title":"Комиссия","type":"integer"},"CustomerInn":{"title":"Банк","type":"integer"},"HasServices":{"title":"Сумма удержания","type":"integer"},"AgentSign":{"title":"Сумма удержания","type":"integer"},"EncryptedData":{"title":"Сумма удержания","type":"integer"},"Signature":{"title":"Сумма удержания","type":"integer"},"HasAgentData":{"title":"Сумма удержания","type":"integer"},"CashierName":{"title":"Сумма удержания","type":"integer"},"CashierInn":{"title":"Сумма удержания","type":"integer"},"PurveyorData":{"title":"Сумма удержания","type":"integer"},"AgentData":{"title":"Сумма удержания","type":"integer"},"DocumentNumber":{"title":"Сумма удержания","type":"integer"},"SessionNumber":{"title":"Сумма удержания","type":"integer"},"SessionCheckNumber":{"title":"Сумма удержания","type":"integer"},"FiscalSign":{"title":"Сумма удержания","type":"integer"},"FiscalDate":{"title":"Сумма удержания","type":"integer"},"DeviceNumber":{"title":"Сумма удержания","type":"integer"},"RegNumber":{"title":"Сумма удержания","type":"integer"},"FiscalNumber":{"title":"Сумма удержания","type":"integer"},"Ofd":{"title":"Сумма удержания","type":"integer"},"Url":{"title":"Сумма удержания","type":"integer"},"TestMode":{"title":"Сумма удержания","type":"integer"},"ClientAdress":{"title":"Сумма удержания","type":"integer"},"FfdVersion":{"title":"Сумма удержания","type":"integer"},"KkmModelName":{"title":"Сумма удержания","type":"integer"},"IsSmsDisabled":{"title":"Сумма удержания","type":"integer"},"ReceiptQrCodeUrl":{"title":"Сумма удержания","type":"integer"},"ReceiptOfdUrl":{"title":"Сумма удержания","type":"integer"},"OfdName":{"title":"Сумма удержания","type":"integer"},"OfdUrl":{"title":"Сумма удержания","type":"integer"},"OfdInn":{"title":"Сумма удержания","type":"integer"},"VatTotals":{"type":"object","properties":{"Vat":{"type":"integer"},"Label":{"type":"string"},"Amount":{"type":"string"}}},"TaxationSystemDescription":{"title":"Сумма удержания","type":"integer"}}}},"204":{"description":"Нет данных за выбранный интервал"}},"tags":["api"]},"parameters":[]},"/api/v1/internal/withdrawal-commissions/":{"get":{"operationId":"api_v1_internal_withdrawal-commissions_list","summary":"Получение размера комиссии на вывод средств","description":"Возвращает размер комиссии для пользователя на дату\nКомиссия - значение поля commission для любого Withdraw объекта пользователя на определенную дату","parameters":[{"name":"contract_number","in":"query","description":"Номер договора","required":true,"type":"string"},{"name":"date","in":"query","description":"Дата вывода (YYYY-MM-DD)","required":true,"type":"string"}],"responses":{"200":{"description":"Информация о комиссии","schema":{"type":"object","properties":{"commission":{"title":"Комиссия","type":"number"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/amplitude/":{"get":{"operationId":"api_v1_registration_amplitude_list","summary":"Получение аналитики для сервиса Амплитуда","description":"Мобильное API\nПолучение данных для отправки аналитики в сервис Амплитуда","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/UserAmplitude"}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/confirm-personal-data/":{"post":{"operationId":"api_v1_registration_confirm-personal-data_create","summary":"Подтверждение пользовательских данных","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"object","properties":{"email":{"title":"Email адрес","type":"string"}}}}],"responses":{"201":{"description":"","schema":{"type":"object","properties":{"email":{"title":"Email адрес","type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/me/":{"get":{"operationId":"api_v1_registration_me_list","summary":"Получение информации о текущем пользователе","description":"Мобильное API\nМетод для получения информации о текущем пользователем","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/CurrentUserInfo"}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/mobile-error-page-types/":{"get":{"operationId":"api_v1_registration_mobile-error-page-types_list","summary":"Получение типов окон ошибок","description":"","parameters":[],"responses":{"200":{"description":""}},"tags":["api"]},"parameters":[]},"/api/v1/registration/personal-data/":{"get":{"operationId":"api_v1_registration_personal-data_list","summary":"Получение данных пользователя","description":"","parameters":[],"responses":{"200":{"description":"Данные пользователя","schema":{"type":"object","properties":{"email":{"type":"string"},"fname":{"type":"string"},"iname":{"type":"string"},"oname":{"type":"string"},"birth_date":{"type":"string","format":"date-time"},"birth_place":{"type":"string"},"passport_series":{"type":"string"},"passport_number":{"type":"string"},"passport_issued_by":{"type":"string"},"passport_issued_date":{"type":"string","format":"date-time"},"checking_account":{"type":"string"},"correspondent_account":{"type":"string"},"bank_name":{"type":"string"},"bik":{"type":"string"},"client_inn":{"type":"string"},"client_kpp":{"type":"string"},"recipient":{"type":"string"},"company_name":{"type":"string"},"position":{"type":"string"},"salary":{"type":"number"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/photo/":{"parameters":[]},"/api/v1/registration/sms-code/":{"post":{"operationId":"api_v1_registration_sms-code_create","summary":"Отправка СМС с кодом на номер телефона","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"object","properties":{"phone":{"title":"Номер телефона","type":"string"},"device_id":{"title":"Идентификатор устройства","type":"string"}}}}],"responses":{"200":{"description":"NO_CONTENT"},"400":{"description":"Не удалось отправить sms","schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/technical-support-phone/":{"get":{"operationId":"api_v1_registration_technical-support-phone_list","summary":"Получение номера телефона техподдержки","description":"","parameters":[],"responses":{"200":{"description":"Номер телефона","schema":{"type":"object","properties":{"phone":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/token/":{"post":{"operationId":"api_v1_registration_token_create","summary":"Мобильное API\nМетод получения токена доступа к API после ввода кода из смс","description":"Возможные варианты ответа на запрос:\n\n1. Если физ.лицо с указанным номером телефона существует\n\n```\n{\n    \"type\": Тип события\n    \"next\": Идентификатор страницы, на которую необходимо совершить переход\n    \"phone\": Номер телефона (для отправки в intercom)\n    \"fio\": ФИО физ.лица (для отправки в intercom)\n    \"refresh\": refresh токен\n    \"access\": access токен\n    \"user_id\": Идентификатор физ.лица\n}\n```\n\n2. Если физ.лицо с указанным номером телефона не найдено\n\n```\n{\n    \"type\": Тип события\n    \"phone\": Номер телефона (для отправки в intercom)\n    \"token\": Токен для доступа к методам заявок (`/api/v1/statement/...`)\n    \"statement_id\": Идентификатор заявки\n}\n```","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/Token"}}],"responses":{"200":{"description":"Формат в описании метода"}},"tags":["api"]},"parameters":[]},"/api/v1/registration/user-agreement-document/":{"get":{"operationId":"api_v1_registration_user-agreement-document_list","summary":"Получение ссылки на скачивание документа пользовательского соглашения","description":"","parameters":[],"responses":{"200":{"description":"Ссылка на документ","schema":{"type":"object","properties":{"link":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/registration/validate-snils/":{"post":{"operationId":"api_v1_registration_validate-snils_create","summary":"Валидация СНИЛС","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"object","properties":{"snils":{"title":"СНИЛС","type":"string"}}}}],"responses":{"200":{"description":"NO_CONTENT"},"400":{"description":"Обнаружены несоответствия","schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/settings/bank-details/":{"get":{"operationId":"api_v1_settings_bank-details_list","summary":"Получение данных о банковских реквизитах","description":"","parameters":[],"responses":{"200":{"description":"Банковские ревизиты","schema":{"type":"object","properties":{"fname":{"type":"string"},"iname":{"type":"string"},"oname":{"type":"string"},"checking_account":{"type":"string"},"correspondent_account":{"type":"string"},"bank_name":{"type":"string"},"bik":{"type":"string"},"payment_pending_title":{"type":"string"},"payment_pending_subtitle":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/settings/convert/":{"post":{"operationId":"api_v1_settings_convert_create","summary":"Присвоение объекта текущему пользователю","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"object","properties":{"id":{"title":"ID визитора или лида","type":"string"},"type":{"title":"Тип объекта","type":"string"}}}}],"responses":{"200":{"description":"NO_CONTENT"}},"tags":["api"]},"parameters":[]},"/api/v1/settings/email/":{"get":{"operationId":"api_v1_settings_email_list","summary":"Получение email пользователя","description":"","parameters":[],"responses":{"200":{"description":"Email","schema":{"type":"object","properties":{"email":{"type":"string"}}}}},"tags":["api"]},"post":{"operationId":"api_v1_settings_email_create","summary":"Редактирование email пользователя","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"type":"object","properties":{"email":{"title":"Email адрес","type":"string"}}}}],"responses":{"200":{"description":"NO_CONTENT"}},"tags":["api"]},"parameters":[]},"/api/v1/settings/faq/":{"get":{"operationId":"api_v1_settings_faq_list","summary":"Получение списка часто задаваемых вопросов","description":"","parameters":[],"responses":{"200":{"description":"Список часто задаваемых вопросов","schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"index_number":{"type":"integer"},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"index_number":{"type":"integer"}}}}}}}}},"tags":["api"]},"parameters":[]},"/api/v1/settings/phone/":{"get":{"operationId":"api_v1_settings_phone_list","summary":"Получение номера телефона пользователя","description":"","parameters":[],"responses":{"200":{"description":"Номер телефона","schema":{"type":"object","properties":{"phone":{"type":"string"}}}}},"tags":["api"]},"parameters":[]},"/api/v1/statement/bank-props/":{"get":{"operationId":"api_v1_statement_bank-props_list","summary":"Получение банковских реквизитов заявителя","description":"","parameters":[],"responses":{"200":{"description":"Банковские реквизиты заявителя","schema":{"$ref":"#/definitions/StatementBankPropsStage"}}},"tags":["api"]},"post":{"operationId":"api_v1_statement_bank-props_create","summary":"Сохранение банковских реквизитов заявителя","description":"","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/StatementBankPropsStage"}}],"responses":{"204":{"description":"NO_CONTENT"},"400":{"description":"Ошибка валидации","schema":{"$ref":"#/definitions/MobileException"}}},"tags":["api"]},"parameters":[]},"/api/v1/statement/check-statement-status/":{"get":{"operationId":"api_v1_statement_check-statement-status_list","summary":"Проверка статуса заявки и обмен токена","description":"Проверка статуса заявки\nВ случае успешного принятия заявки и создания физ.лица\nпроизводим обмен токена заявки на токены физ.лица","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/StatementTokenExchange"}},"403":{"description":"Заявка еще не принята"}},"tags":["api"]},"parameters":[]},"/api/v1/statement/email/":{"get":{"operationId":"api_v1_statement_email_list","summary":"Получение email","description":"Мобильное API\nМетод сохранения email при регистрации физ.лица","parameters":[],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/StatementEmail"}}},"tags":["api"]},"post":{"operationId":"api_v1_statement_email_create","summary":"Сохранение email","description":"Мобильное API\nМетод сохранения email при регистрации физ.лица","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/StatementEmail"}}],"responses":{"204":{"description":"NO_CONTENT"},"400":{"description":"Ошибка валидации","schema":{"$ref":"#/definitions/MobileException"}}},"tags":["api"]},"parameters":[]},"/api/v1/statement/work-place/":{"get":{"operationId":"api_v1_statement_work-place_list","summary":"Получение места работы","description":"Мобильное API\nМетоды отправки и получения информации о месте работы","parameters":[],"responses":{"200":{"description":"Место работы","schema":{"$ref":"#/definitions/StatementWorkPlace"}},"400":{"description":"Ошибка валидации","schema":{"$ref":"#/definitions/MobileException"}},"404":{"description":"Запись не найдена","schema":{"$ref":"#/definitions/MobileException"}}},"tags":["api"]},"post":{"operationId":"api_v1_statement_work-place_create","summary":"Сохранение места работы","description":"Мобильное API\nМетоды отправки и получения информации о месте работы","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/StatementWorkPlace"}}],"responses":{"204":{"description":"NO_CONTENT"},"400":{"description":"Ошибка валидации","schema":{"$ref":"#/definitions/MobileException"}},"404":{"description":"Запись не найдена","schema":{"$ref":"#/definitions/MobileException"}}},"tags":["api"]},"parameters":[]},"/api/v1/statement/work/":{"post":{"operationId":"api_v1_statement_work_create","summary":"Сохранение выбранного места работы","description":"Метод мобильного API\nСохранение выбранного места работы","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/StatementWorkStage"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/MessageBox"}},"201":{"description":"NO_CONTENT"}},"tags":["api"]},"parameters":[]},"/api/v1/statement/work/all/":{"post":{"operationId":"api_v1_statement_work_all_create","summary":"Сохранение выбранного места работы (инн, кпп, адрес и название)","description":"Метод мобильного API\nСохранение выбранного места работы\n(всегда получем 4 поля (инн, кпп, адрес, название)\nесли по инн/кпп есть работодаетль, то привязываем его,\nиначе просто заполняем 4 поля","parameters":[{"name":"data","in":"body","required":true,"schema":{"$ref":"#/definitions/StatementAllWorkStage"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/MessageBox"}},"201":{"description":"NO_CONTENT"}},"tags":["api"]},"parameters":[]},"/api/v1/version":{"parameters":[]}},"definitions":{"TokenObtainPair":{"required":["phone","password"],"type":"object","properties":{"phone":{"title":"Phone","type":"string","minLength":1},"password":{"title":"Password","type":"string","minLength":1}}},"TokenRefresh":{"required":["refresh"],"type":"object","properties":{"refresh":{"title":"Refresh","type":"string","minLength":1}}},"Company":{"required":["name"],"type":"object","properties":{"id":{"title":"ID","type":"integer","readOnly":true},"name":{"title":"Наименование","type":"string","maxLength":512,"minLength":1},"inn":{"title":"ИНН организации","type":"string","maxLength":12},"kpp":{"title":"КПП организации","type":"string","maxLength":16},"registration_address":{"title":"Адрес регистрации","type":"string"}}},"CompanyUpdate":{"type":"object","properties":{"partner_status":{"title":"Статус компании (для партнера)","type":"string","enum":["awaited","waiting","waiting_integration","employee_onboarding","active","inactive"],"x-nullable":true}}},"Alert":{"required":["type"],"type":"object","properties":{"id":{"title":"ID","type":"integer","readOnly":true},"type":{"title":"Тип","type":"string","minLength":1},"title":{"title":"Название","type":"string"},"short_description":{"title":"Краткое описание","type":"string"},"detailed_description":{"title":"Полное описание","type":"string"}}},"MessageBox":{"required":["type","title","description"],"type":"object","properties":{"type":{"title":"Тип","type":"integer","enum":[1,2,3,4,5,6,7,8,9,20,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25]},"title":{"title":"Заголовок","type":"string","maxLength":255,"minLength":1},"description":{"title":"Описание","type":"string","minLength":1}}},"PaymentSheetWrapper":{"required":["fname","iname","oname"],"type":"object","properties":{"fname":{"title":"Fname","type":"string","minLength":1},"iname":{"title":"Iname","type":"string","minLength":1},"oname":{"title":"Oname","type":"string"},"withdraws_amount_name":{"title":"Название поля с ранними выводами","type":"string","readOnly":true},"commissions_amount_name":{"title":"Название поля с комиссией","type":"string","readOnly":true},"salary_name":{"title":"Название поля с окладом","type":"string","readOnly":true},"accruals_amount_name":{"title":"Название поля с суммой выплат","type":"string","readOnly":true},"deductions_amount_name":{"title":"Название поля с суммой удержаний","type":"string","readOnly":true},"amount_name":{"title":"Название поля с суммой начислений, за вычетом суммы удержаний","type":"string","readOnly":true},"payments_amount_name":{"title":"Название поля с суммой начислений","type":"string","readOnly":true}}},"Accrual":{"title":"Список выплат","required":["name","amount"],"type":"object","properties":{"name":{"title":"Наименование вида выплаты","type":"string","maxLength":100,"minLength":1},"amount":{"title":"Amount","type":"string","format":"decimal"},"days":{"title":"Количество отработанных дней","type":"string","format":"decimal","x-nullable":true},"hours":{"title":"Количество отработанных часов","type":"string","format":"decimal","x-nullable":true}}},"Deduction":{"title":"Список удержаний","required":["name","amount"],"type":"object","properties":{"name":{"title":"Наименование вида удержания","type":"string","maxLength":100,"minLength":1},"amount":{"title":"Amount","type":"string","format":"decimal"}}},"Payment":{"title":"Список начислений","required":["name","amount"],"type":"object","properties":{"name":{"title":"Наименование вида начисления","type":"string","maxLength":100,"minLength":1},"amount":{"title":"Amount","type":"string","format":"decimal"}}},"PaymentSheetDetail":{"required":["contribution_pfr","contribution_fss","contribution_accident_fss","contribution_ffoms","fname","iname","oname"],"type":"object","properties":{"accruals":{"type":"array","items":{"$ref":"#/definitions/Accrual"},"readOnly":true},"deductions":{"type":"array","items":{"$ref":"#/definitions/Deduction"},"readOnly":true},"payments":{"type":"array","items":{"$ref":"#/definitions/Payment"},"readOnly":true},"contribution_pfr":{"title":"Сумма взносов в ПФР","type":"string","format":"decimal"},"contribution_fss":{"title":"Сумма взносов в ФСС","type":"string","format":"decimal"},"contribution_accident_fss":{"title":"Сумма взносов в ФСС (травматизм)","type":"string","format":"decimal"},"contribution_ffoms":{"title":"Сумма взносов в ФФОМС","type":"string","format":"decimal"},"date":{"title":"Дата","type":"string","readOnly":true},"fname":{"title":"Fname","type":"string","minLength":1},"iname":{"title":"Iname","type":"string","minLength":1},"oname":{"title":"Oname","type":"string"},"salary":{"title":"Оклад","type":"string","readOnly":true},"position":{"title":"Должность","type":"string","readOnly":true},"accruals_amount":{"title":"Общая сумма выплат","type":"string","readOnly":true},"deductions_amount":{"title":"Общая сумма удержаний","type":"string","readOnly":true},"payments_amount":{"title":"Общая сумма начислений","type":"string","readOnly":true},"withdraws_amount":{"title":"Общая сумма ранних выводов","type":"string","readOnly":true},"commissions_amount":{"title":"Общая сумма комиссий","type":"string","readOnly":true}}},"Reminder":{"required":["text"],"type":"object","properties":{"type":{"title":"Тип","type":"string","enum":["SALARY","ADVANCE","VACATION","TARIFF"]},"text":{"title":"Текст","type":"string","minLength":1},"background_image":{"title":"Изображение для заднего фона","type":"string","readOnly":true,"x-nullable":true,"format":"uri"}}},"DVRequisite":{"required":["name","inn","bank_name","bik","nml_corr_account_number","nml_account_number"],"type":"object","properties":{"name":{"title":"Наименование владельца счетов","type":"string","maxLength":512,"minLength":1},"inn":{"title":"ИНН","type":"string","maxLength":12,"minLength":1},"kpp":{"title":"КПП","type":"string","maxLength":9},"bank_name":{"title":"Наименование банка","type":"string","maxLength":512,"minLength":1},"bik":{"title":"БИК","type":"string","maxLength":9,"minLength":1},"nml_corr_account_number":{"title":"Номер к/с","type":"string","maxLength":22,"minLength":1},"nml_account_number":{"title":"Номер р/с","type":"string","maxLength":22,"minLength":1},"payment_purpose":{"title":"Назначение платежа","type":"string","readOnly":true}}},"BlockNorthernHardshipBonus":{"title":"Бонусы за тяжелые условия севера","required":["start_date","expiration_date","rate"],"type":"object","properties":{"start_date":{"title":"Дата и время начала","type":"string","format":"date-time"},"expiration_date":{"title":"Дата и время окончания","type":"string","format":"date-time"},"rate":{"title":"Коэффициент","type":"string","format":"decimal"}}},"BlockIndividual":{"title":"Данные физ.лица","required":["organization","fname","iname","gender","snils","birth_date","doc_series","doc_number","doc_issued_date"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_external_id":{"title":"Внешний идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"phone":{"title":"Телефон","type":"string","maxLength":128},"email":{"title":"Email","type":"string","format":"email"},"fname":{"title":"Фамилия","type":"string","minLength":1},"iname":{"title":"Имя","type":"string","minLength":1},"oname":{"title":"Отчество","type":"string"},"gender":{"title":"Пол","description":"Допустимые значения: 1 (Мужской), 2 (Женский)","type":"string"},"inn":{"title":"ИНН","type":"string","maxLength":12},"snils":{"title":"СНИЛС","type":"string","maxLength":14,"minLength":1},"birth_date":{"title":"Дата рождения","type":"string","format":"date-time"},"birth_place":{"title":"Место рождения","type":"string","maxLength":240},"citizenship":{"title":"Гражданство","type":"string","maxLength":60},"doc_kind":{"title":"Вид документа","type":"string","maxLength":150},"doc_series":{"title":"Серия документа","type":"string","maxLength":14,"minLength":1},"doc_number":{"title":"Номер документа","type":"string","maxLength":14,"minLength":1},"doc_issued_by":{"title":"Место выдачи документа","type":"string","maxLength":200},"doc_issued_date":{"title":"Дата выдачи документа","type":"string","format":"date-time"},"doc_department_code":{"title":"Код подразделения","type":"string","maxLength":150},"doc_expired_at":{"title":"Срок окончания действия документа","type":"string","format":"date-time","x-nullable":true},"reg_address":{"title":"Адрес регистрации","type":"string","maxLength":500},"fact_address":{"title":"Адрес фактического проживания","type":"string","maxLength":500},"education_kind":{"title":"Вид образования","type":"string","maxLength":70},"posthigh_education_kind":{"title":"Вид послевузовского образования","type":"string","maxLength":70},"institution":{"title":"Учебное заведение","type":"string","maxLength":150},"speciality":{"title":"Специальность","type":"string","maxLength":100},"qualification":{"title":"Квалификация","type":"string","maxLength":100},"regional_premium_rate":{"title":"Районный коэффициент","type":"string","format":"decimal","x-nullable":true},"northern_hardship_bonus":{"type":"array","items":{"$ref":"#/definitions/BlockNorthernHardshipBonus"},"default":[]}}},"BlockEmployee":{"title":"Кадровые данные","required":["organization","admission_date","salary"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_external_id":{"title":"Внешний идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"employee_external_id":{"title":"Внешний идентификатор сотрудника","type":"string","minLength":1,"x-nullable":true},"employee_guid":{"title":"Идентификатор сотрудника","type":"string","format":"uuid","x-nullable":true},"tab_num":{"title":"Табельный номер","type":"string","maxLength":64},"department":{"title":"Подразделение","type":"string","maxLength":150},"position":{"title":"Должность","type":"string","maxLength":150},"is_combined":{"title":"Признак совместительства","type":"boolean","default":false},"count":{"title":"Количество ставок","type":"string","format":"decimal","default":"1.00000000000000000000"},"admission_date":{"title":"Дата приема на работу","type":"string","format":"date-time"},"probation_end_date":{"title":"Дата окончания испытательного периода","type":"string","format":"date-time","x-nullable":true},"salary":{"title":"Оклад","type":"string","format":"decimal"},"planned_deduction":{"title":"Сумма планируемых удержаний","type":"string","format":"decimal","x-nullable":true},"deduction_rate":{"title":"Процент удержаний","type":"string","format":"decimal","x-nullable":true},"termination_date":{"title":"Дата увольнения","type":"string","format":"date-time","x-nullable":true},"tax_rate":{"title":"Налоговая ставка","type":"string","format":"decimal","x-nullable":true}}},"BlockBankProps":{"title":"Банковские реквизиты","required":["organization","bik","bank_name","checking_account"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_external_id":{"title":"Внешний идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"is_active":{"title":"Признак актуальности","type":"boolean","default":true},"bik":{"title":"БИК","type":"string","maxLength":9,"minLength":1},"inn":{"title":"ИНН","type":"string","maxLength":12},"kpp":{"title":"КПП","type":"string","maxLength":9},"bank_name":{"title":"Наименование банка","type":"string","maxLength":100,"minLength":1},"correspondent_account":{"title":"Корреспондентский счет","type":"string","maxLength":20},"checking_account":{"title":"Расчетный счет","type":"string","maxLength":20,"minLength":1},"fio":{"title":"ФИО получателя","type":"string","maxLength":512,"x-nullable":true}}},"BlockPayment":{"title":"Список начислений","required":["guid","name","period","days"],"type":"object","properties":{"guid":{"title":"Идентификатор начисления","type":"string","maxLength":255,"minLength":1},"name":{"title":"Наименование вида начисления","type":"string","maxLength":100,"minLength":1},"period":{"title":"Дата регистрации начисления в системе","type":"string","format":"date-time"},"days":{"title":"Количество отработанных дней","type":"string","format":"decimal"},"hours":{"title":"Количество отработанных часов","type":"string","format":"decimal","default":"0.00"},"result":{"title":"Сумма начисления","type":"string","format":"decimal","default":"0.00"}}},"BlockDeduction":{"title":"Список удержаний","required":["guid","name","period","result"],"type":"object","properties":{"guid":{"title":"Идентификатор удержания","type":"string","maxLength":255,"minLength":1},"name":{"title":"Наименование вида удержания","type":"string","maxLength":100,"minLength":1},"period":{"title":"Дата регистрации удержания в системе","type":"string","format":"date-time"},"result":{"title":"Сумма удержания","type":"string","format":"decimal"}}},"BlockAccrued":{"title":"Список выплат","required":["guid","name","period","result"],"type":"object","properties":{"guid":{"title":"Идентификатор выплаты","type":"string","maxLength":255,"minLength":1},"name":{"title":"Представление документа выплаты","type":"string","maxLength":100,"minLength":1},"period":{"title":"Период выплаты","type":"string","format":"date-time"},"result":{"title":"Сумма выплаты","type":"string","format":"decimal"}}},"BlockPaySheet":{"title":"Список расчетных листов сотрудника за последние 12 месяцев","required":["organization","period","payments","deductions","accrueds"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"period":{"title":"Месяц расчета зарплаты","type":"string","format":"date-time"},"contribution_pfr":{"title":"Сумма взносов в ПФР","type":"string","format":"decimal","default":"0.00"},"contribution_fss":{"title":"Сумма взносов в ФСС","type":"string","format":"decimal","default":"0.00"},"contribution_accident_fss":{"title":"Сумма взносов в ФСС (травматизм)","type":"string","format":"decimal","default":"0.00"},"contribution_ffoms":{"title":"Сумма взносов в ФФОМС","type":"string","format":"decimal","default":"0.00"},"average_salary":{"title":"Сумма среднего заработка","type":"string","format":"decimal","default":"0.00"},"payments":{"type":"array","items":{"$ref":"#/definitions/BlockPayment"}},"deductions":{"type":"array","items":{"$ref":"#/definitions/BlockDeduction"}},"accrueds":{"type":"array","items":{"$ref":"#/definitions/BlockAccrued"}}}},"BlockSettlement":{"title":"Взаиморасчеты сотрудника","required":["organization","name","period","rev"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_external_id":{"title":"Внешний идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1,"x-nullable":true},"document_external_id":{"title":"Внешний идентификатор документа","type":"string","minLength":1,"x-nullable":true},"document_guid":{"title":"Идентификатор документа, изменившего состояние взаиморасчетов с физ.лицом","type":"string","maxLength":255,"minLength":1,"x-nullable":true},"name":{"title":"Представление регистратора","type":"string","maxLength":100,"minLength":1},"period":{"title":"Дата получения остатков взаиморасчетов","type":"string","format":"date-time"},"payment_method":{"title":"Вид выплаты из ведомости","type":"string"},"rev":{"title":"Оборот","type":"string","format":"decimal"},"remainder":{"title":"Остаток задолженности перед сотрудником","type":"string","format":"decimal","default":"0.00"},"Income_code":{"title":"Код дохода","type":"string","maxLength":5,"x-nullable":true},"Payment_order_code":{"title":"Номер платежа","type":"string","maxLength":10},"Payment_order_date":{"title":"Дата платежа","type":"string","format":"date-time","x-nullable":true}}},"BlockVacationRemainder":{"title":"Остатки отпусков","required":["organization","employee_guid","count"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"employee_guid":{"title":"Идентификатор сотрудника","type":"string","format":"uuid"},"count":{"title":"Остаток дней отпуска","type":"integer"}}},"BlockWorkScheduleDay":{"title":"Список дней","required":["date","hours"],"type":"object","properties":{"date":{"title":"День","type":"string","format":"date-time"},"hours":{"title":"Количество запланированных часов","type":"string","format":"decimal"},"is_holiday":{"title":"Признак выходного (нерабочего) дня","type":"boolean","default":false}}},"BlockWorkSchedule":{"title":"График работы","required":["organization","year","month","days"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"employee_external_id":{"title":"Внешний идентификатор сотрудника","type":"string","minLength":1,"x-nullable":true},"employee_guid":{"title":"Идентификатор сотрудника","type":"string","format":"uuid","x-nullable":true},"year":{"title":"Год","type":"integer","maximum":9999},"month":{"title":"Месяц","type":"integer","maximum":12},"days":{"type":"array","items":{"$ref":"#/definitions/BlockWorkScheduleDay"}}}},"IntegrationActivate":{"required":["organization","individual","employee","bank_props","settlements"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual":{"$ref":"#/definitions/BlockIndividual"},"employee":{"type":"array","items":{"$ref":"#/definitions/BlockEmployee"}},"bank_props":{"type":"array","items":{"$ref":"#/definitions/BlockBankProps"}},"payment_sheets":{"type":"array","items":{"$ref":"#/definitions/BlockPaySheet"},"default":[]},"settlements":{"type":"array","items":{"$ref":"#/definitions/BlockSettlement"}},"vacation_remainder":{"$ref":"#/definitions/BlockVacationRemainder"},"work_schedule":{"$ref":"#/definitions/BlockWorkSchedule"}}},"OrganizationInnKpp":{"required":["organization"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1}}},"IntegrationRefreshData":{"required":["organization","individual","employee","bank_props"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual":{"$ref":"#/definitions/BlockIndividual"},"employee":{"type":"array","items":{"$ref":"#/definitions/BlockEmployee"}},"bank_props":{"type":"array","items":{"$ref":"#/definitions/BlockBankProps"}},"work_schedule":{"$ref":"#/definitions/BlockWorkSchedule"},"settlements":{"type":"array","items":{"$ref":"#/definitions/BlockSettlement"},"x-nullable":true}}},"ConnectionRequestCreate":{"required":["fname","iname","oname","birth_date","doc_series","doc_number","checking_account","status","phoneNumber"],"type":"object","properties":{"fname":{"title":"Фамилия","type":"string","maxLength":150},"iname":{"title":"Имя","type":"string","maxLength":30},"oname":{"title":"Отчество","type":"string","maxLength":150},"birth_date":{"title":"Дата рождения","type":"string","format":"date"},"inn":{"title":"ИНН работодателя","type":"string","maxLength":12,"x-nullable":true},"doc_series":{"title":"Серия паспорта","type":"string","maxLength":14,"minLength":1},"doc_number":{"title":"Номер паспорта","type":"string","maxLength":14,"minLength":1},"checking_account":{"title":"Расчетный счет физического лица","type":"string","maxLength":64,"minLength":1},"status":{"title":"Статус","type":"string","enum":["1","2","3","4","5","6","7","8","101","102","701","201"]},"phoneNumber":{"title":"Телефон","type":"string","maxLength":128,"minLength":1}}},"PenaltyRow":{"title":"Список взысканий","required":["date","sum"],"type":"object","properties":{"date":{"title":"Дата взыскания","type":"string","format":"date-time"},"sum":{"title":"Сумма взыскания","type":"string","format":"decimal"}}},"BlockPenalty":{"required":["organization","individual_guid","employee_guid","rows"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1},"employee_guid":{"title":"Идентификатор сотрудника","type":"string","minLength":1},"rows":{"type":"array","items":{"$ref":"#/definitions/PenaltyRow"}}}},"TimesheetRow":{"title":"Список дней","required":["date","sum"],"type":"object","properties":{"date":{"title":"Дата взыскания","type":"string","format":"date-time"},"hours":{"title":"Кол-во отработанных часов","type":"string","format":"decimal","x-nullable":true},"sum":{"title":"Сумма взыскания","type":"string","format":"decimal"}}},"BlockTimesheet":{"required":["organization","individual_guid","type","rows"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"individual_guid":{"title":"Идентификатор физ.лица","type":"string","minLength":1},"type":{"title":"Тип табеля","description":"Допустимые значения: HOURLY (Почасовой), DAYLY (Посуточный)","type":"string"},"rows":{"type":"array","items":{"$ref":"#/definitions/TimesheetRow"}}}},"BlockVacation":{"required":["organization","start_date","end_date"],"type":"object","properties":{"organization":{"title":"ИНН/КПП организации","type":"string","maxLength":22,"minLength":1},"vacation_external_id":{"title":"Внешний идентификатор отпуска","type":"string","minLength":1,"x-nullable":true},"guid":{"title":"Идентификатор отпуска","type":"string","maxLength":255,"minLength":1,"x-nullable":true},"employee_external_id":{"title":"Внешний идентификатор сотрудника","type":"string","minLength":1,"x-nullable":true},"employee_guid":{"title":"Идентификатор сотрудника","type":"string","format":"uuid","x-nullable":true},"unpaid":{"title":"Признак неоплачиваемого отпуска","type":"boolean","default":false},"start_date":{"title":"Дата начала отпуска","type":"string","format":"date-time"},"end_date":{"title":"Дата окончания отпуска","type":"string","format":"date-time"}}},"PluginVersion1C":{"required":["organization","plugin_version","platform_version","configuration_version"],"type":"object","properties":{"organization":{"title":"ИНН/КПП","type":"string","maxLength":64,"minLength":1},"plugin_version":{"title":"Версия плагина 1C","type":"string","maxLength":16,"minLength":1},"platform_version":{"title":"Версия платформы 1C","type":"string","maxLength":16,"minLength":1},"configuration_version":{"title":"Версия конфигурации 1C","type":"string","maxLength":128,"minLength":1}}},"LKEmployeeCreateWithdrawRequest":{"required":["id","type","amount"],"type":"object","properties":{"id":{"title":"Идентификатор сотрудника","type":"integer"},"type":{"title":"Тип начисления","description":"Допустимые значения: SALARY (Зарплата), ADVANCE (Аванс), BONUS (Премия), VACATION (Отпускной), HOSPITAL (Больничный), DISMISSAL (Увольнение), OTHER (Прочее)","type":"string"},"amount":{"title":"Сумма начисления","type":"string","format":"decimal"}}},"LKUserCompany":{"required":["name"],"type":"object","properties":{"id":{"title":"ID","type":"integer","readOnly":true},"name":{"title":"Наименование","type":"string","maxLength":512,"minLength":1},"inn":{"title":"ИНН организации","type":"string","maxLength":12},"kpp":{"title":"КПП организации","type":"string","maxLength":16}}},"LKUserPhone":{"title":"Пользователи","required":["phone"],"type":"object","properties":{"phone":{"title":"Номера телефона","type":"string","maxLength":128,"minLength":1}}},"LKCompanyRequest":{"required":["inn","name","users"],"type":"object","properties":{"inn":{"title":"ИНН работодателя","type":"string","maxLength":12,"minLength":1},"kpp":{"title":"КПП организации","type":"string","maxLength":16},"name":{"title":"Наименование работодателя","type":"string","maxLength":512,"minLength":1},"payroll_day":{"title":"День зарплаты","type":"integer","maximum":2147483647,"minimum":-2147483648,"x-nullable":true},"users":{"type":"array","items":{"$ref":"#/definitions/LKUserPhone"}}}},"LKCompany":{"title":"Доступные работодатели","required":["inn","name"],"type":"object","properties":{"inn":{"title":"Inn","type":"string","minLength":1},"name":{"title":"Name","type":"string","minLength":1}}},"LKUserCreateRelatedUser":{"required":["phone","companies"],"type":"object","properties":{"id":{"title":"Идентификатор заявки","type":"integer","x-nullable":true},"fname":{"title":"Фамилия","type":"string","maxLength":150},"iname":{"title":"Имя","type":"string","maxLength":30},"oname":{"title":"Отчество","type":"string","maxLength":150},"position":{"title":"Должность","type":"string","maxLength":150},"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1},"email":{"title":"Email адрес","type":"string","format":"email","maxLength":150},"companies":{"type":"array","items":{"$ref":"#/definitions/LKCompany"}},"is_accepted":{"title":"Признак акцепта заявки","type":"boolean","x-nullable":true}}},"LKDashboardCompany":{"required":["name"],"type":"object","properties":{"id":{"title":"ID","type":"integer","readOnly":true},"name":{"title":"Наименование","type":"string","maxLength":512,"minLength":1},"inn":{"title":"ИНН организации","type":"string","maxLength":12},"kpp":{"title":"КПП организации","type":"string","maxLength":16},"days_before_payroll":{"title":"Дней до зарплаты","type":"string","readOnly":true},"number_of_employees":{"title":"Сотрудников добавлено","type":"integer","readOnly":true}}},"LKCompanyModel":{"required":["name"],"type":"object","properties":{"id":{"title":"ID","type":"integer","readOnly":true},"name":{"title":"Наименование","type":"string","maxLength":512,"minLength":1},"inn":{"title":"ИНН организации","type":"string","maxLength":12},"kpp":{"title":"КПП организации","type":"string","maxLength":16},"rows":{"title":"Список сотрудников","type":"string","readOnly":true}}},"LKEmployeeDocument":{"title":"Паспорт сотрудника","required":["kind","number","issued_date"],"type":"object","properties":{"kind":{"title":"Вид документа","type":"string","maxLength":150,"minLength":1},"series":{"title":"Серия","type":"string","maxLength":14},"number":{"title":"Номер","type":"string","maxLength":14,"minLength":1},"issued_date":{"title":"Когда выдан","type":"string","format":"date"},"department_code":{"title":"Код подразделения","type":"string","maxLength":15},"issued_by":{"title":"Кем выдан","type":"string","maxLength":200}}},"LKEmployeeData":{"title":"Кадровые данные","type":"object","properties":{"tab_num":{"title":"Табельный номер","type":"string","maxLength":64},"position":{"title":"Должность","type":"string","maxLength":150},"department":{"title":"Подразделение","type":"string","maxLength":150},"salary":{"title":"Оклад (тариф)","type":"string","format":"decimal"},"admission_date":{"title":"Дата начала работы","type":"string","format":"date","x-nullable":true},"work_schedule":{"title":"График работы","description":"Допустимые значения: 1 (5/2)","type":"string","default":{"id":1,"name":"5/2","all":[[1,"5/2"]]}}}},"LKEmployeeBankProps":{"title":"Банковские реквизиты","required":["bank_name","correspondent_account","checking_account"],"type":"object","properties":{"bik":{"title":"БИК","type":"string","maxLength":9},"bank_name":{"title":"Наименование банка","type":"string","maxLength":128,"minLength":1},"correspondent_account":{"title":"Номер корреспондентского счета","type":"string","maxLength":64,"minLength":1},"checking_account":{"title":"Номер расчетного счета","type":"string","maxLength":64,"minLength":1}}},"LKUserCreate":{"required":["phone","document","employee","bank_props"],"type":"object","properties":{"gender":{"title":"Пол","type":"integer","enum":[1,2]},"fname":{"title":"Фамилия","type":"string","maxLength":150},"iname":{"title":"Имя","type":"string","maxLength":30},"oname":{"title":"Отчество","type":"string","maxLength":150},"birth_date":{"title":"Дата рождения","type":"string","format":"date","x-nullable":true},"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1},"email":{"title":"Email адрес","type":"string","format":"email","maxLength":150},"snils":{"title":"СНИЛС","type":"string","maxLength":14,"x-nullable":true},"reg_address":{"title":"Адрес регистрации","type":"string"},"company_id":{"title":"Идентификатор работодателя","type":"integer","x-nullable":true},"limit_coefficient":{"title":"Коэффициент лимита снятия","type":"string","format":"decimal"},"document":{"$ref":"#/definitions/LKEmployeeDocument"},"employee":{"$ref":"#/definitions/LKEmployeeData"},"bank_props":{"$ref":"#/definitions/LKEmployeeBankProps"}}},"LKUserEntrypoint":{"required":["phone"],"type":"object","properties":{"phone":{"title":"Номера телефона","type":"string","maxLength":128,"minLength":1}}},"LKUserInfo":{"required":["company_inn","company_payroll_date"],"type":"object","properties":{"fname":{"title":"Фамилия","type":"string","maxLength":150},"iname":{"title":"Имя","type":"string","maxLength":30},"oname":{"title":"Отчество","type":"string","maxLength":150},"email":{"title":"Email адрес","type":"string","format":"email","maxLength":150},"company_kpp":{"title":"Company kpp","type":"string","default":"","maxLength":9,"x-nullable":true},"company_inn":{"title":"Company inn","type":"string","maxLength":12,"minLength":1},"company_name":{"title":"Company name","type":"string","default":"","maxLength":512,"x-nullable":true},"contract_number":{"title":"Contract number","type":"string","default":"","maxLength":150,"x-nullable":true},"contract_date":{"title":"Contract date","type":"string","format":"date","x-nullable":true},"company_payroll_date":{"title":"Company payroll date","type":"integer","maximum":15,"minimum":1},"is_subordinate":{"title":"Is subordinate","type":"string","readOnly":true},"is_blocked":{"title":"Is blocked","type":"string","readOnly":true}}},"LKRegistrationConfirm":{"required":["phone","sms_code"],"type":"object","properties":{"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1},"sms_code":{"title":"Код из смс","type":"string","maxLength":4,"minLength":1}}},"LKUserRegistrationSetPassword":{"required":["phone","password","password_repeat"],"type":"object","properties":{"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1},"password":{"title":"Пароль","type":"string","minLength":5},"password_repeat":{"title":"Повтор пароля","type":"string","minLength":5}}},"LKRegistrationRequest":{"required":["phone"],"type":"object","properties":{"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1}}},"LKUserResetPasswordConfirm":{"required":["phone","sms_code","password","password_repeat"],"type":"object","properties":{"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1},"sms_code":{"title":"Код из смс","type":"string","maxLength":4,"minLength":1},"password":{"title":"Пароль","type":"string","minLength":5},"password_repeat":{"title":"Повтор пароля","type":"string","minLength":5}}},"LKUserResetPasswordRequest":{"required":["phone"],"type":"object","properties":{"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1}}},"UserAmplitude":{"required":["phone","gender"],"type":"object","properties":{"unique_id":{"title":"Уникальный идентификатор","description":"Используется для создания связки между заявкой и физ.лицом. Должен совпадать у обоих. Также используется для API интеграции с банком.","type":"string","format":"uuid"},"phone":{"title":"Номер телефона","type":"string","maxLength":128,"minLength":1},"email":{"title":"Email адрес","type":"string","format":"email","maxLength":150},"gender":{"title":"Пол","description":"Допустимые значения: 1 (Мужской), 2 (Женский)","type":"string"},"age":{"title":"Возраст","type":"string","readOnly":true},"education_kind":{"title":"Вид образования","type":"string","maxLength":70},"salary":{"title":"Оклад","type":"string","readOnly":true},"company_name":{"title":"Название работодателя","type":"string","readOnly":true},"company_inn":{"title":"ИНН работодателя","type":"string","readOnly":true},"company_kpp":{"title":"КПП работодателя","type":"string","readOnly":true},"industry":{"title":"Отрасль","type":"string","readOnly":true},"position":{"title":"Основная должность","type":"string","readOnly":true},"has_withholdings":{"title":"Есть ли ранние выводы за последние 6 мес.","type":"string","readOnly":true}}},"CurrentUserInfo":{"type":"object","properties":{"fname":{"title":"Фамилия","type":"string","maxLength":150},"iname":{"title":"Имя","type":"string","maxLength":30},"oname":{"title":"Отчество","type":"string","maxLength":150},"photo":{"title":"Фото","type":"string","readOnly":true,"x-nullable":true,"format":"uri"}}},"CurrentUserPhoto":{"type":"object","properties":{"photo":{"title":"Фото","type":"string","readOnly":true,"x-nullable":true,"format":"uri"}}},"Token":{"required":["phone","sms_code"],"type":"object","properties":{"phone":{"title":"Phone","type":"string","minLength":1},"sms_code":{"title":"Sms code","type":"string","minLength":1},"registration_id":{"title":"Registration id","type":"string","minLength":1}}},"StatementBankPropsStage":{"required":["fio"],"type":"object","properties":{"fio":{"title":"Получатель","type":"string","minLength":1},"bank_inn":{"title":"ИНН банка","type":"string","maxLength":12},"bank_kpp":{"title":"КПП банка","type":"string","maxLength":12},"checking_account":{"title":"Номер счета","type":"string","maxLength":64},"correspondent_account":{"title":"Корр. счет","type":"string","maxLength":64},"bank_name":{"title":"Банк","type":"string","maxLength":128},"bik":{"title":"БИК","type":"string","maxLength":9}}},"MobileException":{"required":["type","description"],"type":"object","properties":{"type":{"title":"Тип ошибки","description":"Допустимые значения: VALIDATION (VALIDATION), COMMON (COMMON)","type":"string"},"description":{"title":"Описание ошибки","type":"string","maxLength":65535,"minLength":1}}},"StatementTokenExchange":{"required":["next","user_id","refresh","access"],"type":"object","properties":{"next":{"title":"На какую страницу переходить (BALANCE или SNILS)","type":"string","maxLength":16,"minLength":1},"user_id":{"title":"Идентификатор физ.лица","type":"integer"},"refresh":{"title":"refresh токен","type":"string","maxLength":512,"minLength":1},"access":{"title":"access токен","type":"string","maxLength":512,"minLength":1}}},"StatementEmail":{"required":["email"],"type":"object","properties":{"email":{"title":"Адрес эл. почты","type":"string","format":"email","minLength":1}}},"StatementWorkPlace":{"required":["company_name","position","salary","salary_day"],"type":"object","properties":{"company_name":{"title":"Заявка","type":"string","maxLength":512,"minLength":1},"position":{"title":"Должность","type":"string","maxLength":150,"minLength":1},"salary":{"title":"Оклад","type":"string","format":"decimal"},"salary_day":{"title":"День зарплаты","type":"integer"}}},"StatementWorkStage":{"type":"object","properties":{"company":{"title":"Организация","type":"integer","x-nullable":true},"company_name":{"title":"Название организации","type":"string","maxLength":512}}},"StatementAllWorkStage":{"type":"object","properties":{"company_name":{"title":"Название организации","type":"string","maxLength":512},"inn":{"title":"ИНН организации","type":"string","maxLength":12},"kpp":{"title":"КПП организации","type":"string","maxLength":16},"registration_address":{"title":"Адрес регистрации","type":"string"}}},"Receipt":{"required":["Id","DocumentNumber","SessionNumber","Number","FiscalSign","Inn","Type","Ofd","Url","QrCodeUrl","Amount","DateTime","Receipt","CalculationPlace"],"type":"object","properties":{"Id":{"title":"Уникальный идентификатор чека","type":"string","maxLength":128,"minLength":1},"DocumentNumber":{"title":"Номер чека","type":"integer"},"SessionNumber":{"title":"Номер смены","type":"integer"},"Number":{"title":"Номер чека в смене","type":"integer"},"FiscalSign":{"title":"Фискальный признак документа","type":"string","maxLength":20,"minLength":1},"Inn":{"title":"ИНН","type":"string","maxLength":12,"minLength":1},"Type":{"title":"Признак расчета","type":"string","maxLength":30,"minLength":1},"Ofd":{"title":"Наименование оператора фискальных данных","type":"string","maxLength":255,"minLength":1},"Url":{"title":"URL адрес с копией чека","type":"string","maxLength":255,"minLength":1},"QrCodeUrl":{"title":"URL адрес с QR кодом для проверки чека","type":"string","maxLength":255,"minLength":1},"TransactionId":{"title":"Идентификатор транзакции","type":"integer","x-nullable":true},"Amount":{"title":"Сумма чека","type":"number","format":"decimal"},"DateTime":{"title":"Дата/время выдачи чека во временной зоне UTC","type":"string","format":"date-time"},"InvoiceId":{"title":"Номер заказа","type":"string","maxLength":128,"x-nullable":true},"AccountId":{"title":"Идентификатор пользователя","type":"string","maxLength":128,"x-nullable":true},"Receipt":{"title":"Состав чека","type":"string"},"CalculationPlace":{"title":"Место осуществления расчетов","type":"string","maxLength":255},"CashierName":{"title":"Имя кассира","type":"string","maxLength":128,"x-nullable":true},"SettlePlace":{"title":"Место нахождения (установки) ккм","type":"string","maxLength":255,"x-nullable":true}}},"TransactionHistoryPassport":{"title":"Паспорт","required":["num","open","org","code"],"type":"object","properties":{"num":{"title":"Серия и номер","type":"string","pattern":"^\\d{2} \\d{2} \\d{6}$","maxLength":35,"minLength":1},"open":{"title":"Дата выдачи (гггг-мм-дд)","type":"string","format":"date"},"org":{"title":"Кем выдан","type":"string","maxLength":254,"minLength":1},"code":{"title":"Код подразделения","type":"string","maxLength":7,"minLength":1}}},"TransactionHistoryAccount":{"title":"Банковский счет","required":["account","ksn","bic","nmp"],"type":"object","properties":{"account":{"title":"Номер текущего счета","type":"string","maxLength":20,"minLength":1},"ksn":{"title":"Кор. счет получателя платежа","type":"string","maxLength":20,"minLength":1},"bic":{"title":"БИК банка получателя платежа","type":"string","maxLength":10,"minLength":1},"nmp":{"title":"Название банка получателя платежа","type":"string","maxLength":45,"minLength":1}}},"TransactionHistoryPosition":{"title":"Места работы","required":["orgCrf","orgName"],"type":"object","properties":{"posName":{"title":"Должность","type":"string","maxLength":35},"dateStart":{"title":"Дата начала работы","description":"Дата в формате гггг-мм-дд","type":"string"},"orgCrf":{"title":"ИНН организации","type":"string","maxLength":12,"minLength":1},"orgName":{"title":"Юридическое лицо","type":"string","maxLength":35,"minLength":1},"orgId":{"title":"ID организации","type":"string","format":"uuid","x-nullable":true}}},"TransactionHistorySalary":{"title":"Данные о зарплате","required":["account","amount","kvd","date"],"type":"object","properties":{"account":{"title":"Номер счёта","type":"string","maxLength":20,"minLength":1},"amount":{"title":"Сумма","type":"string","maxLength":15,"minLength":1},"kvd":{"title":"Код вида дохода","type":"string","maxLength":1,"minLength":1},"date":{"title":"Date","type":"string","format":"date"},"orgId":{"title":"ID организации","type":"string","format":"uuid","x-nullable":true}}},"BankUserTransactionHistory":{"required":["userId","dul","bDate","bPlace","nat","regAddress","relalAddress","acc","feeSts","position","salary"],"type":"object","properties":{"userId":{"title":"UID пользователя","type":"string","maxLength":36,"minLength":1},"fnm1":{"title":"Фамилия","type":"string","maxLength":35,"x-nullable":true},"fnm2":{"title":"Имя","type":"string","maxLength":35,"x-nullable":true},"fnm3":{"title":"Отчество","type":"string","maxLength":35,"x-nullable":true},"phone":{"title":"Номер телефона","type":"string","maxLength":18,"x-nullable":true},"mail":{"title":"Email","type":"string","maxLength":256,"x-nullable":true},"dul":{"$ref":"#/definitions/TransactionHistoryPassport"},"bDate":{"title":"Дата рождения","type":"string","format":"date"},"bPlace":{"title":"Место рождения","type":"string","maxLength":254,"minLength":1},"nat":{"title":"Гражданство","type":"string","maxLength":2,"minLength":1},"regAddress":{"title":"Адрес регистрации","type":"string","maxLength":256,"minLength":1},"relalAddress":{"title":"Адрес фактического места проживания","type":"string","maxLength":256,"minLength":1},"acc":{"$ref":"#/definitions/TransactionHistoryAccount"},"crf":{"title":"ИНН","type":"string","maxLength":20},"fior":{"title":"СНИЛС","type":"string","maxLength":35,"x-nullable":true},"feeSts":{"title":"Статус налогоплательщика","type":"string","maxLength":1,"minLength":1},"education":{"title":"Образование","type":"string","maxLength":256},"position":{"type":"array","items":{"$ref":"#/definitions/TransactionHistoryPosition"}},"salary":{"type":"array","items":{"$ref":"#/definitions/TransactionHistorySalary"}}}},"AlfaBankAccountOperationLegacy":{"required":["inn","idpo","sum","dte"],"type":"object","properties":{"inn":{"title":"ИНН","type":"string","maxLength":12,"minLength":1},"idpo":{"title":"ID","type":"string","maxLength":20,"minLength":1},"sum":{"title":"Сумма начисления","type":"string","format":"decimal"},"dte":{"title":"Дата","type":"string","format":"date"}}},"PaymentRequestProcessingResult":{"required":["serialNumber","paymentRequestId","operationId","userId","account","status","executedAmount","debtAmount"],"type":"object","properties":{"serialNumber":{"title":"Порядковый номер сообщения","type":"integer"},"paymentRequestId":{"title":"Идентификатор ПТ","type":"string","maxLength":16,"minLength":1},"operationId":{"title":"Идентификатор операции","type":"string","maxLength":16,"minLength":1},"userId":{"title":"Идентификатор клиента в ДВ","type":"string","maxLength":36,"minLength":1},"inn":{"title":"ИНН организации-работодателя","type":"string","maxLength":12,"x-nullable":true},"account":{"title":"Номер счета","type":"string","maxLength":20,"minLength":1},"status":{"title":"Статус ПТ","type":"string","maxLength":1},"executedAmount":{"title":"Сумма исполненного ПТ","type":"string","format":"decimal"},"debtAmount":{"title":"Сумма остатка по ПТ","type":"string","format":"decimal"}}},"SalaryReceiptInforming":{"required":["userId","amount","incomeBasisCode","incomeCode"],"type":"object","properties":{"userId":{"title":"Идентификатор клиента в ДВ","type":"string","maxLength":36,"minLength":1},"inn":{"title":"ИНН организации-работодателя","type":"string","maxLength":12,"x-nullable":true},"amount":{"title":"Сумма поступившей ЗП","type":"string","format":"decimal"},"incomeBasisCode":{"title":"Код основания начисления","type":"string","maxLength":5,"minLength":1},"incomeCode":{"title":"Код вида дохода","type":"string","maxLength":1,"minLength":1},"orgId":{"title":"ID организации","type":"string","format":"uuid","x-nullable":true}}},"CompanyByInn":{"required":["inn"],"type":"object","properties":{"inn":{"title":"Inn","type":"string","minLength":1},"name":{"title":"Наименование","type":"string","readOnly":true,"minLength":1}}},"CompanyNewRequest":{"required":["inn","name","email","phone","document_type"],"type":"object","properties":{"inn":{"title":"ИНН","type":"string","maxLength":12,"minLength":1},"kpp":{"title":"КПП","type":"string","maxLength":9,"x-nullable":true},"name":{"title":"Имя","type":"string","maxLength":256,"minLength":1},"email":{"title":"E-mail","type":"string","format":"email","maxLength":256,"minLength":1},"phone":{"title":"Телефон","type":"string","maxLength":256,"minLength":1},"document_type":{"title":"Формат заключения договора","description":"Допустимые значения: DIGITAL (Подпись через ЭДО), PAPER (Подписание \"бумажного\" договора), PAYMENT (Подписание через оплату 1 рубля)","type":"string"}}},"CompanyTerminateRequest":{"required":["reason"],"type":"object","properties":{"reason":{"title":"Причина отключения","type":"string","maxLength":4096,"minLength":1}}}},"basePath":"/smu32/365-1/1.0"}