Skip to main content
POST
/
miniapp
/
subscription
/
renewal
Submit Subscription Renewal Endpoint
curl --request POST \
  --url http://localhost:8080/miniapp/subscription/renewal \
  --header 'Content-Type: application/json' \
  --data '
{
  "initData": "<string>",
  "subscriptionId": 123,
  "periodId": "<string>",
  "periodDays": 123,
  "method": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "balanceKopeks": 123,
  "balanceLabel": "<string>",
  "subscriptionId": 123,
  "renewedUntil": "2023-11-07T05:31:56Z",
  "requiresPayment": false,
  "paymentMethod": "<string>",
  "paymentUrl": "<string>",
  "paymentAmountKopeks": 123,
  "paymentId": 123,
  "invoiceId": "<string>",
  "paymentPayload": "<string>",
  "paymentExtra": {}
}

Body

application/json
initData
string
required
subscriptionId
integer | null
periodId
string | null
periodDays
integer | null
method
string | null

Response

Successful Response

success
boolean
default:true
message
string | null
balanceKopeks
integer | null
balanceLabel
string | null
subscriptionId
integer | null
renewedUntil
string<date-time> | null
requiresPayment
boolean
default:false
paymentMethod
string | null
paymentUrl
string | null
paymentAmountKopeks
integer | null
paymentId
integer | null
invoiceId
string | null
paymentPayload
string | null
paymentExtra
Paymentextra · object