> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bedolagam.ru/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Subscription Details

> Получение информации о подписке пользователя в мини-приложении.



## OpenAPI

````yaml /openapi.json post /miniapp/subscription
openapi: 3.1.0
info:
  title: Remnawave Bot Admin API
  version: 1.0.0
servers: []
security: []
tags:
  - name: health
    description: Проверка состояния сервера и базы данных
  - name: stats
    description: Общая и детальная статистика системы
  - name: logs
    description: Просмотр логов и ошибок
  - name: users
    description: Управление пользователями бота
  - name: subscriptions
    description: Управление подписками и ключами подключения
  - name: transactions
    description: Финансовые операции и платежи
  - name: partners
    description: Партнёрская программа
  - name: broadcasts
    description: Массовые рассылки пользователям
  - name: pages
    description: Информационные страницы (оферта, политика и др.)
  - name: welcome-texts
    description: Приветственные сообщения
  - name: main-menu
    description: Настройки главного меню бота
  - name: menu-layout
    description: Конструктор расположения кнопок меню
  - name: pinned-messages
    description: Закреплённые сообщения в чатах
  - name: notifications
    description: Системные уведомления
  - name: promo-codes
    description: Промокоды для скидок и бонусов
  - name: promo-groups
    description: Группы промо-акций
  - name: promo-offers
    description: Рекламные предложения
  - name: campaigns
    description: Рекламные кампании с UTM-трекингом
  - name: contests
    description: Конкурсы, розыгрыши и ежедневные задания
  - name: polls
    description: Опросы пользователей
  - name: remnawave
    description: RemnaWave интеграция (ноды, сквады, инбаунды)
  - name: servers
    description: Управление VPN-серверами
  - name: settings
    description: Настройки бота
  - name: backups
    description: Резервное копирование данных
  - name: auth
    description: Аутентификация и токены Web API
  - name: webhooks
    description: Webhook-обработчики внешних событий
  - name: miniapp
    description: API для Telegram Mini App
  - name: media
    description: Загрузка и хранение медиафайлов
  - name: support
    description: Система тикетов поддержки
  - name: ban-notifications
    description: Уведомления о банах пользователей
  - name: Landing Pages
    description: Публичные лендинги для привлечения клиентов
  - name: Cabinet Auth
    description: Авторизация через Telegram, email, виджет
  - name: Cabinet OAuth
    description: OAuth 2.0 провайдеры (Google, Яндекс, Discord, VK)
  - name: Cabinet Account Linking
    description: Привязка и отвязка аккаунтов провайдеров
  - name: Cabinet Account Merge
    description: Объединение нескольких аккаунтов в один
  - name: Cabinet Subscription
    description: Управление подписками, тарифами и ключами
  - name: Cabinet Balance
    description: Баланс, пополнение и сохранённые карты
  - name: Cabinet Gift
    description: Подарочные подписки — покупка и активация
  - name: Fortune Wheel
    description: Колесо фортуны с бонусами
  - name: Cabinet Withdrawal
    description: Вывод партнёрских средств
  - name: Cabinet Referral
    description: Реферальная программа
  - name: Cabinet Partner
    description: Партнёрская программа для пользователей
  - name: Cabinet Promo
    description: Промо-акции в личном кабинете
  - name: Cabinet Promocode
    description: Применение промокодов
  - name: Cabinet Contests
    description: Участие в конкурсах
  - name: Cabinet Polls
    description: Участие в опросах
  - name: Cabinet Tickets
    description: Тикеты поддержки
  - name: Cabinet Ticket Notifications
    description: Уведомления по тикетам
  - name: Cabinet Notifications
    description: Системные уведомления
  - name: Cabinet Info
    description: Информация о сервисе, FAQ, контакты
  - name: Cabinet Media
    description: Медиафайлы личного кабинета
  - name: Branding
    description: Брендирование и оформление кабинета
  - name: Cabinet Admin Users
    description: Управление пользователями через админ-панель
  - name: Cabinet Admin Ban System
    description: Система банов и блокировок
  - name: Admin RBAC
    description: Управление ролями и разрешениями
  - name: Admin RBAC Policies
    description: Политики контроля доступа
  - name: Admin RBAC Audit Log
    description: Журнал аудита действий
  - name: Cabinet Admin Tariffs
    description: Управление тарифами
  - name: Cabinet Admin Servers
    description: Управление серверами
  - name: Cabinet Admin RemnaWave
    description: RemnaWave интеграция из админ-панели
  - name: Cabinet Admin Payments
    description: Просмотр и управление платежами
  - name: Cabinet Admin Payment Methods
    description: Настройка способов оплаты
  - name: Admin Traffic
    description: Мониторинг трафика
  - name: Cabinet Admin Broadcasts
    description: Массовые рассылки из админ-панели
  - name: Cabinet Admin Campaigns
    description: Управление рекламными кампаниями
  - name: Cabinet Admin Channels
    description: Обязательные подписки на каналы
  - name: Cabinet Admin Pinned Messages
    description: Закреплённые сообщения
  - name: Cabinet Admin Landings
    description: Управление лендинговыми страницами
  - name: Cabinet Admin Apps
    description: VPN-приложения для скачивания
  - name: Cabinet Admin Updates
    description: Проверка обновлений бота
  - name: Admin Menu Layout
    description: Конструктор меню админ-панели
  - name: Admin Promo Groups
    description: Управление промо-группами
  - name: Admin Promo Offers
    description: Управление промо-предложениями
  - name: Admin Promocodes
    description: Управление промокодами
  - name: Admin Fortune Wheel
    description: Настройка колеса фортуны
  - name: Admin Email Templates
    description: Email-шаблоны
  - name: Admin Button Styles
    description: Стили кнопок интерфейса
  - name: Cabinet Admin Stats
    description: Статистика и аналитика
  - name: Cabinet Admin Sales Stats
    description: Статистика продаж и доходов
  - name: Cabinet Admin Referral Network
    description: Граф реферальной сети
  - name: Cabinet Admin Partners
    description: Управление партнёрами
  - name: Cabinet Admin Tickets
    description: Тикеты поддержки из админ-панели
  - name: Cabinet Admin Ticket Notifications
    description: Уведомления по тикетам
  - name: Cabinet Admin Withdrawals
    description: Выводы партнёрских средств
  - name: Admin Settings
    description: Системные настройки
