Pular para o conteúdo principal
POST
/
api
/
workspace
/
{workspaceId}
/
billing
/
checkout
Create checkout session
curl --request POST \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/billing/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "standard",
  "billing_period": "monthly",
  "coupon_code": "<string>"
}
'
{
  "checkout_url": "<string>",
  "session_id": "<string>"
}

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication via Auth0. Users authenticate through Auth0 Universal Login. Include the access token in the Authorization header: Authorization: Bearer <token>

Parâmetros de caminho

workspaceId
string
obrigatório

The workspace ID

Pattern: ^ws_[a-z0-9]+$

Corpo

application/json
plan
enum<string>
obrigatório
Opções disponíveis:
standard,
pro,
business,
enterprise
billing_period
enum<string>
padrão:monthly
Opções disponíveis:
monthly,
annual
coupon_code
string | null

Resposta

Checkout session created successfully

checkout_url
string<uri>
session_id
string
Last modified on February 16, 2026