Billing
Cancel a subscription
Stop future charges. The plan stays until the paid period ends.
Authentication
A signed-in session: the cookie from Log in. Changes also need the X-CSRF-Token header.
Response
200 OK
subscriptionobjectThe subscription, with cancel_at_period_end set.
Errors
| Status | Code | What to do |
|---|---|---|
| 409 | no_subscription | There's nothing to cancel. |
| 401 | unauthenticated | Log in first, or log in again. |
| 403 | csrf_failed | Send the csrf_token as X-CSRF-Token. |