Obter uma organização
RegistosGET /organizations/{organizationID}
Returns the organization record, including its status and billing mode, to staff signed in to that organization. The caller must be acting in an organization context whose ID matches the path and must hold the organization:accounts:read scope; otherwise the call returns 403.
Parâmetros
organizationIDID of the organization; it must equal the organization the caller is currently acting in, or the request is refused.
Devolve
200 Organization profile
Mostrar atributos
idnametypeum de
utility,authority,operator,regulator,partner,groupstatusutility_kindum de
authority,municipal,regional,national,rural,private,industrialbilling_modeum de
account,organization
Erros 403
Permissões organization:accounts:read · Funções: account_admin, account_analyst, account_finance, account_owner, account_support
curl -X GET "$BUSINESS_API/organizations/{organizationID}" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/organizations/{organizationID}", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/organizations/{organizationID}",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/organizations/{organizationID}", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"id": "org_2ZNeUPlw01Za6RbKMZDGGbR4cV5",
"name": "Ana Matsinhe",
"type": "utility",
"status": "active",
"utility_kind": "authority",
"billing_mode": "account"
}