Billing

Subscribe to a plan

Subscribes the workspace to a plan, or switches its subscription to it, which can charge the workspace; Get a plan quote shows the charge and start date first. When a card must be added first the answer carries a payment_url to open, otherwise the subscription after the change. A workspace already on that plan gets its subscription back unchanged.

POST
/billing/subscriptions

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
plan_idstringrequired

The id of one of the plans on offer.

Response

application/json

Success

payment_urlstring | nullrequired

The checkout page to open when a card must be added first; null when nothing more is needed.

subscriptionobject | nullrequired

The subscription after the change; null when payment_url is set.