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

# List all lease accounts



## OpenAPI

````yaml /openapi.yaml get /pachtkonten
openapi: 3.1.0
info:
  title: Api
  version: 2.1.4
  description: Pachtify360 API specification
servers:
  - url: /api
    description: Base API path
security:
  - cookieAuth: []
tags:
  - name: health
    description: Health operations
  - name: pachtkonten
    description: Lease account management
  - name: patchobjekte
    description: Patch object management
  - name: kontakte
    description: Contact management
  - name: abrechnung
    description: Billing and invoicing
  - name: audit
    description: Audit log management
  - name: dashboard
    description: Dashboard summary data
  - name: duplikate
    description: Duplicate detection and merge
  - name: einstellungen
    description: Application settings
paths:
  /pachtkonten:
    get:
      tags:
        - pachtkonten
      summary: List all lease accounts
      operationId: listPachtkonten
      parameters:
        - name: search
          in: query
          schema:
            type: string
        - in: query
          name: status
          style: form
          explode: false
          schema:
            type: array
            items:
              type: string
              enum:
                - aktiv
                - inaktiv
                - gekuendigt
                - ausgelaufen
                - alle
        - in: query
          name: pachtbeginnMonat
          schema:
            type: string
            pattern: ^\d{4}-(0[1-9]|1[0-2])$
        - in: query
          name: pachtendeMonat
          schema:
            type: string
            pattern: ^\d{4}-(0[1-9]|1[0-2])$
        - in: query
          name: schlussabrechnung
          schema:
            type: string
            enum:
              - vorhanden
              - nicht_vorhanden
              - alle
        - in: query
          name: schlussabrechnungMonat
          schema:
            type: string
            pattern: ^\d{4}-(0[1-9]|1[0-2])$
        - in: query
          name: istVorauszahlend
          schema:
            type: string
            enum:
              - ja
              - nein
              - unbekannt
              - alle
        - in: query
          name: hebemonat
          style: form
          explode: false
          schema:
            type: array
            items:
              type: string
              pattern: ^(0[1-9]|1[0-2])$
        - in: query
          name: letzteHebungMonat
          schema:
            type: string
            pattern: ^\d{4}-(0[1-9]|1[0-2])$
        - in: query
          name: page
          schema:
            type: integer
            format: int32
            minimum: 1
            default: 1
        - in: query
          name: limit
          schema:
            type: integer
            format: int32
            minimum: 1
            maximum: 5000
            default: 20
      responses:
        '200':
          description: List of lease accounts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PachtkontoPaginatedList'
components:
  schemas:
    PachtkontoPaginatedList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Pachtkonto'
        total:
          type: integer
        page:
          type: integer
        limit:
          type: integer
        totalPages:
          type: integer
      required:
        - data
        - total
        - page
        - limit
        - totalPages
    Pachtkonto:
      type: object
      properties:
        id:
          type: integer
        kontonummer:
          type: string
        bezeichnung:
          type: string
        pachter:
          type: string
        pachtbeginn:
          type: string
          format: date
        pachtende:
          type: string
          format: date
          nullable: true
        geplanteSchlussabrechnung:
          type: string
          format: date
          nullable: true
          description: Datum bis zu dem abgerechnet werden soll (Schlussabrechnung)
        status:
          type: string
          enum:
            - aktiv
            - inaktiv
            - gekuendigt
            - ausgelaufen
        kontaktId:
          type: integer
          nullable: true
        verpachterId:
          type: integer
          nullable: true
        paechterKontaktId:
          type: integer
          nullable: true
        kategorie:
          type: string
          nullable: true
        kurzbezeichnung:
          type: string
          nullable: true
        zahlungsart:
          type: string
          nullable: true
        istVorauszahlend:
          type: boolean
          nullable: true
          description: >-
            Zahlungszeitpunkt des Pachtkontos; true = vorauszahlend, false oder
            null = nachzahlend
        hebungsMonate:
          type: string
          nullable: true
          description: JSON array of month names
        belegdruckVerpaechter:
          type: boolean
          nullable: true
        belegdruckPaechter:
          type: boolean
          nullable: true
        notizen:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - kontonummer
        - bezeichnung
        - pachter
        - pachtbeginn
        - status
        - createdAt
        - updatedAt
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: pachtify360.sid
      description: Serverseitige Anwendungssitzung nach Microsoft-Anmeldung.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.