> ## 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.

# Historial de deuda del contacto con balance acumulado (IOU-007)



## OpenAPI

````yaml /openapi/v1.json get /v1/contacts/{id}/iou-history
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/contacts/{id}/iou-history:
    get:
      tags:
        - iou
      summary: Historial de deuda del contacto con balance acumulado (IOU-007)
      operationId: ContactsController_history
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: cursor
          required: true
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IouHistoryPageDto'
      security:
        - bearer: []
components:
  schemas:
    IouHistoryPageDto:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/IouHistoryItemDto'
        nextCursor:
          type: string
          nullable: true
      required:
        - items
        - nextCursor
    IouHistoryItemDto:
      type: object
      properties:
        transactionId:
          type: string
        date:
          type: string
        description:
          type: string
        type:
          type: string
        status:
          type: string
        delta:
          type: string
          example: '50.00'
          description: Efecto de esta transacción sobre su deuda.
        runningBalance:
          type: string
          example: '150.00'
          description: Balance acumulado hasta esta transacción.
      required:
        - transactionId
        - date
        - description
        - type
        - status
        - delta
        - runningBalance
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT (Supabase Auth)
      type: http

````