paths:
  /miniapp/subscription:
    post:
      tags:
        - miniapp
      summary: Get Subscription Details
      description: Получение информации о подписке пользователя в мини-приложении.
      operationId: get_subscription_details_miniapp_subscription_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MiniAppSubscriptionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MiniAppSubscriptionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MiniAppSubscriptionRequest:
      properties:
        initData:
          type: string
          title: Initdata
      type: object
      required:
        - initData
      title: MiniAppSubscriptionRequest
    MiniAppSubscriptionResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        subscription_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Subscription Id
        remnawave_short_uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Remnawave Short Uuid
        user:
          $ref: '#/components/schemas/MiniAppSubscriptionUser'
        traffic_purchases:
          items:
            $ref: '#/components/schemas/MiniAppTrafficPurchase'
          type: array
          title: Traffic Purchases
        subscription_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Subscription Url
        hide_subscription_link:
          type: boolean
          title: Hide Subscription Link
          default: false
        subscription_crypto_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Subscription Crypto Link
        subscription_purchase_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Subscription Purchase Url
        links:
          items:
            type: string
          type: array
          title: Links
        ss_conf_links:
          additionalProperties:
            type: string
          type: object
          title: Ss Conf Links
        connected_squads:
          items:
            type: string
          type: array
          title: Connected Squads
        connected_servers:
          items:
            $ref: '#/components/schemas/MiniAppConnectedServer'
          type: array
          title: Connected Servers
        connected_devices_count:
          type: integer
          title: Connected Devices Count
          default: 0
        connected_devices:
          items:
            $ref: '#/components/schemas/MiniAppDevice'
          type: array
          title: Connected Devices
        happ:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Happ
        happ_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Happ Link
        happ_crypto_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Happ Crypto Link
        happ_cryptolink_redirect_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Happ Cryptolink Redirect Link
        happ_cryptolink_redirect_template:
          anyOf:
            - type: string
            - type: 'null'
          title: Happ Cryptolink Redirect Template
        balance_kopeks:
          type: integer
          title: Balance Kopeks
          default: 0
        balance_rubles:
          type: number
          title: Balance Rubles
          default: 0
        balance_currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Balance Currency
        transactions:
          items:
            $ref: '#/components/schemas/MiniAppTransaction'
          type: array
          title: Transactions
        promo_offers:
          items:
            $ref: '#/components/schemas/MiniAppPromoOffer'
          type: array
          title: Promo Offers
        promo_group:
          anyOf:
            - $ref: '#/components/schemas/MiniAppPromoGroup'
            - type: 'null'
        auto_assign_promo_groups:
          items:
            $ref: '#/components/schemas/MiniAppAutoPromoGroupLevel'
          type: array
          title: Auto Assign Promo Groups
        total_spent_kopeks:
          type: integer
          title: Total Spent Kopeks
          default: 0
        total_spent_rubles:
          type: number
          title: Total Spent Rubles
          default: 0
        total_spent_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Total Spent Label
        subscription_type:
          type: string
          title: Subscription Type
        autopay_enabled:
          type: boolean
          title: Autopay Enabled
          default: false
        autopay_days_before:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autopay Days Before
        autopay_days_options:
          items:
            type: integer
          type: array
          title: Autopay Days Options
        autopay:
          anyOf:
            - $ref: '#/components/schemas/MiniAppSubscriptionAutopay'
            - type: 'null'
        autopay_settings:
          anyOf:
            - $ref: '#/components/schemas/MiniAppSubscriptionAutopay'
            - type: 'null'
        branding:
          anyOf:
            - $ref: '#/components/schemas/MiniAppBranding'
            - type: 'null'
        faq:
          anyOf:
            - $ref: '#/components/schemas/MiniAppFaq'
            - type: 'null'
        legal_documents:
          anyOf:
            - $ref: '#/components/schemas/MiniAppLegalDocuments'
            - type: 'null'
        referral:
          anyOf:
            - $ref: '#/components/schemas/MiniAppReferralInfo'
            - type: 'null'
        subscription_missing:
          type: boolean
          title: Subscription Missing
          default: false
        subscription_missing_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Subscription Missing Reason
        trial_available:
          type: boolean
          title: Trial Available
          default: false
        trial_duration_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Trial Duration Days
        trial_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Trial Status
        trialPaymentRequired:
          type: boolean
          title: Trialpaymentrequired
          default: false
        trialPriceKopeks:
          anyOf:
            - type: integer
            - type: 'null'
          title: Trialpricekopeks
        trialPriceLabel:
          anyOf:
            - type: string
            - type: 'null'
          title: Trialpricelabel
        salesMode:
          type: string
          title: Salesmode
          default: classic
        currentTariff:
          anyOf:
            - $ref: '#/components/schemas/MiniAppCurrentTariff'
            - type: 'null'
      additionalProperties: true
      type: object
      required:
        - user
        - subscription_type
      title: MiniAppSubscriptionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MiniAppSubscriptionUser:
      properties:
        telegram_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Telegram Id
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
        display_name:
          type: string
          title: Display Name
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        status:
          type: string
          title: Status
        subscription_status:
          type: string
          title: Subscription Status
        subscription_actual_status:
          type: string
          title: Subscription Actual Status
        status_label:
          type: string
          title: Status Label
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        device_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Device Limit
        traffic_used_gb:
          type: number
          title: Traffic Used Gb
          default: 0
        traffic_used_label:
          type: string
          title: Traffic Used Label
        traffic_limit_gb:
          anyOf:
            - type: integer
            - type: 'null'
          title: Traffic Limit Gb
        traffic_limit_label:
          type: string
          title: Traffic Limit Label
        lifetime_used_traffic_gb:
          type: number
          title: Lifetime Used Traffic Gb
          default: 0
        has_active_subscription:
          type: boolean
          title: Has Active Subscription
          default: false
        promo_offer_discount_percent:
          type: integer
          title: Promo Offer Discount Percent
          default: 0
        promo_offer_discount_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Promo Offer Discount Expires At
        promo_offer_discount_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Promo Offer Discount Source
        is_daily_tariff:
          type: boolean
          title: Is Daily Tariff
          default: false
        is_daily_paused:
          type: boolean
          title: Is Daily Paused
          default: false
        daily_tariff_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Daily Tariff Name
        daily_price_kopeks:
          anyOf:
            - type: integer
            - type: 'null'
          title: Daily Price Kopeks
        daily_price_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Daily Price Label
        daily_next_charge_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Daily Next Charge At
      type: object
      required:
        - display_name
        - status
        - subscription_status
        - subscription_actual_status
        - status_label
        - traffic_used_label
        - traffic_limit_label
      title: MiniAppSubscriptionUser
    MiniAppTrafficPurchase:
      properties:
        id:
          type: integer
          title: Id
        traffic_gb:
          type: integer
          title: Traffic Gb
        expires_at:
          type: string
          format: date-time
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
        days_remaining:
          type: integer
          title: Days Remaining
        progress_percent:
          type: number
          title: Progress Percent
      type: object
      required:
        - id
        - traffic_gb
        - expires_at
        - created_at
        - days_remaining
        - progress_percent
      title: MiniAppTrafficPurchase
      description: Докупка трафика с индивидуальной датой истечения.
    MiniAppConnectedServer:
      properties:
        uuid:
          type: string
          title: Uuid
        name:
          type: string
          title: Name
      type: object
      required:
        - uuid
        - name
      title: MiniAppConnectedServer
    MiniAppDevice:
      properties:
        hwid:
          anyOf:
            - type: string
            - type: 'null'
          title: Hwid
        platform:
          anyOf:
            - type: string
            - type: 'null'
          title: Platform
        device_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Device Model
        app_version:
          anyOf:
            - type: string
            - type: 'null'
          title: App Version
        last_seen:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Seen
        last_ip:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Ip
      type: object
      title: MiniAppDevice
    MiniAppTransaction:
      properties:
        id:
          type: integer
          title: Id
        type:
          type: string
          title: Type
        amount_kopeks:
          type: integer
          title: Amount Kopeks
        amount_rubles:
          type: number
          title: Amount Rubles
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        payment_method:
          anyOf:
            - type: string
            - type: 'null'
          title: Payment Method
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        is_completed:
          type: boolean
          title: Is Completed
        created_at:
          type: string
          format: date-time
          title: Created At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
      type: object
      required:
        - id
        - type
        - amount_kopeks
        - amount_rubles
        - is_completed
        - created_at
      title: MiniAppTransaction
    MiniAppPromoOffer:
      properties:
        id:
          type: integer
          title: Id
        status:
          type: string
          title: Status
        notification_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Notification Type
        offer_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Offer Type
        effect_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Effect Type
        discount_percent:
          type: integer
          title: Discount Percent
          default: 0
        bonus_amount_kopeks:
          type: integer
          title: Bonus Amount Kopeks
          default: 0
        bonus_amount_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Bonus Amount Label
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        claimed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Claimed At
        is_active:
          type: boolean
          title: Is Active
          default: false
        template_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Template Id
        template_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Template Name
        button_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Button Text
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        message_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Message Text
        icon:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon
        test_squads:
          items:
            $ref: '#/components/schemas/MiniAppConnectedServer'
          type: array
          title: Test Squads
        active_discount_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Active Discount Expires At
        active_discount_started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Active Discount Started At
        active_discount_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Active Discount Duration Seconds
      type: object
      required:
        - id
        - status
      title: MiniAppPromoOffer
    MiniAppPromoGroup:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        server_discount_percent:
          type: integer
          title: Server Discount Percent
          default: 0
        traffic_discount_percent:
          type: integer
          title: Traffic Discount Percent
          default: 0
        device_discount_percent:
          type: integer
          title: Device Discount Percent
          default: 0
        period_discounts:
          additionalProperties:
            type: integer
          type: object
          title: Period Discounts
        apply_discounts_to_addons:
          type: boolean
          title: Apply Discounts To Addons
          default: true
      type: object
      required:
        - id
        - name
      title: MiniAppPromoGroup
    MiniAppAutoPromoGroupLevel:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        threshold_kopeks:
          type: integer
          title: Threshold Kopeks
        threshold_rubles:
          type: number
          title: Threshold Rubles
        threshold_label:
          type: string
          title: Threshold Label
        is_reached:
          type: boolean
          title: Is Reached
          default: false
        is_current:
          type: boolean
          title: Is Current
          default: false
        server_discount_percent:
          type: integer
          title: Server Discount Percent
          default: 0
        traffic_discount_percent:
          type: integer
          title: Traffic Discount Percent
          default: 0
        device_discount_percent:
          type: integer
          title: Device Discount Percent
          default: 0
        period_discounts:
          additionalProperties:
            type: integer
          type: object
          title: Period Discounts
        apply_discounts_to_addons:
          type: boolean
          title: Apply Discounts To Addons
          default: true
      type: object
      required:
        - id
        - name
        - threshold_kopeks
        - threshold_rubles
        - threshold_label
      title: MiniAppAutoPromoGroupLevel
    MiniAppSubscriptionAutopay:
      properties:
        enabled:
          type: boolean
          title: Enabled
          default: false
        autopay_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Autopay Enabled
        autopay_enabled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Autopay Enabled At
        days_before:
          anyOf:
            - type: integer
            - type: 'null'
          title: Days Before
        autopay_days_before:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autopay Days Before
        default_days_before:
          anyOf:
            - type: integer
            - type: 'null'
          title: Default Days Before
        autopay_days_options:
          items:
            type: integer
          type: array
          title: Autopay Days Options
        days_options:
          items:
            type: integer
          type: array
          title: Days Options
        options:
          items:
            type: integer
          type: array
          title: Options
      additionalProperties: true
      type: object
      title: MiniAppSubscriptionAutopay
    MiniAppBranding:
      properties:
        service_name:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Service Name
        service_description:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Service Description
      type: object
      title: MiniAppBranding
    MiniAppFaq:
      properties:
        requested_language:
          type: string
          title: Requested Language
        language:
          type: string
          title: Language
        is_enabled:
          type: boolean
          title: Is Enabled
          default: true
        total:
          type: integer
          title: Total
          default: 0
        items:
          items:
            $ref: '#/components/schemas/MiniAppFaqItem'
          type: array
          title: Items
      type: object
      required:
        - requested_language
        - language
      title: MiniAppFaq
    MiniAppLegalDocuments:
      properties:
        public_offer:
          anyOf:
            - $ref: '#/components/schemas/MiniAppRichTextDocument'
            - type: 'null'
        service_rules:
          anyOf:
            - $ref: '#/components/schemas/MiniAppRichTextDocument'
            - type: 'null'
        privacy_policy:
          anyOf:
            - $ref: '#/components/schemas/MiniAppRichTextDocument'
            - type: 'null'
      type: object
      title: MiniAppLegalDocuments
    MiniAppReferralInfo:
      properties:
        referral_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Referral Code
        referral_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Referral Link
        bot_referral_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Bot Referral Link
        terms:
          anyOf:
            - $ref: '#/components/schemas/MiniAppReferralTerms'
            - type: 'null'
        stats:
          anyOf:
            - $ref: '#/components/schemas/MiniAppReferralStats'
            - type: 'null'
        recent_earnings:
          items:
            $ref: '#/components/schemas/MiniAppReferralRecentEarning'
          type: array
          title: Recent Earnings
        referrals:
          anyOf:
            - $ref: '#/components/schemas/MiniAppReferralList'
            - type: 'null'
      type: object
      title: MiniAppReferralInfo
    MiniAppCurrentTariff:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        tier_level:
          type: integer
          title: Tier Level
          default: 1
        traffic_limit_gb:
          type: integer
          title: Traffic Limit Gb
        traffic_limit_label:
          type: string
          title: Traffic Limit Label
        is_unlimited_traffic:
          type: boolean
          title: Is Unlimited Traffic
          default: false
        device_limit:
          type: integer
          title: Device Limit
        servers_count:
          type: integer
          title: Servers Count
        monthly_price_kopeks:
          type: integer
          title: Monthly Price Kopeks
          default: 0
        traffic_topup_enabled:
          type: boolean
          title: Traffic Topup Enabled
          default: false
        traffic_topup_packages:
          items:
            $ref: '#/components/schemas/MiniAppTrafficTopupPackage'
          type: array
          title: Traffic Topup Packages
        max_topup_traffic_gb:
          type: integer
          title: Max Topup Traffic Gb
          default: 0
        available_topup_gb:
          anyOf:
            - type: integer
            - type: 'null'
          title: Available Topup Gb
        is_daily:
          type: boolean
          title: Is Daily
          default: false
        daily_price_kopeks:
          type: integer
          title: Daily Price Kopeks
          default: 0
        daily_price_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Daily Price Label
      type: object
      required:
        - id
        - name
        - traffic_limit_gb
        - traffic_limit_label
        - device_limit
        - servers_count
      title: MiniAppCurrentTariff
      description: Текущий тариф пользователя.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    MiniAppFaqItem:
      properties:
        id:
          type: integer
          title: Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
        display_order:
          anyOf:
            - type: integer
            - type: 'null'
          title: Display Order
      type: object
      required:
        - id
      title: MiniAppFaqItem
    MiniAppRichTextDocument:
      properties:
        requested_language:
          type: string
          title: Requested Language
        language:
          type: string
          title: Language
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        is_enabled:
          type: boolean
          title: Is Enabled
          default: true
        content:
          type: string
          title: Content
          default: ''
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - requested_language
        - language
      title: MiniAppRichTextDocument
    MiniAppReferralTerms:
      properties:
        minimum_topup_kopeks:
          type: integer
          title: Minimum Topup Kopeks
          default: 0
        minimum_topup_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Minimum Topup Label
        first_topup_bonus_kopeks:
          type: integer
          title: First Topup Bonus Kopeks
          default: 0
        first_topup_bonus_label:
          anyOf:
            - type: string
            - type: 'null'
          title: First Topup Bonus Label
        inviter_bonus_kopeks:
          type: integer
          title: Inviter Bonus Kopeks
          default: 0
        inviter_bonus_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Inviter Bonus Label
        commission_percent:
          type: number
          title: Commission Percent
          default: 0
      type: object
      title: MiniAppReferralTerms
    MiniAppReferralStats:
      properties:
        invited_count:
          type: integer
          title: Invited Count
          default: 0
        paid_referrals_count:
          type: integer
          title: Paid Referrals Count
          default: 0
        active_referrals_count:
          type: integer
          title: Active Referrals Count
          default: 0
        total_earned_kopeks:
          type: integer
          title: Total Earned Kopeks
          default: 0
        total_earned_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Total Earned Label
        month_earned_kopeks:
          type: integer
          title: Month Earned Kopeks
          default: 0
        month_earned_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Month Earned Label
        conversion_rate:
          type: number
          title: Conversion Rate
          default: 0
      type: object
      title: MiniAppReferralStats
    MiniAppReferralRecentEarning:
      properties:
        amount_kopeks:
          type: integer
          title: Amount Kopeks
          default: 0
        amount_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Amount Label
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        referral_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Referral Name
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
      type: object
      title: MiniAppReferralRecentEarning
    MiniAppReferralList:
      properties:
        total_count:
          type: integer
          title: Total Count
          default: 0
        has_next:
          type: boolean
          title: Has Next
          default: false
        has_prev:
          type: boolean
          title: Has Prev
          default: false
        current_page:
          type: integer
          title: Current Page
          default: 1
        total_pages:
          type: integer
          title: Total Pages
          default: 1
        items:
          items:
            $ref: '#/components/schemas/MiniAppReferralItem'
          type: array
          title: Items
      type: object
      title: MiniAppReferralList
    MiniAppTrafficTopupPackage:
      properties:
        gb:
          type: integer
          title: Gb
        price_kopeks:
          type: integer
          title: Price Kopeks
        price_label:
          type: string
          title: Price Label
        original_price_kopeks:
          anyOf:
            - type: integer
            - type: 'null'
          title: Original Price Kopeks
        original_price_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Original Price Label
        discount_percent:
          type: integer
          title: Discount Percent
          default: 0
      type: object
      required:
        - gb
        - price_kopeks
        - price_label
      title: MiniAppTrafficTopupPackage
      description: Пакет докупки трафика.
    MiniAppReferralItem:
      properties:
        id:
          type: integer
          title: Id
        telegram_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Telegram Id
        full_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Name
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        last_activity:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Activity
        has_made_first_topup:
          type: boolean
          title: Has Made First Topup
          default: false
        balance_kopeks:
          type: integer
          title: Balance Kopeks
          default: 0
        balance_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Balance Label
        total_earned_kopeks:
          type: integer
          title: Total Earned Kopeks
          default: 0
        total_earned_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Total Earned Label
        topups_count:
          type: integer
          title: Topups Count
          default: 0
        days_since_registration:
          anyOf:
            - type: integer
            - type: 'null'
          title: Days Since Registration
        days_since_activity:
          anyOf:
            - type: integer
            - type: 'null'
          title: Days Since Activity
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
      type: object
      required:
        - id
      title: MiniAppReferralItem

````