Skip to main content
POST
/
miniapp
/
subscription
/
purchase
/
preview
Subscription Purchase Preview Endpoint
curl --request POST \
  --url http://localhost:8080/miniapp/subscription/purchase/preview \
  --header 'Content-Type: application/json' \
  --data '
{
  "initData": "<string>",
  "subscriptionId": 123,
  "selection": {},
  "periodId": "<string>",
  "periodDays": 123,
  "period": "<string>",
  "trafficValue": 123,
  "traffic": 123,
  "trafficGb": 123,
  "servers": [
    "<string>"
  ],
  "countries": [
    "<string>"
  ],
  "serverUuids": [
    "<string>"
  ],
  "devices": 123,
  "deviceLimit": 123
}
'
{
  "success": true,
  "preview": {},
  "balanceKopeks": 123,
  "balanceLabel": "<string>"
}

Body

application/json
initData
string
required
subscriptionId
integer | null
selection
Selection · object
periodId
string | null
periodDays
integer | null
period
string | null
trafficValue
integer | null
traffic
integer | null
trafficGb
integer | null
servers
string[] | null
countries
string[] | null
serverUuids
string[] | null
devices
integer | null
deviceLimit
integer | null

Response

Successful Response

success
boolean
default:true
preview
Preview · object
balanceKopeks
integer | null
balanceLabel
string | null