GET The workspace’s plan, subscription and plan history
/api/clist/v1/workspaces/{workspaceId}/billing
API key scope: workspace.update
The plan in force and who manages it, the subscription paying for it (renewing, or ending at paid_through), a change already scheduled (a downgrade starts when the paid period ends), and past plan changes, newest first. Owners and admins.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsonplan_keystring requiredmanaged_byone of: "billing", "operator", "default" requiredself_serviceboolean requiredsubscriptionobject or null requiredplan_keystring requiredintervalone of: "month", "year" requiredstateone of: "renewing", "ending" requiredpaid_throughstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
scheduledobject or null requiredplan_keystring requiredintervalone of: "month", "year" requiredstarts_atstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
historyarray of object requiredatstring (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.fromstring requiredtostring requiredsourceone of: "billing", "operator" required
Errors come in the error format.
GET The plans, and what moving to each would mean
/api/clist/v1/workspaces/{workspaceId}/billing/plans
API key scope: workspace.update
Every plan with its main limits and features, the prices and intervals sold, and for each option whether it is the current plan, an upgrade (at once) or a downgrade (when the paid period ends). For smaller plans, over_limit and features_lost preview what the workspace would be over: nothing is deleted, only new use is blocked. Enterprise is always contact.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspaceId | path | string (uuid) | yes |
Responses
- 200
application/jsoncurrencystring requiredplansarray of object requiredkeystring requiredlimitsobject requiredfeaturesobject requiredoptionsarray of object requiredintervalone of: "month", "year" or null requiredactionone of: "current", "upgrade", "downgrade", "resume", "scheduled", "contact", "unavailable" requiredpricestring or null requiredeffective_atstring (date-time) or null required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
over_limitarray of object requiredkeystring requiredusednumber requiredlimitnumber required
features_lostarray of string required
Errors come in the error format.