> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List the rules a transaction matched

> Lists the rules that matched this transaction and opened an alert, newest first, with the severity and risk score each contributed. This is where a `FLAGGED` or `BLOCKED` status is explained: the transaction itself carries the resolved status and the highest risk score, not the individual matches. A rule that rejected the transaction opens no alert and is listed under `rejections` on the transaction instead, with a suspension that rejected it. An empty list with no rejections means the transaction passed every active rule.



## OpenAPI

````yaml /openapi/transaction-monitoring.json get /api/v1/transactions/{transaction_id}/rules/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/transactions/{transaction_id}/rules/:
    get:
      tags:
        - Transactions
      summary: List the rules a transaction matched
      description: >-
        Lists the rules that matched this transaction and opened an alert,
        newest first, with the severity and risk score each contributed. This is
        where a `FLAGGED` or `BLOCKED` status is explained: the transaction
        itself carries the resolved status and the highest risk score, not the
        individual matches. A rule that rejected the transaction opens no alert
        and is listed under `rejections` on the transaction instead, with a
        suspension that rejected it. An empty list with no rejections means the
        transaction passed every active rule.
      operationId: transactions_rules_retrieve
      parameters:
        - in: path
          name: transaction_id
          schema:
            type: string
            format: uuid
            description: Primary key
          required: true
          description: Identifies the transaction.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionRuleHits'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TransactionRuleHits:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/TransactionRuleHit'
        total:
          type: integer
          description: How many items the list holds
      required:
        - items
        - total
    TransactionRuleHit:
      type: object
      properties:
        alertId:
          type: string
          format: uuid
          readOnly: true
        ruleId:
          type: string
          format: uuid
          description: Rule that matched, if still present
          nullable: true
          readOnly: true
        ruleName:
          type: string
          readOnly: true
          description: Denormalized rule name snapshot at match time
        severity:
          type: string
          readOnly: true
          description: Severity copied from the matching rule
        riskScore:
          type: integer
          readOnly: true
          description: Risk score copied from the matching rule
        blocksTransaction:
          type: boolean
          readOnly: true
          description: >-
            Derived mirror of `outcome_status` holding the payment (BLOCKED or
            SUSPEND_PROFILE), dual-written by save() for readers that predate
            `outcome_status`; not independently writable
        alertStatus:
          type: string
          readOnly: true
        investigationId:
          type: string
          format: uuid
          description: Investigation/case this alert belongs to, if grouped
          nullable: true
          readOnly: true
        createdAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - alertId
        - alertStatus
        - blocksTransaction
        - createdAt
        - investigationId
        - riskScore
        - ruleId
        - ruleName
        - severity
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [List submitted transactions](https://documentation.idenfy.com/api-reference/transaction-monitoring/ingest/list-submitted-transactions.md)
- [List alerts](https://documentation.idenfy.com/api-reference/transaction-monitoring/alerts/list-alerts.md)
- [List rules](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/list-rules.md)
- [List transactions](https://documentation.idenfy.com/api-reference/transaction-monitoring/transactions/list-transactions.md)
- [Transaction Monitoring Dashboard: Transactions](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/transactions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.