Policy Result object
This page describes the policy_result object, which represents the outcome of evaluating a business against a policy or ruleset. Policy results contain the overall decision, matched conditions, and individual action results.
Example JSON response
Policy Result attributes
| Attribute | Type | Description |
|---|---|---|
object | string | The object type. Always policy_result. |
id | string | The unique identifier for the policy result. |
result | string | The overall outcome of the policy evaluation. |
name | string | null | The name of the policy that was evaluated. |
matched | string | null | Indicates which conditions were matched. |
executed | boolean | Whether the policy was fully executed. |
type_of | string | The type of policy result. |
business_id | string | The unique identifier of the evaluated business. |
owner_id | string | The polymorphic owner ID. |
owner_type | string | The polymorphic owner type. |
details | object | Additional details about the policy evaluation. |
policy_action_results | PolicyActionResult[] | An array of individual action results from the policy. |
created_at | timestamp | The timestamp when the policy result was created. |
Policy Action Result attributes
Each action within a policy produces its own result, captured in the policy_action_results array.
| Attribute | Type | Description |
|---|---|---|
object | string | The object type. Always policy_action_result. |
id | string | The unique identifier for the action result. |
action_type | string | The type of action that was evaluated. |
result | string | The outcome of the individual action. |
details | object | Additional details specific to the action type. |
Common result values
| Result | Description |
|---|---|
approved | The business passed all policy conditions and was approved. |
rejected | The business failed one or more policy conditions and was rejected. |
review | The business requires manual review before a final decision. |
pending | The policy evaluation is still in progress. |