{"openapi":"3.0.3","info":{"title":"Almaz","description":"Almaz","version":"1.9.8"},"servers":[{"url":"https://example.com"}],"paths":{"/mobile/api/registration":{"post":{"summary":"Регистрация пользователя","requestBody":{"description":"Информация о пользователе","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/account/forms":{"get":{"summary":"Запрос для получения всех форм для платежных методов","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountFormsResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/dashboard/settings":{"get":{"summary":"Запрос для получения статичных настроек приложения","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GetAppSettingsResponseResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/account/new":{"post":{"summary":"Создание платежного аккаунта для партнера","security":[{"cookieAuth":[]}],"requestBody":{"description":"Информация об аккаунте","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAccountRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PartnerAccountResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/account/{id}/edit":{"post":{"summary":"Изменение платежного аккаунта для партнера","security":[{"cookieAuth":[]}],"requestBody":{"description":"Информация об аккаунте","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAccountRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PartnerAccountResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/payment/verification":{"post":{"summary":"Платеж верификации аккаунта","security":[{"cookieAuth":[]}],"requestBody":{"description":"Информация о транзакции (верификации)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentSpotRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/payment/deposit":{"post":{"summary":"Платеж deposit","security":[{"cookieAuth":[]}],"requestBody":{"description":"Информация об платеже","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentSpotRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/payment/withdraw":{"post":{"summary":"Вывод со спотового баланса","security":[{"cookieAuth":[]}],"requestBody":{"description":"Информация об платеже","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentSpotRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/payment/update":{"post":{"summary":"Обновление информации о платеже","security":[{"cookieAuth":[]}],"requestBody":{"description":"Информация об платеже","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/payment/{id}":{"get":{"summary":"Получение информации о платеже","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/{id}":{"get":{"summary":"Получение информации об операции","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OperationResponse"}]}}}},"500":{"description":"Ошибка сервера"}},"parameters":[{"in":"path","name":"id","required":true}]},"post":{"summary":"Обновление операции (в том числе прикрепление чека)","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OperationResponse"}]}}}},"500":{"description":"Ошибка сервера"}},"parameters":[{"in":"path","name":"new_operation_status","required":true,"description":"Для прикрепления чека необходимо указать статус confirmed"},{"in":"path","name":"slip","required":true,"description":"Файл чека"}]}},"/mobile/api/operation/{id}/upload-receipt":{"post":{"summary":"Прикрепление чека к операции","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}},"parameters":[{"in":"path","name":"slip","required":true,"description":"Файл чека"}]}},"/mobile/api/operation/{id}/check-status-receipt":{"get":{"summary":"Проверить статус валидации чека","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CheckOperationReceiptStatusResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/account/list":{"get":{"summary":"Получить список платежных методов","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PartnerAccountsResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/faq-section":{"get":{"summary":"Получить список секций FAQ","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FaqSectionsResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/faq-topic/{id}/faq-questions":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID топика"}],"get":{"summary":"Получить списка вопросов по id топика","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FaqQuestionsResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/faq-section/{id}/faq-topic":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID секции"}],"get":{"summary":"Получить списка топиков по id секции","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FaqTopicsResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/referrer/update":{"post":{"summary":"Обновление referrer","security":[{"cookieAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReferrerRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/referrals":{"post":{"summary":"Получение рефералов","security":[{"cookieAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetReferralsRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GetReferralsResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/faq-question/{id}":{"parameters":[{"in":"path","name":"id","required":true,"description":"ID вопроса"}],"get":{"summary":"Получить FAQ вопроса по id","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PartnerAccountResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bonus/statistics":{"get":{"summary":"Получить статистику по бонусам","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bonus/referral-program/statistics/{mid}":{"get":{"summary":"Получить статистику по бонусам в разрезе партнера","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReferralStatisticByMidResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/account/info/{id}":{"get":{"summary":"Получить платежный метод","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PartnerAccountResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/profile":{"get":{"summary":"Информация о пользователе","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProfileResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-session":{"get":{"summary":"Получение истории логинов","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UserSessionsResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-session/{id}/deactivate":{"post":{"summary":"Деактивация сессии по id","security":[{"cookieAuth":[]}],"parameters":[{"in":"path","name":"id","required":true,"description":"ID сессии"}],"requestBody":{"description":"Пустое тело запроса","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bonus/amount":{"post":{"summary":"Получение размера бонуса","security":[{"cookieAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BonusAmountRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BonusAmountResponse"},{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bonus/programs":{"post":{"summary":"Получение бонусных программ юзера","security":[{"cookieAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BonusProgramsRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BonusProgramsResponse"},{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bonus/potential":{"get":{"summary":"Получение максимально возможных бонусов","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PotentialBonus"},{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bonus/referrals/operations":{"post":{"summary":"Получение бонусов по операциям рефералов","security":[{"cookieAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralBonusOperationsRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReferralOperationBonusesResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-session/deactivate":{"post":{"summary":"Деактивация всех сессий кроме активной в данный момент","security":[{"cookieAuth":[]}],"requestBody":{"description":"Пустое тело запроса","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/partner/referral-code/check":{"post":{"summary":"Проверка реферального кода","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckReferralCodeRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CheckReferralCodeResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/promocode/check":{"post":{"summary":"Проверка промокода кода","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPromocodeRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CheckPromocodeResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/search":{"get":{"summary":"Запрос для получения операций","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OperationsResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}},"parameters":[{"in":"query","name":"tab","required":true,"description":"Значения через запятую (new, in_work, final)"},{"in":"query","name":"offset","required":true,"description":"Отступ для пагинации"},{"in":"query","name":"limit","required":true,"description":"Лимит для пагинации"},{"in":"query","name":"orderby","required":false,"description":"По какому полю сортировать (createdAt)"},{"in":"query","name":"paymentType","required":true,"description":"Значения через запятую (in, out, transfer-personal-to-personal, transfer-trade-to-personal, transfer-personal-to-trade, prepayment, inverse_out)"},{"in":"query","name":"status","required":true,"description":"Одно из значений (new, confirmed, processing, success, failed, cancel)"}]}},"/mobile/api/country":{"get":{"summary":"Получение списка доступных стран","responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CountriesResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/balance/trade/{mid}":{"get":{"summary":"Запрос информации о трейдовых балансах","parameters":[{"in":"path","name":"mid","required":true}],"security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BalancesResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/balance/{mid}":{"get":{"summary":"Запрос информации о спотовых балансах","parameters":[{"in":"path","name":"mid","required":true}],"security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BalancesResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/balance/{balanceType}/new":{"post":{"security":[{"cookieAuth":[]}],"summary":"Создание баланса для партнера - personal баланс может быть только один в одной валюте, trade баласнов может быть много для одной и той же валюты","parameters":[{"in":"path","name":"balanceType","required":true,"description":"Тип счета (personal, trade)"}],"requestBody":{"description":"Запрос для создания баланса","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBalanceRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/payment-method/settings":{"patch":{"security":[{"cookieAuth":[]}],"requestBody":{"description":"Обновление автофинализации payment method","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBucketPaymentMethod"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/login":{"post":{"summary":"Авторизация пользователя","requestBody":{"description":"Данные для логина","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","headers":{"Set-Cookie":{"description":"Contains the session cookie named `PHPSESSID`. Pass this cookie back in subsequent requests.\n","schema":{"type":"string","example":"d4tpbiorn21jbmd51n0m9e6bpp"}}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/events/auth_token":{"post":{"summary":"Получение токена авторизации для SSE событий.","responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/GetRealtimeEventsTokenResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/reset-password/code":{"post":{"summary":"Запросить код для сброса пароля (в том числе повторный запрос через константное время 2 мин)","requestBody":{"description":"Данные для получения кода","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetResetPasswordCodeRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","headers":{"Set-Cookie":{"description":"Sets a cookie for subsequent user identification when requesting OTP verification.\n","schema":{"type":"string","example":"reset-password-channel-type=email; reset-password-channel-value=email@email.com;"}}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/reset-password/user-notification-channel/verify":{"post":{"summary":"Подтверждение канала связи для восстановления пароля","parameters":[{"in":"cookie","name":"reset-password-channel-type","schema":{"type":"string","example":"email"}},{"in":"cookie","name":"reset-password-channel-value","schema":{"type":"string","example":"email@email.com"}}],"requestBody":{"description":"Код для подтверждения","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyNotificationChannelForPasswordResetRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/VerifyNotificationChannelForPasswordResetResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/notification-channel":{"get":{"summary":"Запрос для всех возможных каналов для уведомлений","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotificationChannelResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/reset-password/":{"post":{"summary":"Изменить пароль","requestBody":{"description":"Данные для изменения пароля","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-notification-channel":{"get":{"summary":"Получить список каналов нотификаций пользователя","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","headers":{"Set-Cookie":{"description":"Contains the session cookie named `PHPSESSID`. Pass this cookie back in subsequent requests.\n","schema":{"type":"string","example":"d4tpbiorn21jbmd51n0m9e6bpp"}}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UserNotificationChannelsResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-notification-channel/{channel_id}/update":{"parameters":[{"in":"path","name":"channel_id","required":true,"description":"ID канала"}],"patch":{"summary":"Обновление номера телефона или email для залогиненного юзера","security":[{"cookieAuth":[]}],"requestBody":{"description":"Тело запроса","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserNotificationChannelRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-notification-channel/{channel_id}/code":{"parameters":[{"in":"path","name":"channel_id","required":true,"description":"ID канала"}],"get":{"summary":"Запросить код подтверждения канала (в том числе повторный запрос через время verification_code_resend_time)","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GetNotificationChannelCodeResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user-notification-channel/{channel_id}/verify":{"parameters":[{"in":"path","name":"channel_id","required":true,"description":"ID канала"}],"post":{"summary":"Подтвердить канал кодом полученным ранее","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные для подтверждения","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyNotificationChannelRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/device/bind":{"post":{"summary":"Привязать к пользователю связку устройство-токен","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные привязки к пользователю связки устройство-токен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindMobileTokenRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/device/unbind":{"post":{"summary":"Удалить связку устройство-токен","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные привязки к пользователю связки устройство-токен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnbindMobileTokenRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/device/apk":{"get":{"summary":"Скачать приложение в формате .apk","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","headers":{"Content-Disposition":{"schema":{"type":"string","description":"Только для `application/vnd.android.package-archive` контента","example":"attachment; filename=\"notification-hub.apk\""}}},"content":{"application/vnd.android.package-archive":{"schema":{"type":"string","description":"Файл в формате .apk","format":"binary"}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/device/statistics":{"post":{"summary":"Добавление статистики по мобильному девайсу пользователя","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные о пользовательском девайсе","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApkUserDeviceStatisticRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/device/{deviceId}/event-notifications":{"post":{"summary":"Включить подписку на события с помощью пуш уведомлений","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные привязки к пользователю связки устройство-токен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEventNotificationsRequest"}}}},"parameters":[{"in":"path","name":"deviceId","required":true,"description":"ID устройства"}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}},"get":{"summary":"Получить списки событий для пуш нотификаций","security":[{"cookieAuth":[]}],"parameters":[{"in":"path","name":"deviceId","required":true,"description":"ID устройства"}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EventNotificationsResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/events/send":{"post":{"summary":"Дебаг ручка для отправки тестовых реалтайм (SSE) событий.","security":[{"cookieAuth":[]}],"requestBody":{"description":"Топик и событие","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDebugRealtimeEventRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/currency/available-list":{"get":{"summary":"Получить список доступных валют","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AvailableCurrenciesResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user/currency":{"post":{"summary":"Сохранить основную валюту пользователя","security":[{"cookieAuth":[]}],"requestBody":{"description":"Валюта выбранная пользователем","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveUserCurrencyRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/create-transfer-personal-to-personal":{"post":{"summary":"Одноранговые переводы между персональными счетами партнеров","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные для перевода","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransferPersonalToPersonal"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/create-personal-to-trade-transfer":{"post":{"summary":"Перевод с персонального счета на трейдерский","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные для перевода","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransferPersonalToTrade"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/create-trade-to-personal-transfer":{"post":{"summary":"Перевод с персонального счета на трейдерский","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные для перевода","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransferTradeToPersonal"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/operation/spot/create-withdraw-operation":{"post":{"summary":"Вывод. Пока это заглушка.","security":[{"cookieAuth":[]}],"requestBody":{"description":"Данные для вывода","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawFromSpotBalanceRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/user/online":{"post":{"summary":"Смена онлайн статуса пользователя","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeOnlineStatusRequest"}}}},"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/BaseSuccessResponse"}]}}}},"401":{"description":"Юзер не залогинен"},"500":{"description":"Ошибка сервера"}}}},"/mobile/api/bank/notification/senders":{"get":{"summary":"Получить список отправителей уведомлений от банков (автофинализация, sms hub)","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Успешный ответ сервера","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BankNotificationSendersResponse"},{"$ref":"#/components/schemas/LogicErrorResponse"},{"$ref":"#/components/schemas/ValidationErrorResponse"}]}}}},"500":{"description":"Ошибка сервера"}}}}},"components":{"securitySchemes":{"cookieAuth":{"type":"apiKey","in":"cookie","name":"PHPSESSID","description":"Cookie PHPSESSID полученная при логине"}},"schemas":{"BaseSuccessResponse":{"type":"object","properties":{"error":{"type":"boolean","description":"Признак наличия ошибки","example":false},"error_message":{"type":"string","description":"Сообщение об ошибке","example":""},"form_errors":{"type":"object","description":"Список ошибок формы","example":{}}},"required":["error","error_message","form_errors"]},"AccountFormsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/AccountFormsData"}],"required":["error","error_message","form_errors"]},"ReferralStatisticByMidResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ReferralStatisticByMidResponseData"}]},"ReferralStatisticByMidResponseData":{"type":"object","description":"Бонусы по операциям рефералов","properties":{"all_bonus_amount":{"type":"string","description":"Сумма всех бонусов реферала с учетом последнего расчетного периода"},"last_calculated_bonus_amount":{"type":"string","description":"Сумма всех бонусов реферала за последний расчетный период"},"currency":{"type":"string","description":"Валюта"},"total_buckets":{"type":"integer","description":"Число всех партнеров, приглашенных рефералом"},"total_active_guarantors":{"type":"integer","description":"Число всех партнеров, приглашенных рефералом, которые в свою очередь являются активными гарантами"},"referral_program":{"type":"object","description":"Описание реферальной программы партнера","properties":{"code":{"type":"string","description":"Код реферальной программы"},"level":{"type":"string","description":"Уровень партнера в реферальной программе"},"percent":{"type":"number","description":"Процент партнера по реферальной программе"}},"required":["code"]}},"required":["referral_program"]},"GetAppSettingsResponseResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/AppSettingsData"}]},"LogicErrorResponse":{"type":"object","properties":{"error":{"type":"boolean","description":"Признак наличия ошибки","example":true},"error_message":{"type":"string","description":"Сообщение об ошибке","example":"Some logic error"},"form_errors":{"type":"object","description":"Список ошибок формы","properties":{"field_name":{"type":"string","description":"Ошибка валидации конкретного поля","example":"can't be blank"}},"example":{}}},"required":["error","error_message","form_errors"]},"ValidationErrorResponse":{"type":"object","properties":{"error":{"type":"boolean","description":"Признак наличия ошибки","example":true},"error_message":{"type":"string","description":"Сообщение об ошибке","example":"validation error"},"form_errors":{"type":"object","description":"Список ошибок формы","properties":{"field_name":{"type":"string","description":"Ошибка валидации конкретного поля","example":"can't be blank"}},"example":{"field":"error message"}}},"required":["error","error_message","form_errors"]},"CreateBalanceRequest":{"type":"object","properties":{"currency":{"type":"string","required":true,"description":"код валюты","example":"USD"},"alias":{"type":"string","required":false,"description":"алиас для баланса","example":"my-balance-number-3"}}},"UpdateBucketPaymentMethod":{"type":"object","properties":{"autofinilize":{"type":"boolean","required":true,"description":"флаг включения/выключения автофинализации для платежного метода"},"payment_method_code":{"type":"string","required":true,"description":"код платежного метода","example":"easypaisa_p2p"}}},"RegistrationRequest":{"type":"object","properties":{"email":{"type":"string","description":"email","example":"user@gmail.com"},"first_name":{"type":"string","description":"Имя","example":"John"},"last_name":{"type":"string","description":"Фамилия","example":"Doe"},"country_id":{"type":"integer","description":"ID страны","example":123},"password":{"type":"string","description":"Пароль","example":"1234qwer"},"repeated_password":{"type":"string","description":"Повтор пароля","example":"1234qwer"},"agree_terms":{"type":"boolean","description":"Признак согласия с политикой конфиденциальности","example":true},"promo_code":{"type":"string","description":"Промокод","example":"START300"},"referrer_code":{"type":"string","description":"Реферальный код реферера","example":"84c00e6c-bc5b-4643-8786-a72f43121186"}},"required":["email","first_name","last_name","password","repeated_password","agree_terms"]},"CountriesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/CountriesData"}]},"CheckPromocodeResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/CheckCodeResponse"}]},"CheckReferralCodeResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/CheckCodeResponse"}]},"BonusAmountResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/BonusAmountData"}]},"BonusAmountData":{"type":"object","properties":{"data":{"type":"object","properties":{"operation_id":{"type":"integer"},"bonus_amount":{"type":"integer"},"percent":{"type":"number"},"currency":{"type":"string"},"converted_amount":{"type":"string"}}}}},"BonusProgramsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/BonusProgramsData"}]},"BonusProgramsData":{"type":"array","items":[{"$ref":"#/components/schemas/BonusProgramData"}]},"BonusProgramData":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"conditions":{"type":"array","items":[{"$ref":"#/components/schemas/BonusProgramCondition"}]}}}}},"BonusProgramCondition":{"type":"object","properties":{"id":{"type":"integer"},"min_base_amount":{"type":"integer"},"max_base_amount":{"type":"integer"},"base_currency":{"type":"string"},"operation_type":{"type":"string"},"settings":{"type":"array"},"fixed_bonus_amount":{"type":"integer"},"percent_bonus_value":{"type":"number"}}},"PotentialBonus":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/PotentialBonusData"}]},"PotentialBonusData":{"type":"object","properties":{"current_max_bonus_percent":{"description":"Процент максимально доступного бонуса по всем программам","type":"number"},"basic_max_bonus_percent":{"description":"Процент максимально доступного бонуса по операционному бонусу","type":"number"}}},"ReferralOperationBonusesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ReferralOperationBonusesResponseData"}]},"ReferralOperationBonusesResponseData":{"type":"object","properties":{"bonuses":{"description":"Бонусы по операциям рефералов","type":"array","properties":{"data":{"type":"object","properties":{"referral":{"type":"object","description":"Реферал","properties":{"partner_mid":{"type":"string","description":"Идентификатор партнера"},"partner_name":{"type":"string","description":"Название партнера"}}},"operation":{"type":"object","description":"Операция","properties":{"created_at":{"type":"integer","description":"Время создания операции (unix time)"}}},"bonus":{"type":"object","description":"Бонус по операции","properties":{"value":{"type":"number","description":"Размер бонуса в валюте"},"currency":{"type":"string","description":"Код валюты"}}}}}}},"next_operation_created_at":{"description":"Время создания следующей операции для пагинации (unix time). Если значение =0, операций больше нет.","type":"number"}}},"CheckCodeResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"is_valid":{"type":"boolean"}}}}},"OperationsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/OperationsData"}]},"OperationResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/OperationData"}]},"BalancesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/BalancesCollection"}]},"UserSessionsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/UserSessionCollection"}]},"ProfileResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ProfileData"}]},"PartnerAccountResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/PartnerAccount"}]},"GetReferralsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/Referrals"}]},"PartnerAccountsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/PartnerAccountsData"}]},"FaqSectionsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/FaqSectionsCollection"}]},"FaqQuestionsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/FaqQuestionsCollection"}]},"FaqTopicsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/FaqTopicsCollection"}]},"FaqQuestionResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/FaqQuestion"}]},"BalancesCollection":{"type":"array","properties":{"data":{"type":"object","properties":{"bucket_code":{"type":"string"},"balances":{"type":"array","items":{"$ref":"#/components/schemas/Balance"}},"total_amount":{"description":"Общая сумма на балансе в минорных единицах.","type":"integer"},"total_amount_major":{"description":"Общая сумма на балансе в мажорных единицах.","type":"string"}}}}},"Balance":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string"},"currency_code":{"type":"string"},"current":{"type":"number"},"available":{"type":"number"},"hold":{"type":"number"}}},"PartnerAccount":{"type":"object","properties":{"data":{"type":"object","properties":{"payment_method":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"autofinilize":{"type":"boolean","description":"флаг включения/выключения автофинализации для платежного метода"}}},"number":{"type":"string","description":"Номер счета"},"currency":{"type":"string","description":"Валюта для счета"},"payment_receiver":{"type":"string","description":"Получатель"}}}}},"Referrals":{"type":"object","properties":{"data":{"type":"object","properties":{"count_referrals":{"type":"number"},"referrals":{"type":"array","items":{"$ref":"#/components/schemas/ReferralData"}}}}}},"ReferralData":{"type":"object","properties":{"mid":{"type":"string"},"name":{"type":"string"},"bonus_amount":{"type":"number"},"referrals_count":{"type":"number"}}},"PartnerAccountsData":{"type":"object","properties":{"data":{"type":"array","description":"Список платежных методов","items":{"$ref":"#/components/schemas/PartnerAccount"}}}},"FaqSectionsCollection":{"type":"object","properties":{"data":{"type":"array","description":"Список секций FAQ","items":{"$ref":"#/components/schemas/FaqSection"}}}},"FaqQuestionsCollection":{"type":"object","properties":{"data":{"type":"array","description":"Список вопросов FAQ","items":{"$ref":"#/components/schemas/FaqQuestion"}}}},"FaqTopicsCollection":{"type":"object","properties":{"data":{"type":"array","description":"Список топиков FAQ","items":{"$ref":"#/components/schemas/FaqTopic"}}}},"ProfileData":{"type":"object","properties":{"data":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"main_currency":{"type":"string"},"is_verified":{"type":"boolean"},"status":{"type":"string"},"timezone":{"type":"string"},"country":{"type":"object","properties":{"name":{"type":"string"}}},"partner":{"type":"object","properties":{"mid":{"type":"string","description":"Almaz ID"},"referrer_name":{"type":"string"},"referral_code":{"type":"string","description":"Реферальный код для приглашения других партнеров"},"refferal_status":{"type":"string"},"sms_hub_token":{"type":"string","description":"Токен для аутентификации в прокси sms hub"}}}}}}},"FaqSection":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"faq_topics":{"type":"array","items":{"$ref":"#/components/schemas/FaqTopic"}}}}}},"FaqTopic":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"text":{"type":"string"},"icon":{"type":"string"}}}}},"FaqQuestion":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"content":{"type":"string"}}}}},"UserSessionCollection":{"type":"array","properties":{"data":{"type":"object","properties":{"sessions":{"type":"array","description":"Коллекция всех сессий юзера","items":{"$ref":"#/components/schemas/UserSession"}},"current_session":{"description":"ID активной сессии","type":"integer"}}}}},"UserSession":{"type":"object","properties":{"id":{"type":"integer"},"ip":{"type":"string"},"user_agent":{"type":"string"},"created_at":{"type":"string"},"country":{"type":"object","properties":{"name":{"type":"string"}}}}},"OperationsData":{"type":"object","properties":{"data":{"type":"array","description":"Список операций","items":{"$ref":"#/components/schemas/Operation"}}}},"OperationData":{"type":"object","properties":{"data":{"type":"object","allOf":[{"$ref":"#/components/schemas/Operation"}]}}},"Operation":{"type":"object","properties":{"id":{"type":"integer"},"operation_id":{"type":"integer"},"partner_id":{"type":"string"},"partner_account_id":{"type":"integer"},"partner_account":{"type":"string"},"partner_account_alias":{"type":"string"},"partner_account_bank":{"type":"string"},"customer_account":{"type":"string"},"payment_method":{"type":"string"},"payment_type":{"type":"string"},"amount":{"type":"integer"},"commission":{"type":"integer"},"amount_major":{"type":"string"},"commission_major":{"type":"string"},"currency_precision":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string"},"completed_at":{"type":"string","nullable":true},"receipt_link":{"type":"string"},"errors":{"type":"array"},"comment":{"type":"string"},"customer_bank":{"type":"string"},"customer_account_name":{"type":"string"},"branch_name":{"type":"string"},"in_work_user":{"type":"string","nullable":true},"origin_operation_id":{"type":"integer"},"customer_account_id":{"type":"string","nullable":true},"exchange_rate":{"type":"string","nullable":true},"converted_amount":{"type":"string","nullable":true},"origin_amount":{"type":"integer"},"origin_amount_major":{"type":"string"},"customer_transaction_id":{"type":"string"},"partner_account_group_id":{"type":"integer"},"balance_alias":{"type":"string","nullable":true},"balance_id":{"type":"integer","nullable":true},"settings":{"type":"object"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}},"CountriesData":{"type":"object","properties":{"data":{"type":"array","description":"Список доступных стран","items":{"$ref":"#/components/schemas/Country"}}}},"AppSettingsData":{"type":"object","properties":{"data":{"type":"object","properties":{"telegram_support_url":{"type":"string","example":"http://support.me"},"telegram_bot_url":{"type":"string","example":"http://tg.me"},"min_trade_balance_settings":{"type":"object","properties":{"min_amount_major":{"type":"string"},"currency":{"type":"string"}}}}}}},"AccountFormsData":{"type":"object","properties":{"data":{"type":"array","description":"Список доступных форм для платежных методов","items":{"$ref":"#/components/schemas/AccountForm"}}},"required":["data"]},"Country":{"type":"object","properties":{"id":{"type":"integer","description":"ID страны","example":123},"name":{"type":"string","description":"Название страны","example":"Пакистан"}},"required":["id","name"]},"AccountForm":{"type":"object","properties":{"name":{"type":"string"},"display_name":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/AccountFormItem"}}}},"AccountFormItem":{"type":"object","properties":{"payment_method_code":{"type":"object","properties":{"type":{"type":"string"},"display_name":{"type":"string"},"name":{"type":"string"},"nullable":{"type":"boolean"},"hint_text":{"type":"string"}}},"number":{"type":"object","properties":{"type":{"type":"string"},"display_name":{"type":"string"},"name":{"type":"string"},"nullable":{"type":"boolean"},"hint_text":{"type":"string"}}},"payment_receiver":{"type":"object","properties":{"type":{"type":"string"},"display_name":{"type":"string"},"name":{"type":"string"},"hint_text":{"type":"string"},"nullable":{"type":"boolean"}}},"currency":{"type":"object","properties":{"type":{"type":"string"},"display_name":{"type":"string"},"name":{"type":"string"},"hint_text":{"type":"string"},"nullable":{"type":"boolean"}}}}},"EmptyRequest":{"type":"object"},"PartnerAccountRequest":{"type":"object","properties":{"payment_method_code":{"type":"string","description":"Код для пэймент метода"},"number":{"type":"string","description":"Номер счета"},"currency":{"type":"string","description":"Валюта для счета"},"payment_receiver":{"type":"string","description":"Получатель"}},"required":["payment_method_code","number","currency","payment_receiver"]},"BonusAmountRequest":{"type":"object","properties":{"operation_id":{"type":"integer"},"bonus_names":{"type":"array","enum":["amount","completebytime"]}},"required":["operation_id","bonus_names"]},"BonusProgramsRequest":{"type":"object","properties":{"currencies":{"type":"array"},"bonus_names":{"type":"array","enum":["amount","completebytime"]}}},"ReferralBonusOperationsRequest":{"type":"object","properties":{"operation_created_at_offset":{"type":"integer","description":"Смещение для времени создания операции (unix time)"}},"required":["operation_created_at_offset"]},"CreatePaymentSpotRequest":{"type":"object","properties":{"amount":{"type":"string","description":"Сумма платежа (в мажорах)"},"partner_mid":{"type":"string","description":"Almaz id"},"currency":{"type":"string","description":"Валюта платежа"},"account_id":{"type":"integer"},"method":{"type":"string","description":"Платежный метод","enum":["fiat"]}},"required":["amount","currency","account_id","method"]},"UpdatePaymentRequest":{"type":"object","properties":{"id":{"type":"integer","description":"Идентификатор платежа"},"clarification_data":{"type":"array","description":"Данные полученные от customer в формате ключ-значение (json)"}},"required":["id","clarification_data"]},"WithdrawFromSpotBalanceRequest":{"type":"object","properties":{"method":{"type":"string"},"account_id":{"type":"integer"},"amount":{"type":"string"},"currency":{"type":"string"},"network":{"type":"string"},"address":{"type":"string"}},"required":["method","account_id","amount","currency","network","address"]},"LoginRequest":{"type":"object","properties":{"email":{"type":"string","description":"email","example":"user@gmail.com"},"password":{"type":"string","description":"Пароль","example":"1234qwer"}},"required":["email","password"]},"CheckReferralCodeRequest":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]},"CheckPromocodeRequest":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]},"GetResetPasswordCodeRequest":{"type":"object","properties":{"channel":{"type":"string","description":"Код подтвержденного канала нотификаций","example":"email"},"value":{"type":"string","description":"Адрес канала нотификаций (email, номер телефона...)","example":"user@gmail.com"}},"required":["channel","value"]},"VerifyNotificationChannelForPasswordResetRequest":{"type":"object","properties":{"code":{"type":"string","description":"Код для подтверждения сброса пароля в выбранном ранее канале нотификаций","example":"321953"}},"required":["code"]},"UpdateReferrerRequest":{"type":"object","properties":{"referral_code":{"type":"string"},"promo_code":{"type":"string"}},"required":["referral_code"]},"GetReferralsRequest":{"type":"object","properties":{"code":{"type":"string"}}},"UpdateUserNotificationChannelRequest":{"type":"object","properties":{"value":{"type":"string","description":"Значение для канала связи","example":"newEmail@mail.com"}},"required":["value"]},"VerifyNotificationChannelForPasswordResetResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/ResetPasswordTokenData"}]},"NotificationChannelResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/NotificationChannelData"}]},"NotificationChannelData":{"type":"array","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NotificationChannelItem"}}}},"NotificationChannelItem":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string","description":"Тип канала связи"},"display_name":{"type":"string","description":"Отображаемое имя"},"is_verification_required":{"type":"boolean","description":"Обязательна ли верификация метода"},"verification_code_ttl":{"type":"integer","description":"Время жизни кода(секунды)"},"verification_code_resend_time":{"type":"integer","description":"Время, через которое можно запросить код заново(секунды)"}}},"ResetPasswordTokenData":{"type":"object","properties":{"data":{"type":"object","properties":{"token":{"type":"string","description":"Token для сброса пароля","example":"very_long_token"}},"required":["token"]}},"required":["data"]},"ChangePasswordRequest":{"type":"object","properties":{"code":{"type":"string","description":"Token для сброса пароля","example":"very_long_token"},"password":{"type":"string","description":"Пароль","example":"1234qwer"},"repeated_password":{"type":"string","description":"Повтор пароля","example":"1234qwer"}},"required":["code","password","repeated_password"]},"UserNotificationChannelsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/UserNotificationChannelsData"}]},"UserNotificationChannelsData":{"type":"object","properties":{"data":{"type":"array","description":"Список доступных каналов нотификаций","items":{"$ref":"#/components/schemas/NotificationChannel"}}},"required":["data"]},"NotificationChannel":{"type":"object","properties":{"id":{"type":"integer","description":"id канала","example":123},"display_name":{"type":"string","description":"Название канала","example":"Email"},"type":{"type":"string","description":"Тип канала","example":"email"},"is_verification_required":{"type":"boolean","description":"Признак обязательности валидации канала","example":true},"value":{"type":"string","description":"Адрес канала [email|номер телефона]","example":"some@gmail.com"},"is_verified":{"type":"boolean","description":"Признак верифицированности канала","example":false},"verification_code_ttl":{"type":"integer","description":"Время действия кода верификации (в секундах)","example":600},"verification_code_resend_time":{"type":"integer","description":"Время, через которое можно повторно запросить код верификации (в секундах)","example":180}},"required":["id","display_name","type","is_verification_required","value","is_verified","verification_code_ttl","verification_code_resend_time"]},"GetNotificationChannelCodeResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/NotificationChannelCodeData"}]},"NotificationChannelCodeData":{"type":"object","properties":{"data":{"type":"object","properties":{"code":{"type":"string","description":"Название канала","example":"321953"}},"required":["code"]}},"required":["data"]},"VerifyNotificationChannelRequest":{"type":"object","properties":{"code":{"type":"string","description":"Код подтверждения","example":"321953"}},"required":["code"]},"BindMobileTokenRequest":{"type":"object","properties":{"mobile_id":{"type":"string","description":"Идентификатор устройства","example":"some_123_id"},"token":{"type":"string","description":"Firebase токен для отправки нотификаций на конкретное устройство","example":"some_123_token"}},"required":["mobile_id","token"]},"UnbindMobileTokenRequest":{"type":"object","properties":{"mobile_id":{"type":"string","description":"Идентификатор устройства","example":"some_123_id"}},"required":["mobile_id"]},"AvailableCurrenciesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/AvailableCurrenciesData"}]},"AvailableCurrenciesData":{"type":"object","properties":{"data":{"type":"array","description":"Список доступных валют","items":{"$ref":"#/components/schemas/Currencies"}}},"required":["data"]},"Currencies":{"type":"object","properties":{"code":{"type":"string","description":"Код валюты","example":"pkr"},"name":{"type":"string","description":"Название валюты","example":"PKR"}},"required":["code","name"]},"SaveUserCurrencyRequest":{"type":"object","properties":{"code":{"type":"string","description":"Код валюты, выбранный пользователем","example":"pkr"}},"required":["code"]},"CreateTransferPersonalToPersonal":{"type":"object","properties":{"currency":{"type":"string","description":"Валюта","example":"pkr"},"amount":{"type":"number","description":"Сумма","example":1000},"receiver":{"type":"string","description":"ID Партнера, кому отпралять","example":123}},"required":["currency","amount","receiver"]},"CreateTransferPersonalToTrade":{"type":"object","properties":{"amount":{"type":"number","description":"Сумма","example":1000},"balance_id_receiver":{"type":"integer","description":"ID баласна, куда зачислять средства","example":123}},"required":["amount","balance_id_receiver"]},"CreateTransferTradeToPersonal":{"type":"object","properties":{"amount":{"type":"number","description":"Сумма","example":1000},"balance_id_from":{"type":"integer","description":"ID баласна, откуда зачислять средства","example":123}},"required":["amount","balance_id_from"]},"UserEventNotificationsRequest":{"type":"object","properties":{"enabling_events":{"type":"array","description":"Массив идентификаторов событий","example":"[\"operation_complete\"]","items":{"type":"string"},"enum":["operation_complete"]}},"required":["enabling_events"]},"SendDebugRealtimeEventRequest":{"type":"object","properties":{"topic":{"type":"string","description":"Топик","example":"operation"},"event":{"type":"object","description":"Оъект события","example":"{\"id\": 31, \"status\": \"new\"}"}},"required":["topic","event"]},"CreateApkUserDeviceStatisticRequest":{"type":"object","properties":{"app_version":{"type":"string","description":"Версия приложения"},"build_number":{"type":"string","description":"Номер сборки"},"android_version":{"type":"string","description":"Версия андроида"},"phone_brand":{"type":"string","description":"Бренд телефона"},"phone_model":{"type":"string","description":"Модель телефона"},"read_sms_access":{"type":"boolean","description":"Разрешение на чтение пользовательских смс"},"read_push_access":{"type":"boolean","description":"Разрешение на чтение пользовательских push уведомлений"}},"required":["app_version","build_number","android_version","phone_brand","phone_model","read_sms_access","read_push_access"]},"EventNotificationsResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/EventNotificationsData"}]},"EventNotificationsData":{"type":"object","properties":{"data":{"type":"object","properties":{"available_events":{"type":"array","description":"Доступные события для подписки","example":"[\"operation_complete\"]","items":{"type":"string"}},"enabled_events":{"type":"array","description":"События, на которые подписан пользователь","items":{"$ref":"#/components/schemas/EventNotification"}}},"required":["available_events","enabled_events"]}}},"EventNotification":{"type":"object","properties":{"id":{"type":"string","description":"Строковый ID"},"display_name":{"type":"string","description":"Название на английском"}},"required":["id","display_name"]},"ChangeOnlineStatusRequest":{"type":"object","properties":{"online":{"type":"boolean"}},"required":["online"]},"GetRealtimeEventsTokenResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/RealtimeEventsTokenData"}]},"RealtimeEventsTokenData":{"type":"object","properties":{"data":{"type":"object","properties":{"jwt":{"type":"string","description":"JWT токен авторизации","example":"fffd.gdfhg.dhfh"}},"required":["jwt"]}}},"CheckOperationReceiptStatusResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/CheckOperationReceiptStatusData"}]},"CheckOperationReceiptStatusData":{"type":"object","properties":{"message":{"type":"string","description":"Статус","example":"invalid"}}},"SSETopics":{"type":"object","properties":{"operation":{"type":"object","description":"Обновления по операциям","example":"/{mid}/operation","properties":{"id":{"type":"integer","description":"ID","example":"123"},"status":{"type":"string","description":"Статус","example":"failed"},"payment_type":{"type":"string","description":"Тип платежного метода","example":"prepayment"},"amount":{"type":"string","description":"Сумма операции","example":"3000"},"receipt_link":{"type":"string","description":"Ссылка на чек со стороны отправителя","nullable":true,"example":"https://link.name"}}},"user":{"type":"object","description":"Обновления по пользователю, например, статус обработки транзакций.","example":"/{mid}/user","properties":{"id":{"type":"integer","description":"ID","example":"123"},"isTransactionProcessingOn":{"type":"boolean","description":"Статус режима обработки транзакций","example":false}}},"online":{"type":"object","description":"Топик для статуса мобильного приложения. Мобильное приложение подписывается на топик при запуске и отменяет подписку, когда пользователь закрывает приложение.","example":"/{mid}/online"}}},"BankNotificationSendersResponse":{"allOf":[{"$ref":"#/components/schemas/BaseSuccessResponse"},{"$ref":"#/components/schemas/BankNotificationSendersData"}]},"BankNotificationSendersData":{"type":"object","properties":{"data":{"type":"array","description":"Банковские отправители","items":{"type":"object","properties":{"bank_code":{"type":"string","description":"Код банка","example":"tinkoff"},"android_app_code":{"type":"string","description":"Код отправителя пуша на Андройд. Если пустая строка, то нет информации по этому каналу отправления.","example":"com.idamob.tinkoff.android"},"phone_code":{"type":"string","description":"Код отправителя смс. Если пустая строка, то нет информации по этому каналу отправления.","example":"3737"}}}}}}}}}