---
title: "Purchase Tariff Endpoint"
method: POST
path: "/miniapp/subscription/tariff/purchase"
tags: ["miniapp"]
---

# Purchase Tariff Endpoint

`POST /miniapp/subscription/tariff/purchase`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/miniapp/subscription/tariff/purchase/post.ts> (a function with typed inputs; its response is checked against the schema)

Покупка или смена тарифа.

## Request body

- MiniAppTariffPurchaseRequest: Запрос на покупку/смену тарифа.
  - `initData` string, required
  - `tariffId` integer, required
  - `periodDays` integer, required

## Response `200`

Successful Response

- MiniAppTariffPurchaseResponse: Ответ на покупку тарифа.
  - `success` boolean
  - `message` string, nullable
  - `subscription_id` integer, nullable
  - `tariff_id` integer, nullable
  - `tariff_name` string, nullable
  - `new_end_date` string, date-time, nullable
  - `balance_kopeks` integer, nullable
  - `balance_label` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `2360876ff9c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/changes/miniapp/subscription/tariff/purchase/post.md)

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
