Перейти до основного вмісту
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