---
title: "Activate Promo Code"
method: POST
path: "/miniapp/promo-codes/activate"
tags: ["miniapp"]
---

# Activate Promo Code

`POST /miniapp/promo-codes/activate`

## Request

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

Активация промокода в мини-приложении.

## Request body

- MiniAppPromoCodeActivationRequest
  - `initData` string, required
  - `code` string, required

## Response `200`

Successful Response

- MiniAppPromoCodeActivationResponse
  - `success` boolean
  - `description` string, nullable
  - `promocode` MiniAppPromoCode
    - `code` string, required
    - `type` string, nullable
    - `balance_bonus_kopeks` integer
    - `subscription_days` integer
    - `max_uses` integer, nullable
    - `current_uses` integer, nullable
    - `valid_until` string, date-time, 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/promo-codes/activate/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)
