Billing

Gets the usage of a workspace

get

Get the usage data for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get usage data for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The usage of the workspace

application/json
Responseany of
or
nullOptional
get
/billing/{workspace_id}/workspace-usage

Gets the usage of a drive

get

Get the usage data for a drive

Path parameters
drive_idstring · uuidRequired

The ID of the drive to get usage data for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The usage of the drive

application/json
get
/billing/{drive_id}/drive-usage

Gets the usage of a workspace

get

Get the usage data for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get usage data for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The usage of the workspace

application/json
Responseany of
or
nullOptional
get
/billing/{workspace_id}/usage

Gets the invoices for a workspace

get

Get the invoices for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get invoices for

Query parameters
upcomingbooleanOptional

Whether to get the upcoming invoice

Default: false
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The invoices of the workspace

application/json
Responseany of
or
nullOptional
get
/billing/{workspace_id}/invoices

Update Payment Method

put

Update the payment method for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the payment method for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
payment_method_idstringRequired

The ID of the payment method to update to

is_firstany ofOptional

Whether this is the first added payment method (not updated later on)

Default: false
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany of
or
nullOptional
put
/billing/{workspace_id}/payment-method

Update Billing Address

put

Update the billing address for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the billing address for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
payment_method_idstringRequired

The ID of the payment method to update to

Responses
chevron-right
200

Successful Response

application/json
Responseany
put
/billing/{workspace_id}/billing-address

No content

Get Payment Methods

get

Get the payment methods for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the payment methods for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
get
/billing/{workspace_id}/payment-methods

Update Plan

put

Update the plan for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the plan for

Query parameters
price_idstringRequired

The ID of the price plan to update to

seatsany ofOptional

The number of seats to update to

integerOptional
or
nullOptional
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
Responseany
put
/billing/{workspace_id}/plan

No content

Get Current Invoice

get

Get the current invoice for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the current invoice for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
get
/billing/{workspace_id}/current-invoice

Get Upcoming Monthly Invoice

get

Get the upcoming monthly invoice for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the upcoming monthly invoice for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
Responseany of
or
nullOptional
get
/billing/{workspace_id}/upcoming-monthly-invoice

Get Annual Subscriptions

get

Get the annual subscriptions for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the annual subscriptions for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
Responseany
get
/billing/{workspace_id}/annual-subscriptions

No content

Update Billing Email

put

Update the billing email for a workspace on stripe

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the billing email for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
emailstringRequired

The email to update the billing email to

Responses
chevron-right
200

Successful Response

application/json
Responseany
put
/billing/{workspace_id}/billing-email

No content

Last updated