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

# Agregados + serie por bucket + periodo anterior para la vista de detalle (11)



## OpenAPI

````yaml /openapi/v1.json get /v1/reports/transaction-summary
openapi: 3.0.0
info:
  title: Finzaria API
  description: >-
    API REST de Finzaria — finanzas personales para México, dev-first y
    agent-first. Autentícate con tu API key bxm_ (o un token OAuth).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.finzaria.com/v1
    description: Producción
security: []
tags: []
paths:
  /v1/reports/transaction-summary:
    get:
      tags:
        - reports
      summary: >-
        Agregados + serie por bucket + periodo anterior para la vista de detalle
        (11)
      operationId: ReportsController_transactionSummary
      parameters:
        - name: accountId
          required: false
          in: query
          description: Limita a una cuenta.
          schema:
            type: string
        - name: categoryId
          required: false
          in: query
          description: Limita a una categoría (incluye su subárbol).
          schema:
            type: string
        - name: from
          required: true
          in: query
          description: Inicio del periodo (inclusive).
          schema:
            example: '2026-06-08'
            type: string
        - name: to
          required: true
          in: query
          description: Fin del periodo (inclusive).
          schema:
            example: '2026-07-07'
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionSummaryDto'
      security:
        - bearer: []
components:
  schemas:
    TransactionSummaryDto:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        currency:
          type: string
          example: MXN
        estimated:
          type: boolean
          description: 'true si mezcla divisas: totales convertidos y estimados (≈).'
        ratesAsOf:
          type: string
          nullable: true
        bucketUnit:
          type: string
          enum:
            - day
            - week
            - month
        inflow:
          type: string
        outflow:
          type: string
        net:
          type: string
        inflowCount:
          type: number
        outflowCount:
          type: number
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/SummaryBucketDto'
        previous:
          type: object
      required:
        - from
        - to
        - currency
        - estimated
        - ratesAsOf
        - bucketUnit
        - inflow
        - outflow
        - net
        - inflowCount
        - outflowCount
        - buckets
        - previous
    SummaryBucketDto:
      type: object
      properties:
        start:
          type: string
        inflow:
          type: string
        outflow:
          type: string
        net:
          type: string
      required:
        - start
        - inflow
        - outflow
        - net
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT (Supabase Auth)
      type: http

````