Billing
billing
Cancel Subscription
Cancel the user's subscription.
Steps:
- Generate a final Stripe invoice for any unbilled completed optimizations
- Mark users.is_active = FALSE, users.cancelled_at = NOW()
- Mark youtube_channels.is_active = FALSE for the user's channels
- Mark videos.optimization_paused = TRUE for the user's videos
- Mark in-flight (status='measuring') video_optimizations as billable=FALSE
- Send cancellation notification
Already-enqueued Cloud Tasks are NOT walked or deleted; the gate added to optimization_queue.process_single_optimization will no-op them.
post/api/billing/cancel
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.