Buy a plan (payment link)
subscribeCreates a LavaTop payment for a monthly plan (trial, start, growth, scale; prices in list_plans) and returns its payment_url and order id. Confirm the plan, price and currency with the user first. GIVE THE LINK TO THE USER: a person pays on LavaTop's page by card, SBP or PayPal (an agent cannot). Currency is also the method: RUB — Russian cards and SBP; USD — foreign cards, PayPal, Apple Pay (Russian cards pay only in RUB). A USD link lives 15 minutes, a RUB link 24 hours. A plan not yet sold online answers plan_unavailable: the user writes to support. Then poll get_payment_status every 15-30 s until paid; the plan's credits and briefs arrive with the payment and renew monthly until cancel_subscription. [REST: POST /api/billing/checkout]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan": "<plan>"
},
"name": "subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| currency | No | USD |