Перейти к основному содержанию
PATCH
Update revenue recovery settings

Авторизации

Authorization
string
header
обязательно

API token from the Zenedu dashboard

Параметры пути

bot
integer
обязательно

Bot ID

Тело

application/json

Only the passed fields change.

retries_enabled
boolean

Repeat a failed scheduled charge by the schedule; off = the subscription is cancelled right after the failed charge

schedule
enum<string>

flexible needs the Pro plan

Доступные опции:
standard,
flexible
attempts
integer

Flexible schedule: number of attempts, at most one per day; pass together with period_days and not more than period_days

Требуемый диапазон: 1 <= x <= 10
period_days
integer

Flexible schedule: recovery period in days after the failed scheduled charge; pass together with attempts

Требуемый диапазон: 3 <= x <= 30
failed_charge_enabled
object

Switch per stage; any plan

failed_charge_texts
object

Own text per stage, Telegram HTML with placeholders {{name}}, {{offer}}, {{price}}, {{next_attempt_date}}; blank = the default text (Pro)

failed_charge_buttons
object

Text of the «Pay with another card» button under the first and intermediate notifications; blank = the default text (Pro)

monthly_report_enabled
boolean

Ответ

Revenue recovery settings

data
object