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

# Summarize filtered transactions



## OpenAPI

````yaml /openapi.json post /transactions/summary
openapi: 3.1.0
info:
  title: Finup Public API
  version: 1.0.0
  description: >-
    Client-facing Finup API reference generated from current public endpoint
    metadata.
servers:
  - url: https://api.finup.io/backend
    description: Production
security: []
tags:
  - name: Accounts
    description: Current account, account setup, and account capabilities.
  - name: Transactions
    description: Account transaction lists and aggregates.
  - name: Cards
    description: Card issuing, listing, funding, and status changes.
paths:
  /transactions/summary:
    post:
      tags:
        - Transactions
      summary: Summarize filtered transactions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransactionsRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionSummary'
        '401':
          description: Missing or invalid credentials
        '403':
          description: Insufficient permission for this operation
        '404':
          description: Resource not found
      security:
        - apiKeyAuth: []
components:
  schemas:
    TransactionsRequest:
      type: object
      required:
        - pagination
      properties:
        filters:
          $ref: '#/components/schemas/TransactionFilters'
        pagination:
          $ref: '#/components/schemas/PaginationInput'
    TransactionSummary:
      type: object
      properties:
        spent:
          type: string
          example: '1250.00'
        incoming:
          type: string
          example: '2500.00'
        pending:
          type: string
          example: '100.00'
        fees:
          type: string
          example: '15.00'
        declined:
          type: string
          example: '0.00'
        net:
          type: string
          example: '1235.00'
    TransactionFilters:
      type: object
      properties:
        side:
          type: array
          items:
            type: string
          example:
            - Debit
        type:
          type: array
          items:
            type: string
          example:
            - Card
        status:
          type: array
          items:
            type: string
          example:
            - Approved
            - Pending
        card_id:
          type: array
          items:
            type: string
          example:
            - 67fc3d0a766d7a2c1fafefb8
        search:
          type: string
          example: spotify
        from_created_at:
          type: string
          format: date-time
          example: '2026-06-01T00:00:00.000Z'
        to_created_at:
          type: string
          format: date-time
          example: '2026-06-30T23:59:59.999Z'
        include_internal_transfer:
          type: boolean
          example: false
        own:
          type: boolean
          example: true
        users:
          type: array
          items:
            type: string
          example:
            - 67fc3d0a766d7a2c1fafefb9
        timezone:
          type: string
          example: Europe/Warsaw
    PaginationInput:
      type: object
      properties:
        page:
          type: integer
          example: 1
        per_page:
          type: integer
          example: 50
        sort_by:
          type: string
          example: created_at
        sort_direction:
          type: string
          enum:
            - asc
            - desc
          example: desc
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````