> ## 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 matched transactions report

> Use this endpoint to retrieve a paginated list of matched transactions for a specific context and date range. The response uses cursor-based pagination.



## OpenAPI

````yaml /en/openapi/v3-current/matcher.yaml get /v1/reports/contexts/{contextId}/matched
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/reports/contexts/{contextId}/matched:
    get:
      tags:
        - Reporting
      summary: List matched transactions report
      description: >-
        Use this endpoint to retrieve a paginated list of matched transactions
        for a specific context and date range. The response uses cursor-based
        pagination.
      operationId: getMatchedReport
      parameters:
        - description: A unique identifier for tracing the request across services.
          in: header
          name: X-Request-Id
          schema:
            type: string
        - description: The unique identifier of the reconciliation context.
          in: path
          name: contextId
          required: true
          schema:
            type: string
            format: uuid
        - description: Start date (YYYY-MM-DD)
          in: query
          name: date_from
          required: true
          schema:
            type: string
            format: date
        - description: End date (YYYY-MM-DD)
          in: query
          name: date_to
          required: true
          schema:
            type: string
            format: date
        - description: Source ID filter
          in: query
          name: source_id
          schema:
            type: string
        - description: The cursor value for retrieving the next page of results.
          in: query
          name: cursor
          schema:
            type: string
        - description: The maximum number of items to include in the response.
          in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
        - description: Sort order by date
          in: query
          name: sort_order
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: Paginated list of matched transactions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMatchedReportResponse'
        '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'
        '403':
          description: You do not have permission to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ListMatchedReportResponse:
      description: Cursor-paginated list of matched transactions
      type: object
      properties:
        items:
          description: List of matched transaction items
          type: array
          items:
            $ref: '#/components/schemas/MatchedItemResponse'
        pagination:
          $ref: '#/components/schemas/CursorPagination'
    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
    MatchedItemResponse:
      description: A single matched transaction item
      type: object
      properties:
        transactionId:
          type: string
          description: The unique identifier of the transaction
        matchGroupId:
          type: string
          description: The identifier of the match group this transaction belongs to
        sourceId:
          type: string
          description: The identifier of the reconciliation source
        amount:
          type: string
          description: The transaction amount
        currency:
          type: string
          description: The currency code (ISO 4217)
        date:
          type: string
          format: date
          description: The transaction date
    CursorPagination:
      description: >
        Cursor-based pagination metadata for report endpoints. Both fields are

        opaque base64-encoded JSON cursor tokens; treat them as strings and pass

        them back unchanged in the `cursor` query parameter to navigate. An
        empty

        string means there is no further page in that direction.
      type: object
      properties:
        next:
          description: >-
            Opaque cursor for the next page. Empty when there are no more
            results.
          example: eyJpZCI6IjEyMyIsImRpcmVjdGlvbiI6Im5leHQifQ==
          type: string
        prev:
          description: Opaque cursor for the previous page. Empty when on the first page.
          example: eyJpZCI6IjEyMiIsImRpcmVjdGlvbiI6InByZXYifQ==
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token authentication (format: "Bearer {token}")'

````