Перейти до основного вмісту
PATCH

Авторизації

Authorization
string
header
обов'язково

API token from the Zenedu dashboard

Параметри шляху

bot
integer
обов'язково

Bot ID

subscription
integer
обов'язково

Subscription ID

Тіло

application/json

Pass exactly one of renewal_date or days.

renewal_date
string<date-time>

New next payment date (ISO 8601; a timezone offset is converted to UTC, a date without an offset is read as UTC). Must be in the future and no later than 3650 days from now.

days
integer

Number of days to move the next payment date forward from the current one

Необхідний діапазон: 1 <= x <= 3650

Відповідь

Subscription with the new payment date in expired_at

data
object