curl --request POST \
--url http://localhost:8080/miniapp/subscription/tariffs \
--header 'Content-Type: application/json' \
--data '
{
"initData": "<string>"
}
'{
"success": true,
"sales_mode": "tariffs",
"tariffs": [
{
"id": 123,
"name": "<string>",
"traffic_limit_gb": 123,
"traffic_limit_label": "<string>",
"device_limit": 123,
"servers_count": 123,
"description": "<string>",
"tier_level": 1,
"is_unlimited_traffic": false,
"servers": [
{
"uuid": "<string>",
"name": "<string>"
}
],
"periods": [
{
"days": 123,
"label": "<string>",
"price_kopeks": 123,
"price_label": "<string>",
"months": 123,
"price_per_month_kopeks": 123,
"price_per_month_label": "<string>",
"original_price_kopeks": 123,
"original_price_label": "<string>",
"discount_percent": 0
}
],
"is_current": false,
"is_available": true,
"switch_cost_kopeks": 123,
"switch_cost_label": "<string>",
"is_upgrade": true,
"is_switch_free": true,
"is_daily": false,
"daily_price_kopeks": 0,
"daily_price_label": "<string>"
}
],
"current_tariff": {
"id": 123,
"name": "<string>",
"traffic_limit_gb": 123,
"traffic_limit_label": "<string>",
"device_limit": 123,
"servers_count": 123,
"description": "<string>",
"tier_level": 1,
"is_unlimited_traffic": false,
"monthly_price_kopeks": 0,
"traffic_topup_enabled": false,
"traffic_topup_packages": [
{
"gb": 123,
"price_kopeks": 123,
"price_label": "<string>",
"original_price_kopeks": 123,
"original_price_label": "<string>",
"discount_percent": 0
}
],
"max_topup_traffic_gb": 0,
"available_topup_gb": 123,
"is_daily": false,
"daily_price_kopeks": 0,
"daily_price_label": "<string>"
},
"balance_kopeks": 0,
"balance_label": "<string>",
"promo_group": {
"id": 123,
"name": "<string>",
"server_discount_percent": 0,
"traffic_discount_percent": 0,
"device_discount_percent": 0,
"period_discounts": {},
"apply_discounts_to_addons": true
}
}Возвращает список доступных тарифов для пользователя.
curl --request POST \
--url http://localhost:8080/miniapp/subscription/tariffs \
--header 'Content-Type: application/json' \
--data '
{
"initData": "<string>"
}
'{
"success": true,
"sales_mode": "tariffs",
"tariffs": [
{
"id": 123,
"name": "<string>",
"traffic_limit_gb": 123,
"traffic_limit_label": "<string>",
"device_limit": 123,
"servers_count": 123,
"description": "<string>",
"tier_level": 1,
"is_unlimited_traffic": false,
"servers": [
{
"uuid": "<string>",
"name": "<string>"
}
],
"periods": [
{
"days": 123,
"label": "<string>",
"price_kopeks": 123,
"price_label": "<string>",
"months": 123,
"price_per_month_kopeks": 123,
"price_per_month_label": "<string>",
"original_price_kopeks": 123,
"original_price_label": "<string>",
"discount_percent": 0
}
],
"is_current": false,
"is_available": true,
"switch_cost_kopeks": 123,
"switch_cost_label": "<string>",
"is_upgrade": true,
"is_switch_free": true,
"is_daily": false,
"daily_price_kopeks": 0,
"daily_price_label": "<string>"
}
],
"current_tariff": {
"id": 123,
"name": "<string>",
"traffic_limit_gb": 123,
"traffic_limit_label": "<string>",
"device_limit": 123,
"servers_count": 123,
"description": "<string>",
"tier_level": 1,
"is_unlimited_traffic": false,
"monthly_price_kopeks": 0,
"traffic_topup_enabled": false,
"traffic_topup_packages": [
{
"gb": 123,
"price_kopeks": 123,
"price_label": "<string>",
"original_price_kopeks": 123,
"original_price_label": "<string>",
"discount_percent": 0
}
],
"max_topup_traffic_gb": 0,
"available_topup_gb": 123,
"is_daily": false,
"daily_price_kopeks": 0,
"daily_price_label": "<string>"
},
"balance_kopeks": 0,
"balance_label": "<string>",
"promo_group": {
"id": 123,
"name": "<string>",
"server_discount_percent": 0,
"traffic_discount_percent": 0,
"device_discount_percent": 0,
"period_discounts": {},
"apply_discounts_to_addons": true
}
}Запрос списка тарифов.
Successful Response
Ответ со списком тарифов.
Show child attributes
Текущий тариф пользователя.
Show child attributes
Show child attributes