Analytics Churn
Churn rate по месяцам. v3 — переработана логика renewed.
Реальность: пользователи платят каждые ~30 дней, premium_until накапливается вперёд. Платёж ВСЕГДА приходит ДО истечения premium_until — значит искать p.created_at > premium_until бессмысленно.
Правильная логика:
- expired = пользователи у которых последний платёж был в данном месяце и с тех пор прошло > 37 дней (30 дней подписки + 7 дней grace period)
- renewed = те из expired у кого есть ещё один платёж после первого в этом месяце
get/admin/analytics/licenses/churn
Request
- Base URLhttps://api.open60m.ru (the document declares no server; this is the origin it was published from)
- Authnone declared
Query parameters
monthsinteger
Headers
authorizationstring
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 5 revisions of this API.