{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-policy-evaluate-request-schema.json",
  "title": "PolicyEvaluateRequest",
  "description": "Transaction facts evaluated against the active ruleset. Rule `when` clauses may reference ANY field, so the object is open; the fields below are the ones the default ruleset and the handler use.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-policy-api-openapi.yml#/components/schemas/PolicyEvaluateRequest",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "amount": {
      "type": "number"
    },
    "channel": {
      "type": "string",
      "description": "e.g. 'ecom' or 'pos'."
    },
    "cumulative_24h": {
      "type": "number"
    },
    "verification_age_days": {
      "type": "number"
    },
    "kyt_risk_level": {
      "type": "string",
      "description": "e.g. high or critical triggers step-up in the default ruleset."
    },
    "sanctions_hit": {
      "type": "boolean"
    },
    "card_ref": {
      "type": "string",
      "description": "Card identifier; obligations are de-duplicated per card (max 255 chars)."
    },
    "transaction_ref": {
      "type": "string"
    },
    "submission_id": {
      "type": "string"
    },
    "card_cumulative_total": {
      "type": "number"
    },
    "dl_on_file": {
      "type": "boolean",
      "description": "Whether a driving licence is already held. When omitted it is derived from the obligation ledger by card_ref."
    }
  }
}