Create a checkout session
POST /api/workspaces/{workspaceId}/billing/checkout
POST
/api/workspaces/{workspaceId}/billing/checkout
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceId
required
string
Request Body
Section titled “Request Body ”object
successUrl
string format: uri
cancelUrl
string format: uri
returnUrl
string format: uri
Responses
Section titled “ Responses ”Stripe-hosted URL to redirect the user to.
object
url
required
string format: uri
Invalid request
object
success
boolean
error
required
string
Example
Human-readable error messageAuthentication required
object
success
boolean
error
required
string
Example
Human-readable error messageForbidden
object
success
boolean
error
required
string
Example
Human-readable error messageNot found
object
success
boolean
error
required
string
Example
Human-readable error messageConflict
object
success
boolean
error
required
string
Example
Human-readable error messageInternal server error
object
success
boolean
error
required
string
Example
Human-readable error message