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

# GET /tpa/transaction/rules/list

> Query parameters inferred from handler; see source for edge cases.



## OpenAPI

````yaml /api-reference/trust-accounting/openapi.json get /tpa/transaction/rules/list
openapi: 3.0.3
info:
  title: Stax API (stack, tpa, document)
  description: >-
    Routes under /stack, /tpa, and /document. Parameters and JSON bodies are
    inferred from Express handlers; multipart and streaming responses are called
    out explicitly. Session auth uses cookies userId + authToken or headers
    x-user-id + x-auth-token; API keys use Authorization.
  version: 1.0.0
servers:
  - url: /
    description: Relative to API host
security: []
tags:
  - name: stack
    description: Stack (workspace) operations
  - name: tpa
    description: Trust plan accounting (TPA)
  - name: document
    description: Document operations
paths:
  /tpa/transaction/rules/list:
    get:
      tags:
        - tpa
      summary: GET /tpa/transaction/rules/list
      description: Query parameters inferred from handler; see source for edge cases.
      operationId: get_tpa_transaction_rules_list
      parameters:
        - name: accountId
          in: query
          schema:
            $ref: '#/components/schemas/ObjectId'
          required: false
        - name: limit
          in: query
          schema:
            type: integer
          required: false
        - name: offset
          in: query
          schema:
            type: integer
          required: false
        - name: planId
          in: query
          schema:
            $ref: '#/components/schemas/ObjectId'
          required: false
      responses:
        '200':
          description: JSON response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  rules:
                    type: array
                    items:
                      $ref: '#/components/schemas/ClassificationRule'
                  total:
                    type: integer
                additionalProperties: true
        '401':
          description: Not authorized
      security:
        - SessionCookies: []
          UserIdCookie: []
        - ApiKeyAuth: []
components:
  schemas:
    ObjectId:
      type: string
      pattern: ^[a-fA-F0-9]{24}$
      description: 24-character hexadecimal MongoDB ObjectId
    ClassificationRule:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        team:
          $ref: '#/components/schemas/ObjectId'
        name:
          type: string
        scope:
          type: string
          enum:
            - plan
            - account
        referenceId:
          $ref: '#/components/schemas/ObjectId'
        enabled:
          type: boolean
        priority:
          type: integer
        txType:
          type: string
        match:
          type: string
          enum:
            - all
            - any
        when:
          type: array
          items:
            type: object
            required:
              - field
              - op
              - value
            properties:
              field:
                type: string
              op:
                type: string
              value: {}
            additionalProperties: true
        then:
          type: array
          items:
            type: object
            required:
              - field
              - value
            properties:
              field:
                type: string
              value: {}
            additionalProperties: true
      additionalProperties: true
  securitySchemes:
    SessionCookies:
      type: apiKey
      in: cookie
      name: authToken
      description: Session token (with userId cookie or x-user-id / x-auth-token headers)
    UserIdCookie:
      type: apiKey
      in: cookie
      name: userId
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: Authorization header (API key flow)

````

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