GET /teams/{teamId}/billing/plans
Lista planos públicos+ativos
- Acesso: Membro da equipe
- Serviço:
https://api-billing.axuz.net
Autenticação aceita
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
Responde GET /teams/{teamId}/billing/plans devolvendo apenas os planos ativos+públicos (self-service). Efeito: SELECT em subscription_plans filtrado.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim |
Respostas
200
planos
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
items | array<BillingPlan> | não | |
items[].id | string<uuid> | não | |
items[].slug | string | não | |
items[].name | string | não | |
items[].tier | string | não | |
items[].description | string | não | |
items[].price_monthly_cents | integer | não | |
items[].price_yearly_cents | integer | não | |
items[].currency | string | não | |
items[].trial_days | integer | não | |
items[].limits | object | não | |
items[].is_active | boolean | não | |
items[].is_public | boolean | não | |
items[].sort_order | integer | não | |
items[].created_at | string<date-time> | não | |
items[].updated_at | string<date-time> | não |
401
Sem credencial valida
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
403
Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
erro interno
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X GET 'https://api-billing.axuz.net/teams/TEAM_ID/billing/plans' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://api-billing.axuz.net/teams/TEAM_ID/billing/plans", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"GET",
"https://api-billing.axuz.net/teams/TEAM_ID/billing/plans",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())