For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact SalesGet Support
HomeGuidesAPI reference
HomeGuidesAPI reference
  • Middesk API
        • Action
        • Address
        • Adverse Media Screening
        • Bankruptcy
        • Business
        • Certification
        • Document
        • Formation
        • Industry Classification
        • Lien
        • Litigation
        • Monitor
        • Names
        • Order
        • Person
        • Policy Result
        • Politically Exposed Persons Screening
        • Registration
        • Review Task
        • Signal
        • Tax exempt organization
        • TIN
        • Watchlist
        • Website
        • Profile
LogoLogo
Contact SalesGet Support
On this page
  • Policy result attributes
  • Policy action result attributes
  • Common result values
Middesk APIBusiness VerificationObject reference

Policy result object

Was this page helpful?
Previous

Politically exposed persons screening object

Next
Built with

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
1{
2 "object": "policy_result",
3 "id": "f074244d-5cf3-4703-950a-73a7d54ee555",
4 "result": "approved",
5 "name": "Standard Verification Policy",
6 "matched": "all_conditions",
7 "executed": true,
8 "type_of": "business_verification",
9 "business_id": "b3638510-87ec-425e-bdaa-ad6e48dec871",
10 "owner_id": "b3638510-87ec-425e-bdaa-ad6e48dec871",
11 "owner_type": "Business",
12 "details": {
13 "conditions_evaluated": 5,
14 "conditions_passed": 5
15 },
16 "policy_action_results": [
17 {
18 "object": "policy_action_result",
19 "id": "action-123",
20 "action_type": "verify_tin",
21 "result": "passed",
22 "details": {
23 "tin_verified": true,
24 "name_match": true
25 }
26 },
27 {
28 "object": "policy_action_result",
29 "id": "action-124",
30 "action_type": "check_registration",
31 "result": "passed",
32 "details": {
33 "status": "active"
34 }
35 }
36 ],
37 "created_at": "2024-01-30T23:49:01.100Z"
38}

Policy result attributes

AttributeTypeDescription
objectstringThe object type. Always policy_result.
idstringThe unique identifier for the policy result.
resultstringThe overall outcome of the policy evaluation.
namestring | nullThe name of the policy that was evaluated.
matchedstring | nullIndicates which conditions were matched.
executedbooleanWhether the policy was fully executed.
type_ofstringThe type of policy result.
business_idstringThe unique identifier of the evaluated business.
owner_idstringThe polymorphic owner ID.
owner_typestringThe polymorphic owner type.
detailsobjectAdditional details about the policy evaluation.
policy_action_resultsPolicyActionResult[]An array of individual action results from the policy.
created_attimestampThe 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.

AttributeTypeDescription
objectstringThe object type. Always policy_action_result.
idstringThe unique identifier for the action result.
action_typestringThe type of action that was evaluated.
resultstringThe outcome of the individual action.
detailsobjectAdditional details specific to the action type.

Common result values

ResultDescription
approvedThe business passed all policy conditions and was approved.
rejectedThe business failed one or more policy conditions and was rejected.
reviewThe business requires manual review before a final decision.
pendingThe policy evaluation is still in progress.
Get a demo
Contact your account manager or contact sales to inquire about access.