> ## 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 Tariffs Endpoint

> Возвращает список доступных тарифов для пользователя.



## OpenAPI

````yaml /openapi.json post /miniapp/subscription/tariffs
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/tariffs:
    post:
      tags:
        - miniapp
      summary: Get Tariffs Endpoint
      description: Возвращает список доступных тарифов для пользователя.
      operationId: get_tariffs_endpoint_miniapp_subscription_tariffs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MiniAppTariffsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MiniAppTariffsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MiniAppTariffsRequest:
      properties:
        initData:
          type: string
          title: Initdata
      type: object
      required:
        - initData
      title: MiniAppTariffsRequest
      description: Запрос списка тарифов.
    MiniAppTariffsResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        sales_mode:
          type: string
          title: Sales Mode
          default: tariffs
        tariffs:
          items:
            $ref: '#/components/schemas/MiniAppTariff'
          type: array
          title: Tariffs
        current_tariff:
          anyOf:
            - $ref: '#/components/schemas/MiniAppCurrentTariff'
            - type: 'null'
        balance_kopeks:
          type: integer
          title: Balance Kopeks
          default: 0
        balance_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Balance Label
        promo_group:
          anyOf:
            - $ref: '#/components/schemas/MiniAppPromoGroup'
            - type: 'null'
      type: object
      title: MiniAppTariffsResponse
      description: Ответ со списком тарифов.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MiniAppTariff:
      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
        servers:
          items:
            $ref: '#/components/schemas/MiniAppConnectedServer'
          type: array
          title: Servers
        periods:
          items:
            $ref: '#/components/schemas/MiniAppTariffPeriod'
          type: array
          title: Periods
        is_current:
          type: boolean
          title: Is Current
          default: false
        is_available:
          type: boolean
          title: Is Available
          default: true
        switch_cost_kopeks:
          anyOf:
            - type: integer
            - type: 'null'
          title: Switch Cost Kopeks
        switch_cost_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Switch Cost Label
        is_upgrade:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Upgrade
        is_switch_free:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Switch Free
        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: MiniAppTariff
      description: Тариф для отображения в miniapp.
    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: Текущий тариф пользователя.
    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
    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
    MiniAppConnectedServer:
      properties:
        uuid:
          type: string
          title: Uuid
        name:
          type: string
          title: Name
      type: object
      required:
        - uuid
        - name
      title: MiniAppConnectedServer
    MiniAppTariffPeriod:
      properties:
        days:
          type: integer
          title: Days
        months:
          anyOf:
            - type: integer
            - type: 'null'
          title: Months
        label:
          type: string
          title: Label
        price_kopeks:
          type: integer
          title: Price Kopeks
        price_label:
          type: string
          title: Price Label
        price_per_month_kopeks:
          anyOf:
            - type: integer
            - type: 'null'
          title: Price Per Month Kopeks
        price_per_month_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Price Per Month 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:
        - days
        - label
        - price_kopeks
        - price_label
      title: MiniAppTariffPeriod
      description: Период тарифа с ценой.
    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: Пакет докупки трафика.

````