Skip to main content
PATCH
Update revenue recovery settings

Authorizations

Authorization
string
header
required

API token from the Zenedu dashboard

Path Parameters

bot
integer
required

Bot ID

Body

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

Available options:
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

Required range: 1 <= x <= 10
period_days
integer

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

Required range: 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

Response

Revenue recovery settings

data
object