{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ohmyfin-ai/json-schema/ohmyfin-ai-sanctions-match-schema.json",
  "title": "SanctionsMatch",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ohmyfin-ai-openapi.json#/components/schemas/SanctionsMatch",
  "type": "object",
  "properties": {
    "entity_id": {
      "type": "string",
      "description": "Entity ID for detail lookup via `/sanctions/entity/{entityId}`."
    },
    "name": {
      "type": "string"
    },
    "list_source": {
      "type": "string",
      "description": "Sanctions list identifier."
    },
    "list_name": {
      "type": "string",
      "description": "Full list name."
    },
    "severity": {
      "type": "string",
      "description": "Audit-grade classification of the sanctions designation.",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "action": {
      "type": "string",
      "description": "Required action for transactions involving this entity.",
      "enum": [
        "BLOCK",
        "REVIEW",
        "MONITOR",
        "INFORM"
      ]
    },
    "action_label": {
      "type": "string",
      "description": "Human-readable description of the required action."
    },
    "match_score": {
      "type": "number",
      "description": "Match confidence (0.0 - 1.0)."
    },
    "match_type": {
      "type": "string",
      "description": "How the match was determined (e.g. `exact_name`, `fuzzy_name`, `alias`)."
    },
    "entity_type": {
      "type": "string",
      "description": "Upstream classification of the entity. Values include `person`,\n`organization`/`entity`, `vessel`, `aircraft`, `unknown`.\n"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "programs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Sanctions programs the entity is designated under."
    },
    "addresses": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "identifiers": {
      "type": "array",
      "description": "Passport / tax-ID / national-ID records.",
      "items": {
        "type": "object"
      }
    },
    "dates_of_birth": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "places_of_birth": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "nationalities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "remarks": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free-text designation context from the upstream watchlist."
    },
    "sanctions_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "legal_authorities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "address_signal": {
      "type": "object",
      "description": "Present when the screening engine returns it (optional, upstream sanctions\nchanges/0002), and only for a screen that supplied an `address`. It is the\nengine's own reading of what your address did to THIS candidate, passed\nthrough unchanged. Absent means the engine sent none: it is never derived\nor invented here, so do not treat an absent block as \"no address verdict\".\n",
      "properties": {
        "status": {
          "type": "string",
          "description": "`agrees` - your address matched this entry's address at `tier`.\n`conflicts` - the address countries disagree (the only tier that\nconflicts). `unknown` - this entry carries no usable address.\n`not_evaluated` - the engine did not adjudicate the address.\n",
          "enum": [
            "agrees",
            "conflicts",
            "unknown",
            "not_evaluated"
          ]
        },
        "tier": {
          "type": [
            "string",
            "null"
          ],
          "description": "How closely it matched. `country` is the weakest and scores 0.00 on\npurpose; only `street` and `city` are meaningful corroboration.\n",
          "enum": [
            "street",
            "city",
            "country",
            null
          ]
        },
        "applied": {
          "type": "boolean",
          "description": "Whether the adjudication moved anything. False under\n`secondary_match_mode: annotate`, where a country conflict is reported\nbut the candidate's action is left alone.\n"
        },
        "basis": {
          "type": "string",
          "description": "Plain-language explanation, when the engine sends one."
        }
      }
    },
    "derivation": {
      "type": [
        "object",
        "null"
      ],
      "description": "Set ONLY on a row derived from a company register (list_source\n`Sanctions-Ownership-Derived-Block` BLOCK, `Sanctions-Ownership-Derived`\nREVIEW, `Sanctions-Ownership-Derived-Former` INFORM): a company, or an owner\nof one, that the UK Companies House register or GLEIF links to a listed\nparty that owns, controls or directs it. `null` on every other list.\nPassed through exactly as the screening engine sends it: `derivation[]`\n(one entry per regime and holder: `source`, `regime`, `status`, `basis`,\n`served_as`, `identity`, `chain[]`), `subject`, `register_as_of` /\n`gleif_as_of`, `sources`, `not_a_designation: true`. The row's `action`\nalready includes the 50% rule; do not re-derive it. It is our derivation,\nnot a designation: confirm identity, ownership and control before acting.\nSee https://ohmyfin.ai/docs/api.\n"
    },
    "ownership_reason": {
      "type": "string",
      "description": "Present only when `derivation` is set: why the row is on its list, in one\nEnglish sentence (for example \"Its director is on OFAC: SDN\"). Added by\nOhmyfin from `derivation`; it never changes the row's `action`.\n"
    }
  }
}