Obter uma política de decisão
RegistosGET /decision-policies/{type}
Returns the tenant's decision policy for one approval type, with its mode and current version. When the tenant has never configured that type, a default policy in human mode is returned without being saved. Requires automations:read; an unknown approval type returns 400.
Parâmetros
typeApproval type: billing_posting, price_version_publication, manual_journal_entry, supplier_payout, refund, write_off or cut_approval.
Devolve
200 Policy with its current mode, limits and version
Permissões automations:read · Funções: admin, analyst, customer_service, finance, operations, owner
curl -X GET "$BUSINESS_API/decision-policies/{type}" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/decision-policies/{type}", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/decision-policies/{type}",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/decision-policies/{type}", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Policy with its current mode, limits and version