Obter a subscrição
RegistosGET /subscription
Get utility's active platform SaaS subscription and entitlements
Returns the tenant's platform subscription: its plan ID, status (for example trialing, active, past_due, suspended or cancelled), current billing period, trial end, and whether it is set to cancel at the period end. Plan limits are not embedded; read them from the plan the plan_id points to. Returns 404 when the tenant has no subscription; requires business:subscription:read.
Devolve
Permissões business:subscription:read · Funções: admin, analyst, finance, owner, viewer
curl -X GET "$BUSINESS_API/subscription" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/subscription", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/subscription",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/subscription", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Active subscription and entitlement limits