Billing

Move to a cheaper plan

Takes effect from the next charge.

POST/v1/billing/change-plan

To upgrade, or to switch between monthly and yearly, cancel and subscribe to the new plan.

Authentication

A signed-in session: the cookie from Log in. Changes also need the X-CSRF-Token header.

Body

planstringrequired

The cheaper plan.

intervalstringoptional

Must match the current subscription.

Response

200 OK

subscriptionobject

The subscription, with scheduled_plan set.

Errors

StatusCodeWhat to do
409no_subscriptionThere's nothing to change.
409same_planIt's already on this plan.
409plan_change_not_supportedCancel and subscribe to the new plan instead.
401unauthenticatedLog in first, or log in again.
403csrf_failedSend the csrf_token as X-CSRF-Token.