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

# List exceptions

> Use this endpoint to retrieve all exceptions. You can filter the results by status, severity, assigned user, external system, and date range. The response uses cursor-based pagination.



## OpenAPI

````yaml /en/openapi/v3-current/matcher.yaml get /v1/exceptions
openapi: 3.1.0
info:
  title: Matcher APIs
  description: >-
    Complete API reference for the Matcher reconciliation engine, providing
    automated transaction matching between Midaz Ledger and external systems.
  version: v2.1.1
  license:
    name: Elastic License 2.0
    url: https://www.elastic.co/licensing/elastic-license
servers:
  - url: https://matcher.sandbox.lerian.net
security: []
paths:
  /v1/exceptions:
    get:
      tags:
        - Exception
      summary: List exceptions
      description: >-
        Use this endpoint to retrieve all exceptions. You can filter the results
        by status, severity, assigned user, external system, and date range. The
        response uses cursor-based pagination.
      operationId: listExceptions
      parameters:
        - description: A unique identifier for tracing the request across services.
          in: header
          name: X-Request-Id
          schema:
            type: string
        - description: Filter by status
          in: query
          name: status
          schema:
            type: string
            enum:
              - OPEN
              - ASSIGNED
              - PENDING_RESOLUTION
              - RESOLVED
        - description: Filter by severity
          in: query
          name: severity
          schema:
            type: string
            enum:
              - LOW
              - MEDIUM
              - HIGH
              - CRITICAL
        - description: Filter by assigned user
          in: query
          name: assigned_to
          schema:
            type: string
        - description: Filter by external system
          in: query
          name: external_system
          schema:
            type: string
            enum:
              - JIRA
              - SERVICENOW
              - WEBHOOK
        - description: Filter from date (RFC3339)
          in: query
          name: date_from
          schema:
            type: string
        - description: Filter to date (RFC3339)
          in: query
          name: date_to
          schema:
            type: string
        - description: The cursor value for retrieving the next page of results.
          in: query
          name: cursor
          schema:
            type: string
        - description: Number of items per page
          in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
        - description: The field used to sort the results.
          in: query
          name: sort_by
          schema:
            type: string
            enum:
              - id
              - created_at
              - updated_at
              - severity
              - status
            default: id
        - description: The order used to sort the results.
          in: query
          name: sort_order
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: >-
            Indicates that the request was successful and the response contains
            the expected data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListExceptionsResponse'
        '400':
          description: The request contains invalid parameters or payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The request lacks valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ListExceptionsResponse:
      description: Paginated list of exceptions
      properties:
        hasMore:
          example: true
          type: boolean
        items:
          description: List of exceptions
          items:
            $ref: '#/components/schemas/ExceptionResponse'
          type: array
        limit:
          example: 20
          maximum: 200
          minimum: 1
          type: integer
        nextCursor:
          example: eyJpZCI6IjEyMyJ9
          type: string
        prevCursor:
          example: eyJpZCI6IjEyMiJ9
          type: string
      type: object
    ErrorResponse:
      description: Standard error response returned by all API endpoints
      type: object
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: HTTP status code as a string.
          example: '404'
        title:
          type: string
          description: Error type identifier.
          example: not_found
        message:
          type: string
          description: Human-readable error message with details.
          example: context not found
        error:
          type: string
          description: Deprecated. Error message for backward compatibility.
          deprecated: true
        details:
          description: Additional error context as key-value pairs
          additionalProperties: {}
          type: object
    ExceptionResponse:
      description: Exception details
      properties:
        assignedTo:
          description: User the exception is assigned to
          example: user@example.com
          type: string
        createdAt:
          description: Creation timestamp in RFC3339 format
          example: '2025-01-15T10:30:00.000Z'
          type: string
        dueAt:
          description: Due date for resolution in RFC3339 format
          example: '2025-01-20T10:30:00.000Z'
          type: string
        externalIssueId:
          description: External issue ID in the external system
          example: RECON-1234
          type: string
        externalSystem:
          description: External system where exception was dispatched
          example: JIRA
          type: string
        id:
          description: Unique identifier for the exception
          example: 019c96a0-10d2-7134-ba5f-664142ee7052
          type: string
        reason:
          description: Reason the exception was raised
          example: Amount mismatch detected
          type: string
        resolutionNotes:
          description: Resolution notes when resolved
          example: Resolved via force match
          type: string
        resolutionReason:
          description: Reason for the resolution
          example: BUSINESS_DECISION
          type: string
        resolutionType:
          description: Type of resolution applied
          enum:
            - FORCE_MATCH
            - ADJUST_ENTRY
          example: FORCE_MATCH
          type: string
        severity:
          description: Severity level
          enum:
            - LOW
            - MEDIUM
            - HIGH
            - CRITICAL
          example: HIGH
          type: string
        status:
          description: Current status
          enum:
            - OPEN
            - ASSIGNED
            - PENDING_RESOLUTION
            - RESOLVED
          example: OPEN
          type: string
        transactionId:
          description: Transaction ID this exception is for
          example: 019c96a0-10ce-75fc-a273-dc799079a99c
          type: string
        updatedAt:
          description: Last update timestamp in RFC3339 format
          example: '2025-01-15T10:30:00.000Z'
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token authentication (format: "Bearer {token}")'

````