Skip to main content
POST
/
miniapp
/
subscription
/
renewal
/
options
Get Subscription Renewal Options Endpoint
curl --request POST \
  --url http://localhost:8080/miniapp/subscription/renewal/options \
  --header 'Content-Type: application/json' \
  --data '
{
  "initData": "<string>",
  "subscriptionId": 123
}
'
{
  "currency": "<string>",
  "success": true,
  "subscriptionId": 123,
  "balanceKopeks": 123,
  "balanceLabel": "<string>",
  "promoGroup": {
    "id": 123,
    "name": "<string>",
    "server_discount_percent": 0,
    "traffic_discount_percent": 0,
    "device_discount_percent": 0,
    "period_discounts": {},
    "apply_discounts_to_addons": true
  },
  "promoOffer": {},
  "periods": [
    {
      "id": "<string>",
      "days": 123,
      "months": 123,
      "priceKopeks": 123,
      "priceLabel": "<string>",
      "originalPriceKopeks": 123,
      "originalPriceLabel": "<string>",
      "discountPercent": 0,
      "pricePerMonthKopeks": 123,
      "pricePerMonthLabel": "<string>",
      "isRecommended": false,
      "description": "<string>",
      "badge": "<string>",
      "title": "<string>"
    }
  ],
  "defaultPeriodId": "<string>",
  "missingAmountKopeks": 123,
  "statusMessage": "<string>",
  "autopay_enabled": false,
  "autopay_days_before": 123,
  "autopay_days_options": [
    123
  ],
  "autopay": {
    "enabled": false,
    "autopay_enabled": true,
    "autopay_enabled_at": "2023-11-07T05:31:56Z",
    "days_before": 123,
    "autopay_days_before": 123,
    "default_days_before": 123,
    "autopay_days_options": [
      123
    ],
    "days_options": [
      123
    ],
    "options": [
      123
    ]
  },
  "autopay_settings": {
    "enabled": false,
    "autopay_enabled": true,
    "autopay_enabled_at": "2023-11-07T05:31:56Z",
    "days_before": 123,
    "autopay_days_before": 123,
    "default_days_before": 123,
    "autopay_days_options": [
      123
    ],
    "days_options": [
      123
    ],
    "options": [
      123
    ]
  },
  "isTrial": false,
  "salesMode": "classic"
}

Body

application/json
initData
string
required
subscriptionId
integer | null

Response

Successful Response

currency
string
required
success
boolean
default:true
subscriptionId
integer | null
balanceKopeks
integer | null
balanceLabel
string | null
promoGroup
MiniAppPromoGroup · object
promoOffer
Promooffer · object
periods
MiniAppSubscriptionRenewalPeriod · object[]
defaultPeriodId
string | null
missingAmountKopeks
integer | null
statusMessage
string | null
autopay_enabled
boolean
default:false
autopay_days_before
integer | null
autopay_days_options
integer[]
autopay
MiniAppSubscriptionAutopay · object
autopay_settings
MiniAppSubscriptionAutopay · object
isTrial
boolean
default:false
salesMode
string
default:classic