{
  "openapi": "3.1.0",
  "info": {
    "title": "Workbench API",
    "version": "2026.12.02-1221",
    "summary": "Schnittstelle der Workbench für Programme mit API-Schlüssel",
    "description": "Alle Wege, die ein API-Schlüssel der Workbench nutzen kann. Jede Instanz hat ihre eigene Adresse; die Pfade beziehen sich auf `https://<instanz>/api`.\n\nAnmeldung mit der Kopfzeile `X-API-Key`. Ein Schlüssel darf nie mehr als seine Scopes (Rechte) und nie mehr als das Benutzerkonto, dem er gehört. Platzhalter wie `invoices.*` decken alle Rechte eines Bereichs, `*` alles, was das Konto darf. Die Sonder-Scopes `api.*` wirken nur als einzelner Eintrag.\n\nGrenzen je Schlüssel: 600 lesende und 10 schreibende Anfragen pro Minute; nach 30 ungültigen Schlüsseln von einer Adresse ist diese 15 Minuten gesperrt.\n\nFehler kommen als `{ \"error\": \"…\", \"code\": \"…\" }`. Ist ein Modul oder eine Funktion nicht lizenziert oder ausgeschaltet, antwortet der Weg mit 404 `MODULE_INACTIVE`.\n\nMails an Kundinnen und Kunden, die ein Aufruf auslöst, gehen auch per API durch das Freigabe-Postfach der Workbench."
  },
  "servers": [
    {
      "url": "https://{instanz}/api",
      "description": "Adresse deiner Workbench-Instanz",
      "variables": {
        "instanz": {
          "default": "ihre-firma.workbench.leni-rosenbauer.de",
          "description": "Hostname deiner Instanz"
        }
      }
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Allgemein",
      "x-slug": "general"
    },
    {
      "name": "Anfragen & Website",
      "description": "Anfragen von der Website, eingebettetes Widget und Formular-Server.",
      "x-slug": "inquiries"
    },
    {
      "name": "Angebote",
      "description": "Angebote – direkt oder aus Aufträgen – mit Online-Annahme durch den Kunden.",
      "x-slug": "offers"
    },
    {
      "name": "Anlagen & Geräte",
      "description": "Anlagegüter mit Abschreibung (linear monatsgenau, GWG) und Prüfterminen (Wartung, UVV, DGUV V3 …) mit Erinnerung.",
      "x-slug": "assets"
    },
    {
      "name": "Aufträge",
      "description": "Aufträge mit Positionen, Versand, Retouren, Zahlungsregeln und Lieferscheinen.",
      "x-slug": "orders"
    },
    {
      "name": "Ausgaben",
      "description": "Ausgaben und Belege, wiederkehrende Ausgaben.",
      "x-slug": "expenses"
    },
    {
      "name": "Auswertungen",
      "description": "Berichte, Budgets und Kostenstellen.",
      "x-slug": "reports"
    },
    {
      "name": "Benutzer & Rollen",
      "x-slug": "users"
    },
    {
      "name": "Buchhaltung",
      "description": "Kontenrahmen und Buchungssätze, Bankimport, sevDesk/DATEV-Import, Ergebnis nach Belegdatum/UStVA, GoBD-Export.",
      "x-slug": "accounting"
    },
    {
      "name": "Datenübernahme",
      "x-slug": "data-import"
    },
    {
      "name": "Dokumente",
      "x-slug": "documents"
    },
    {
      "name": "Druck & Textil",
      "description": "Designer-Studio, Druckpositionen, Druckgrössen, Druckbögen (DTF), Motive am Auftrag, WordPress-Import.",
      "x-slug": "print-designer"
    },
    {
      "name": "E-Mail-Vorlagen",
      "x-slug": "email-templates"
    },
    {
      "name": "Einkauf",
      "description": "Bestellungen bei Lieferanten, Wareneingang und Einkaufsliste.",
      "x-slug": "purchasing"
    },
    {
      "name": "Einstellungen",
      "x-slug": "settings"
    },
    {
      "name": "Fertigung & Stücklisten",
      "description": "Stücklisten je Erzeugnis, Fertigungsaufträge mit Bedarf gegen Bestand; Abschluss bucht Komponenten ab und das Erzeugnis zu.",
      "x-slug": "manufacturing"
    },
    {
      "name": "Freigaben",
      "x-slug": "approvals"
    },
    {
      "name": "Gruppen",
      "x-slug": "user-groups"
    },
    {
      "name": "Kassenbuch",
      "description": "Bareinnahmen und -ausgaben, fortlaufend nummeriert und unveränderbar (Storno per Gegenbuchung), Hash-Kette, Tagesabschluss mit Zählprotokoll, Belegliste für die Steuerberatung, Import der Tagesumsätze einer externen zertifizierten Kasse (Baranteil ins Kassenbuch, Kartenanteil als Forderung an den Kartendienstleister). Kein Kassensystem (keine TSE, kein Bondruck, keine Kartenzahlung).",
      "x-slug": "cashbook"
    },
    {
      "name": "Kategorien",
      "x-slug": "categories"
    },
    {
      "name": "Kunden & Kontakte",
      "description": "Kunden, Ansprechpartner, Aktivitäten und Lieferanten.",
      "x-slug": "customers"
    },
    {
      "name": "Kundenportal",
      "description": "Getrennte Kunden-Anmeldung (eigene Konten, Einladung über das Freigabe-Postfach): Angebote, Aufträge, Rechnungen mit Zahllink, Projekte, Dateien, Lizenzen, Tickets, Termine.",
      "x-slug": "customer-portal"
    },
    {
      "name": "Kurse & Teilnehmer",
      "description": "Kurse mit Einheiten (Termine), Kapazität, Warteliste und Teilnehmern; Online-Anmeldung über die Website.",
      "x-slug": "courses"
    },
    {
      "name": "Lager",
      "description": "Lagerorte, Bestände, Inventur, Chargen und Seriennummern.",
      "x-slug": "inventory"
    },
    {
      "name": "Lizenzmanagement",
      "description": "Lizenzen für Kundeninstanzen ausstellen, verlängern und widerrufen; Online-Abruf und Check-in der Instanzen. Nur auf der Instanz der Anbieterin sinnvoll (privater Signaturschlüssel).",
      "x-slug": "licenses"
    },
    {
      "name": "Mahnwesen",
      "description": "Zahlungserinnerung und Mahnstufen mit automatischem Mahnlauf.",
      "x-slug": "dunning"
    },
    {
      "name": "Meine Aufgaben",
      "x-slug": "my-tasks"
    },
    {
      "name": "Module",
      "x-slug": "modules"
    },
    {
      "name": "Papierkorb",
      "x-slug": "trash"
    },
    {
      "name": "PDF-Vorlagen",
      "x-slug": "pdf-templates"
    },
    {
      "name": "Produkte",
      "description": "Produktstamm, Kategorien, Eigenschaften, Varianten, Excel-Import und GPSR.",
      "x-slug": "products"
    },
    {
      "name": "Projekte & Zeit",
      "description": "Projekte, ToDos und Zeiterfassung.",
      "x-slug": "projects"
    },
    {
      "name": "Rechnungen & Zahlungen",
      "description": "Rechnungen, Zahlungen, Dauerrechnungen, XRechnung und Zahlungs-QR.",
      "x-slug": "invoices"
    },
    {
      "name": "Service & Reklamationen",
      "description": "Tickets mit Status, Priorität und Frist, Reparaturaufträge, Garantiefälle je Seriennummer, Verknüpfung mit Retouren, Zuordnung aus dem Postfach, Ticket-Formular der Website, sichtbar im Kundenportal.",
      "x-slug": "service"
    },
    {
      "name": "Startseite",
      "x-slug": "dashboard"
    },
    {
      "name": "Steuerregeln",
      "x-slug": "tax-rules"
    },
    {
      "name": "Termine & Kalender",
      "description": "Termine, Ressourcen (Räume, Geräte, Personen), Wochen-/Monatsansicht mit Fälligkeiten aus ToDos und Aktivitäten, Online-Terminbuchung über die Website, Erinnerungen.",
      "x-slug": "appointments"
    },
    {
      "name": "Verlauf & Protokoll",
      "x-slug": "audit"
    },
    {
      "name": "Vermietung & Verleih",
      "description": "Mietgegenstände mit Verfügbarkeit je Zeitraum, Reservierung, Ausgabe, Rücknahme (Zustand, Kaution), Abrechnung; jeder Vorgang als Termin.",
      "x-slug": "rentals"
    },
    {
      "name": "Verträge & Abonnements",
      "description": "Laufzeiten, Kündigungsfristen, automatische Verlängerung, Preisanpassung, Erinnerungen; erzeugt Dauerrechnungen statt sie zu ersetzen; Lizenzen als Vertragsart.",
      "x-slug": "contracts"
    },
    {
      "name": "Vertrieb",
      "description": "Verkaufschancen in der Pipeline und E-Mail-Kampagnen.",
      "x-slug": "sales"
    },
    {
      "name": "Webhooks",
      "x-slug": "webhooks"
    },
    {
      "name": "WordPress & WooCommerce",
      "description": "Anbindung einer WordPress-Website über API-Schlüssel: Anfrageformulare, Kundenabgleich mit WooCommerce, Shop-Bestellungen, Produktlieferung, Designer-Brücke und Ereignisse an die Website.",
      "x-slug": "wordpress"
    },
    {
      "name": "Workflows",
      "description": "Abläufe aus Stationen als Vorlage bauen und als Strang abarbeiten – der Reihe nach oder frei, mit Zuständigen (Person oder Rolle), Fristen, Notiz-Pflicht und optionalen Stationen. Abhaken zeigt wer und wann; Zurücknehmen nur mit Begründung. Bezug zu Projekt, Auftrag oder Kunde.",
      "x-slug": "workflows"
    }
  ],
  "paths": {
    "/v1/accounting/accounts": {
      "get": {
        "operationId": "getV1AccountingAccounts",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: „accounts“ abrufen",
        "description": "Benötigtes Recht: `accounting.view`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skr",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.view",
        "x-module": "buchhaltung",
        "x-function": "journal"
      },
      "post": {
        "operationId": "postV1AccountingAccounts",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Aktion „accounts“ ausführen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account_number": {},
                  "account_type": {},
                  "name": {},
                  "skr": {},
                  "tax_rate": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/accounting/accounts/{id}": {
      "put": {
        "operationId": "putV1AccountingAccountsId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Eintrag ändern",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account_type": {},
                  "active": {},
                  "name": {},
                  "tax_rate": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      },
      "delete": {
        "operationId": "deleteV1AccountingAccountsId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Eintrag löschen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/accounting/journal": {
      "get": {
        "operationId": "getV1AccountingJournal",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: „journal“ abrufen",
        "description": "Benötigtes Recht: `accounting.view`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.view",
        "x-module": "buchhaltung",
        "x-function": "journal"
      },
      "post": {
        "operationId": "postV1AccountingJournal",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Aktion „journal“ ausführen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/accounting/journal/{id}": {
      "get": {
        "operationId": "getV1AccountingJournalId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `accounting.view`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.view",
        "x-module": "buchhaltung",
        "x-function": "journal"
      },
      "delete": {
        "operationId": "deleteV1AccountingJournalId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Eintrag löschen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/accounting/journal/{id}/finalize": {
      "post": {
        "operationId": "postV1AccountingJournalIdFinalize",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Aktion „finalize“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/accounting/journal/{id}/storno": {
      "post": {
        "operationId": "postV1AccountingJournalIdStorno",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Aktion „storno“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/accounting/period-lock": {
      "get": {
        "operationId": "getV1AccountingPeriodLock",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: „period-lock“ abrufen",
        "description": "Benötigtes Recht: `accounting.view`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.view",
        "x-module": "buchhaltung",
        "x-function": "journal"
      },
      "post": {
        "operationId": "postV1AccountingPeriodLock",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Buchhaltung: Aktion „period-lock“ ausführen",
        "description": "Benötigtes Recht: `accounting.edit`.\n\nModul „Buchhaltung“, Funktion „Kontenrahmen und Buchungssätze“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "month": {},
                  "note": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "accounting.edit",
        "x-module": "buchhaltung",
        "x-function": "journal"
      }
    },
    "/v1/activities": {
      "get": {
        "operationId": "getV1Activities",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Aktivitäten: Liste abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“, Funktion „Aktivitäten (Anrufe, Termine, Notizen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "open",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "opportunity_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplier_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte",
        "x-function": "aktivitaeten"
      },
      "post": {
        "operationId": "postV1Activities",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Aktivitäten: Neu anlegen",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“, Funktion „Aktivitäten (Anrufe, Termine, Notizen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte",
        "x-function": "aktivitaeten"
      }
    },
    "/v1/activities/{id}": {
      "get": {
        "operationId": "getV1ActivitiesId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Aktivitäten: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“, Funktion „Aktivitäten (Anrufe, Termine, Notizen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte",
        "x-function": "aktivitaeten"
      },
      "put": {
        "operationId": "putV1ActivitiesId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Aktivitäten: Eintrag ändern",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“, Funktion „Aktivitäten (Anrufe, Termine, Notizen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte",
        "x-function": "aktivitaeten"
      },
      "delete": {
        "operationId": "deleteV1ActivitiesId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Aktivitäten: Eintrag löschen",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“, Funktion „Aktivitäten (Anrufe, Termine, Notizen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte",
        "x-function": "aktivitaeten"
      }
    },
    "/v1/ai/config": {
      "get": {
        "operationId": "getV1AiConfig",
        "tags": [
          "Allgemein"
        ],
        "summary": "„config“ abrufen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/ai/status": {
      "get": {
        "operationId": "getV1AiStatus",
        "tags": [
          "Allgemein"
        ],
        "summary": "„status“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/appointments": {
      "get": {
        "operationId": "getV1Appointments",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Liste abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticket_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "post": {
        "operationId": "postV1Appointments",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Neu anlegen",
        "description": "Benötigtes Recht: `appointments.create`.\n\nJe nach Anfrage zusätzlich geprüft: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.create",
        "x-checked-permissions": [
          "appointments.edit"
        ],
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/availability": {
      "get": {
        "operationId": "getV1AppointmentsBookingAvailability",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „availability“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/extras/{id}": {
      "put": {
        "operationId": "putV1AppointmentsBookingExtrasId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      },
      "delete": {
        "operationId": "deleteV1AppointmentsBookingExtrasId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag löschen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/hours": {
      "get": {
        "operationId": "getV1AppointmentsBookingHours",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „hours“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "resource_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "weekday",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "post": {
        "operationId": "postV1AppointmentsBookingHours",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „hours“ ausführen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/hours/{id}": {
      "put": {
        "operationId": "putV1AppointmentsBookingHoursId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      },
      "delete": {
        "operationId": "deleteV1AppointmentsBookingHoursId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag löschen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/person-availability": {
      "get": {
        "operationId": "getV1AppointmentsBookingPersonAvailability",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „person-availability“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "ends_at",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "starts_at",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/quote": {
      "get": {
        "operationId": "getV1AppointmentsBookingQuote",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „quote“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "extras",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "free",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "travel_estimated",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "travel_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/services": {
      "get": {
        "operationId": "getV1AppointmentsBookingServices",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „services“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "post": {
        "operationId": "postV1AppointmentsBookingServices",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „services“ ausführen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/services/{id}": {
      "get": {
        "operationId": "getV1AppointmentsBookingServicesId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "put": {
        "operationId": "putV1AppointmentsBookingServicesId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      },
      "delete": {
        "operationId": "deleteV1AppointmentsBookingServicesId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag löschen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/services/{id}/extras": {
      "post": {
        "operationId": "postV1AppointmentsBookingServicesIdExtras",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „extras“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/services/{id}/invoice": {
      "get": {
        "operationId": "getV1AppointmentsBookingServicesIdInvoice",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „invoice“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "put": {
        "operationId": "putV1AppointmentsBookingServicesIdInvoice",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „invoice“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/services/{id}/options": {
      "get": {
        "operationId": "getV1AppointmentsBookingServicesIdOptions",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „options“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "put": {
        "operationId": "putV1AppointmentsBookingServicesIdOptions",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „options“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/slots": {
      "get": {
        "operationId": "getV1AppointmentsBookingSlots",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „slots“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      }
    },
    "/v1/appointments/booking/travel-estimate": {
      "get": {
        "operationId": "getV1AppointmentsBookingTravelEstimate",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Entfernungsvorschlag: Luftlinie Start-PLZ → PLZ × Umwegfaktor, ganze km",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      }
    },
    "/v1/appointments/bulk/delete": {
      "post": {
        "operationId": "postV1AppointmentsBulkDelete",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „delete“ ausführen",
        "description": "Benötigtes Recht: `appointments.delete`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.delete",
        "x-module": "termine"
      }
    },
    "/v1/appointments/bulk/revert": {
      "post": {
        "operationId": "postV1AppointmentsBulkRevert",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „revert“ ausführen",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      }
    },
    "/v1/appointments/bulk/status": {
      "post": {
        "operationId": "postV1AppointmentsBulkStatus",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „status“ ausführen",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      }
    },
    "/v1/appointments/calendar": {
      "get": {
        "operationId": "getV1AppointmentsCalendar",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „calendar“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nJe nach Anfrage zusätzlich geprüft: `todos.view`, `customers.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-checked-permissions": [
          "todos.view",
          "customers.view"
        ],
        "x-module": "termine"
      }
    },
    "/v1/appointments/resources": {
      "get": {
        "operationId": "getV1AppointmentsResources",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „resources“ abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookable",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "post": {
        "operationId": "postV1AppointmentsResources",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „resources“ ausführen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/resources/{id}": {
      "get": {
        "operationId": "getV1AppointmentsResourcesId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "put": {
        "operationId": "putV1AppointmentsResourcesId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      },
      "delete": {
        "operationId": "deleteV1AppointmentsResourcesId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag löschen",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/resources/{id}/booking-options": {
      "put": {
        "operationId": "putV1AppointmentsResourcesIdBookingOptions",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „booking-options“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `appointments.resources`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.resources",
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}": {
      "get": {
        "operationId": "getV1AppointmentsId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "put": {
        "operationId": "putV1AppointmentsId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag ändern",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      },
      "delete": {
        "operationId": "deleteV1AppointmentsId",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Eintrag löschen",
        "description": "Benötigtes Recht: `appointments.delete`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.delete",
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}/booking": {
      "get": {
        "operationId": "getV1AppointmentsIdBooking",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „booking“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `appointments.view`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.view",
        "x-module": "termine"
      },
      "put": {
        "operationId": "putV1AppointmentsIdBooking",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: „booking“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}/booking/offer": {
      "post": {
        "operationId": "postV1AppointmentsIdBookingOffer",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „offer“ ausführen",
        "description": "Benötigtes Recht: `appointments.edit` und `orders.create`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "appointments.edit",
          "orders.create"
        ],
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}/cancel": {
      "post": {
        "operationId": "postV1AppointmentsIdCancel",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}/confirm": {
      "post": {
        "operationId": "postV1AppointmentsIdConfirm",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „confirm“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}/done": {
      "post": {
        "operationId": "postV1AppointmentsIdDone",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „done“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `appointments.edit`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "appointments.edit",
        "x-module": "termine"
      }
    },
    "/v1/appointments/{id}/invoice-draft": {
      "post": {
        "operationId": "postV1AppointmentsIdInvoiceDraft",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Termine: Aktion „invoice-draft“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `appointments.edit` und `invoices.create`.\n\nModul „Termine & Kalender“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "appointments.edit",
          "invoices.create"
        ],
        "x-module": "termine"
      }
    },
    "/v1/approvals/mails": {
      "get": {
        "operationId": "getV1ApprovalsMails",
        "tags": [
          "Freigaben"
        ],
        "summary": "Freigaben: „mails“ abrufen",
        "description": "Benötigtes Recht: `approvals.view`.\n\nKernfunktion „Freigaben (Genehmigungs-Workflows)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paged",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "approvals.view",
        "x-module": "core",
        "x-function": "freigaben"
      }
    },
    "/v1/approvals/mails/count": {
      "get": {
        "operationId": "getV1ApprovalsMailsCount",
        "tags": [
          "Freigaben"
        ],
        "summary": "Freigaben: „count“ abrufen",
        "description": "Benötigtes Recht: `approvals.view`.\n\nKernfunktion „Freigaben (Genehmigungs-Workflows)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "approvals.view",
        "x-module": "core",
        "x-function": "freigaben"
      }
    },
    "/v1/approvals/mails/for-entity": {
      "get": {
        "operationId": "getV1ApprovalsMailsForEntity",
        "tags": [
          "Freigaben"
        ],
        "summary": "Freigaben: „for-entity“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nJe nach Anfrage zusätzlich geprüft: `approvals.view`, `invoices.view`.\n\nKernfunktion „Freigaben (Genehmigungs-Workflows)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-checked-permissions": [
          "approvals.view",
          "invoices.view"
        ],
        "x-module": "core",
        "x-function": "freigaben"
      }
    },
    "/v1/approvals/mails/overview": {
      "get": {
        "operationId": "getV1ApprovalsMailsOverview",
        "tags": [
          "Freigaben"
        ],
        "summary": "Freigaben: „overview“ abrufen",
        "description": "Benötigtes Recht: `approvals.view`.\n\nKernfunktion „Freigaben (Genehmigungs-Workflows)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "approvals.view",
        "x-module": "core",
        "x-function": "freigaben"
      }
    },
    "/v1/approvals/mails/{id}": {
      "get": {
        "operationId": "getV1ApprovalsMailsId",
        "tags": [
          "Freigaben"
        ],
        "summary": "Nur Mails, die durch die Freigabe gehen oder gingen bzw. als Kunden-Mail automatisch hinausgingen",
        "description": "Benötigtes Recht: `approvals.view`.\n\nKernfunktion „Freigaben (Genehmigungs-Workflows)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "approvals.view",
        "x-module": "core",
        "x-function": "freigaben"
      }
    },
    "/v1/approvals/rules": {
      "get": {
        "operationId": "getV1ApprovalsRules",
        "tags": [
          "Freigaben"
        ],
        "summary": "Freigaben: „rules“ abrufen",
        "description": "Benötigtes Recht: `approvals.view`.\n\nKernfunktion „Freigaben (Genehmigungs-Workflows)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "approvals.view",
        "x-module": "core",
        "x-function": "freigaben"
      }
    },
    "/v1/assets": {
      "get": {
        "operationId": "getV1Assets",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Liste abrufen",
        "description": "Benötigtes Recht: `assets.view`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.view",
        "x-module": "anlagen"
      },
      "post": {
        "operationId": "postV1Assets",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Neu anlegen",
        "description": "Benötigtes Recht: `assets.create`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.create",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/due": {
      "get": {
        "operationId": "getV1AssetsDue",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: „due“ abrufen",
        "description": "Benötigtes Recht: `assets.view`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.view",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/inspections/{iid}": {
      "put": {
        "operationId": "putV1AssetsInspectionsIid",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Eintrag ändern",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "iid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      },
      "delete": {
        "operationId": "deleteV1AssetsInspectionsIid",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Eintrag löschen",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "iid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/inspections/{iid}/done": {
      "post": {
        "operationId": "postV1AssetsInspectionsIidDone",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Aktion „done“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "iid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/summary": {
      "get": {
        "operationId": "getV1AssetsSummary",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: „summary“ abrufen",
        "description": "Benötigtes Recht: `assets.view`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.view",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/{id}": {
      "get": {
        "operationId": "getV1AssetsId",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `assets.view`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.view",
        "x-module": "anlagen"
      },
      "put": {
        "operationId": "putV1AssetsId",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Eintrag ändern",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      },
      "delete": {
        "operationId": "deleteV1AssetsId",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Eintrag löschen",
        "description": "Benötigtes Recht: `assets.delete`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.delete",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/{id}/depreciation/rebuild": {
      "post": {
        "operationId": "postV1AssetsIdDepreciationRebuild",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Aktion „rebuild“ ausführen",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/{id}/dispose": {
      "post": {
        "operationId": "postV1AssetsIdDispose",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Aktion „dispose“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      }
    },
    "/v1/assets/{id}/inspections": {
      "get": {
        "operationId": "getV1AssetsIdInspections",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: „inspections“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `assets.view`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.view",
        "x-module": "anlagen"
      },
      "post": {
        "operationId": "postV1AssetsIdInspections",
        "tags": [
          "Anlagen & Geräte"
        ],
        "summary": "Anlagen: Aktion „inspections“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `assets.edit`.\n\nModul „Anlagen & Geräte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "assets.edit",
        "x-module": "anlagen"
      }
    },
    "/v1/audit/record": {
      "get": {
        "operationId": "getV1AuditRecord",
        "tags": [
          "Verlauf & Protokoll"
        ],
        "summary": "Verlauf: „record“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "entity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/aufmass": {
      "get": {
        "operationId": "getV1Aufmass",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Liste abrufen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      },
      "post": {
        "operationId": "postV1Aufmass",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Neu anlegen",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/evaluate": {
      "post": {
        "operationId": "postV1AufmassEvaluate",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „evaluate“ ausführen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "positions": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/units": {
      "get": {
        "operationId": "getV1AufmassUnits",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: „units“ abrufen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}": {
      "get": {
        "operationId": "getV1AufmassId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      },
      "put": {
        "operationId": "putV1AufmassId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Eintrag ändern",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "positions": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      },
      "delete": {
        "operationId": "deleteV1AufmassId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Eintrag löschen",
        "description": "Benötigtes Recht: `aufmass.delete`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.delete",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/document-positions": {
      "get": {
        "operationId": "getV1AufmassIdDocumentPositions",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: „document-positions“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/files": {
      "post": {
        "operationId": "postV1AufmassIdFiles",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „files“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {},
                  "kind": {},
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/files/{fileId}": {
      "get": {
        "operationId": "getV1AufmassIdFilesFileId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      },
      "delete": {
        "operationId": "deleteV1AufmassIdFilesFileId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Eintrag löschen",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      },
      "patch": {
        "operationId": "patchV1AufmassIdFilesFileId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Eintrag teilweise ändern",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_name": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/files/{fileId}/restore": {
      "post": {
        "operationId": "postV1AufmassIdFilesFileIdRestore",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „restore“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/pdf": {
      "get": {
        "operationId": "getV1AufmassIdPdf",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: „pdf“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `aufmass.view`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.view",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/reopen": {
      "post": {
        "operationId": "postV1AufmassIdReopen",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „reopen“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `aufmass.edit`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.edit",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/restore": {
      "post": {
        "operationId": "postV1AufmassIdRestore",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „restore“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `aufmass.delete`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "aufmass.delete",
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/to-invoice": {
      "post": {
        "operationId": "postV1AufmassIdToInvoice",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „to-invoice“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `aufmass.edit` und `invoices.create`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allow_zero_price": {},
                  "tax_rule_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "aufmass.edit",
          "invoices.create"
        ],
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/aufmass/{id}/transfers": {
      "post": {
        "operationId": "postV1AufmassIdTransfers",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufmaß: Aktion „transfers“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `aufmass.edit` und `orders.create`.\n\nModul „Projekte & Zeit“, Funktion „Aufmaß (Messblätter mit Formeln und Abzügen, Skizzen/Fotos, PDF, Übernahme in Rechnung oder Auftrag)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "target_id": {},
                  "target_type": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "aufmass.edit",
          "orders.create"
        ],
        "x-module": "projekte",
        "x-function": "aufmass"
      }
    },
    "/v1/bank-fees/pending": {
      "get": {
        "operationId": "getV1BankFeesPending",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: „pending“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/rules": {
      "get": {
        "operationId": "getV1BankFeesRules",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: „rules“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      },
      "post": {
        "operationId": "postV1BankFeesRules",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: Aktion „rules“ ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/rules/{id}": {
      "put": {
        "operationId": "putV1BankFeesRulesId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: Eintrag ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      },
      "delete": {
        "operationId": "deleteV1BankFeesRulesId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: Eintrag löschen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/scan": {
      "post": {
        "operationId": "postV1BankFeesScan",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: Aktion „scan“ ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/settings": {
      "get": {
        "operationId": "getV1BankFeesSettings",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: „settings“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/summary": {
      "get": {
        "operationId": "getV1BankFeesSummary",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: „summary“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/transactions/{id}/book": {
      "post": {
        "operationId": "postV1BankFeesTransactionsIdBook",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: Aktion „book“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-fees/transactions/{id}/unflag": {
      "post": {
        "operationId": "postV1BankFeesTransactionsIdUnflag",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankgebühren: Aktion „unflag“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankgebühren aus dem Kontoauszug erfassen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankkosten"
      }
    },
    "/v1/bank-import": {
      "get": {
        "operationId": "getV1BankImport",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Liste abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/auto-match/run": {
      "post": {
        "operationId": "postV1BankImportAutoMatchRun",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „run“ ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "import_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/auto-matches": {
      "get": {
        "operationId": "getV1BankImportAutoMatches",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „auto-matches“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoice_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/auto-matches/{id}/reverse": {
      "post": {
        "operationId": "postV1BankImportAutoMatchesIdReverse",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „reverse“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/connections": {
      "get": {
        "operationId": "getV1BankImportConnections",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „connections“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/import": {
      "post": {
        "operationId": "postV1BankImportImport",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „import“ ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/open-items": {
      "get": {
        "operationId": "getV1BankImportOpenItems",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „open-items“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/review": {
      "get": {
        "operationId": "getV1BankImportReview",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „review“ abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "import_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/candidates": {
      "get": {
        "operationId": "getV1BankImportTransactionsIdCandidates",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „candidates“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/create-expense": {
      "post": {
        "operationId": "postV1BankImportTransactionsIdCreateExpense",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „create-expense“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/documents": {
      "get": {
        "operationId": "getV1BankImportTransactionsIdDocuments",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „documents“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      },
      "post": {
        "operationId": "postV1BankImportTransactionsIdDocuments",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „documents“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/documents/{docId}": {
      "get": {
        "operationId": "getV1BankImportTransactionsIdDocumentsDocId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "docId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      },
      "delete": {
        "operationId": "deleteV1BankImportTransactionsIdDocumentsDocId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Eintrag löschen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "docId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/ignore": {
      "put": {
        "operationId": "putV1BankImportTransactionsIdIgnore",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „ignore“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/income": {
      "post": {
        "operationId": "postV1BankImportTransactionsIdIncome",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „income“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      },
      "get": {
        "operationId": "getV1BankImportTransactionsIdIncome",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „income“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/link-payment": {
      "put": {
        "operationId": "putV1BankImportTransactionsIdLinkPayment",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „link-payment“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "difference_reason": {},
                  "payment_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/mark-private": {
      "put": {
        "operationId": "putV1BankImportTransactionsIdMarkPrivate",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „mark-private“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {},
                  "private_type": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/match": {
      "put": {
        "operationId": "putV1BankImportTransactionsIdMatch",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „match“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "difference_reason": {},
                  "expense_id": {},
                  "invoice_id": {},
                  "kind": {},
                  "target_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/reduction-preview": {
      "get": {
        "operationId": "getV1BankImportTransactionsIdReductionPreview",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „reduction-preview“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reason",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "target_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/split": {
      "post": {
        "operationId": "postV1BankImportTransactionsIdSplit",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: Aktion „split“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allocations": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/supplier-refund": {
      "put": {
        "operationId": "putV1BankImportTransactionsIdSupplierRefund",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „supplier-refund“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expense_id": {},
                  "note": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/transactions/{id}/unmatch": {
      "put": {
        "operationId": "putV1BankImportTransactionsIdUnmatch",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „unmatch“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `bank_import.manage`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.manage",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/bank-import/{id}/transactions": {
      "get": {
        "operationId": "getV1BankImportIdTransactions",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Bankimport: „transactions“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `bank_import.view`.\n\nModul „Buchhaltung“, Funktion „Bankimport (CAMT, MT940, CSV)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "bank_import.view",
        "x-module": "buchhaltung",
        "x-function": "bankimport"
      }
    },
    "/v1/campaigns": {
      "get": {
        "operationId": "getV1Campaigns",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: Liste abrufen",
        "description": "Benötigtes Recht: `campaigns.view`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.view",
        "x-module": "crm",
        "x-function": "kampagnen"
      },
      "post": {
        "operationId": "postV1Campaigns",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: Neu anlegen",
        "description": "Benötigtes Recht: `campaigns.create`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "html_body": {},
                  "name": {},
                  "recipient_filter_json": {},
                  "scheduled_at": {},
                  "subject": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.create",
        "x-module": "crm",
        "x-function": "kampagnen"
      }
    },
    "/v1/campaigns/recipients-preview": {
      "post": {
        "operationId": "postV1CampaignsRecipientsPreview",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: Aktion „recipients-preview“ ausführen",
        "description": "Benötigtes Recht: `campaigns.view`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filter": {},
                  "recipient_filter_json": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.view",
        "x-module": "crm",
        "x-function": "kampagnen"
      }
    },
    "/v1/campaigns/{id}": {
      "get": {
        "operationId": "getV1CampaignsId",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `campaigns.view`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.view",
        "x-module": "crm",
        "x-function": "kampagnen"
      },
      "put": {
        "operationId": "putV1CampaignsId",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: Eintrag ändern",
        "description": "Benötigtes Recht: `campaigns.create`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "html_body": {},
                  "name": {},
                  "recipient_filter_json": {},
                  "scheduled_at": {},
                  "subject": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.create",
        "x-module": "crm",
        "x-function": "kampagnen"
      }
    },
    "/v1/campaigns/{id}/recipients": {
      "get": {
        "operationId": "getV1CampaignsIdRecipients",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: „recipients“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `campaigns.view`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.view",
        "x-module": "crm",
        "x-function": "kampagnen"
      }
    },
    "/v1/campaigns/{id}/send": {
      "post": {
        "operationId": "postV1CampaignsIdSend",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: Aktion „send“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `campaigns.send`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.send",
        "x-module": "crm",
        "x-function": "kampagnen"
      }
    },
    "/v1/campaigns/{id}/stats": {
      "get": {
        "operationId": "getV1CampaignsIdStats",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kampagnen: „stats“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `campaigns.view`.\n\nModul „Vertrieb“, Funktion „E-Mail-Kampagnen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "campaigns.view",
        "x-module": "crm",
        "x-function": "kampagnen"
      }
    },
    "/v1/cashbook": {
      "get": {
        "operationId": "getV1Cashbook",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Liste abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      },
      "post": {
        "operationId": "postV1Cashbook",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Neu anlegen",
        "description": "Benötigtes Recht: `cashbook.close`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.close",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/card-receivables": {
      "get": {
        "operationId": "getV1CashbookCardReceivables",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „card-receivables“ abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "cashbook_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/card-receivables/bank-candidates": {
      "get": {
        "operationId": "getV1CashbookCardReceivablesBankCandidates",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „bank-candidates“ abrufen",
        "description": "Benötigtes Recht: `cashbook.view` und `bank_import.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "cashbook.view",
          "bank_import.view"
        ],
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/card-receivables/settle": {
      "post": {
        "operationId": "postV1CashbookCardReceivablesSettle",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „settle“ ausführen",
        "description": "Benötigtes Recht: `cashbook.book` und `bank_import.manage`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "cashbook.book",
          "bank_import.manage"
        ],
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/card-receivables/unsettle": {
      "post": {
        "operationId": "postV1CashbookCardReceivablesUnsettle",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „unsettle“ ausführen",
        "description": "Benötigtes Recht: `cashbook.book` und `bank_import.manage`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "cashbook.book",
          "bank_import.manage"
        ],
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/info": {
      "get": {
        "operationId": "getV1CashbookInfo",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „info“ abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "cashbook_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/open-invoices": {
      "get": {
        "operationId": "getV1CashbookOpenInvoices",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „open-invoices“ abrufen",
        "description": "Benötigtes Recht: `cashbook.book`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.book",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}": {
      "get": {
        "operationId": "getV1CashbookId",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      },
      "put": {
        "operationId": "putV1CashbookId",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Eintrag ändern",
        "description": "Benötigtes Recht: `cashbook.close`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.close",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/balance": {
      "get": {
        "operationId": "getV1CashbookIdBalance",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „balance“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/closings": {
      "get": {
        "operationId": "getV1CashbookIdClosings",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „closings“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      },
      "post": {
        "operationId": "postV1CashbookIdClosings",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „closings“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `cashbook.close`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.close",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/closings/{cid}": {
      "get": {
        "operationId": "getV1CashbookIdClosingsCid",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/entries": {
      "get": {
        "operationId": "getV1CashbookIdEntries",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „entries“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      },
      "post": {
        "operationId": "postV1CashbookIdEntries",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „entries“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `cashbook.book`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.book",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/entries/{eid}": {
      "get": {
        "operationId": "getV1CashbookIdEntriesEid",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "eid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/entries/{eid}/file": {
      "get": {
        "operationId": "getV1CashbookIdEntriesEidFile",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „file“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "eid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/entries/{eid}/storno": {
      "post": {
        "operationId": "postV1CashbookIdEntriesEidStorno",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „storno“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `cashbook.book`.\n\nJe nach Anfrage zusätzlich geprüft: `cashbook.close`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "eid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.book",
        "x-checked-permissions": [
          "cashbook.close"
        ],
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/export/belegliste": {
      "get": {
        "operationId": "getV1CashbookIdExportBelegliste",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „belegliste“ abrufen",
        "description": "Benötigtes Recht: `cashbook.export`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.export",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/export/csv": {
      "get": {
        "operationId": "getV1CashbookIdExportCsv",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „csv“ abrufen",
        "description": "Benötigtes Recht: `cashbook.export`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.export",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/export/datev": {
      "get": {
        "operationId": "getV1CashbookIdExportDatev",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „datev“ abrufen",
        "description": "Benötigtes Recht: `cashbook.export`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.export",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/pos-imports": {
      "get": {
        "operationId": "getV1CashbookIdPosImports",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „pos-imports“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      },
      "post": {
        "operationId": "postV1CashbookIdPosImports",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „pos-imports“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `cashbook.import`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "default_tax_rate": {},
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.import",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/pos-imports/{pid}": {
      "get": {
        "operationId": "getV1CashbookIdPosImportsPid",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/pos-imports/{pid}/card-storno": {
      "post": {
        "operationId": "postV1CashbookIdPosImportsPidCardStorno",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „card-storno“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `cashbook.import`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.import",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/pos-imports/{pid}/reverse": {
      "post": {
        "operationId": "postV1CashbookIdPosImportsPidReverse",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: Aktion „reverse“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `cashbook.import` und `cashbook.close`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "cashbook.import",
          "cashbook.close"
        ],
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/summary": {
      "get": {
        "operationId": "getV1CashbookIdSummary",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „summary“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "month",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/cashbook/{id}/verify": {
      "get": {
        "operationId": "getV1CashbookIdVerify",
        "tags": [
          "Kassenbuch"
        ],
        "summary": "Kassenbuch: „verify“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `cashbook.view`.\n\nModul „Kassenbuch“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cashbook.view",
        "x-module": "kassenbuch"
      }
    },
    "/v1/categories/compatibility": {
      "post": {
        "operationId": "postV1CategoriesCompatibility",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Neue Regel anlegen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Kategorie-Regeln (Buchungsvoraussetzungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "direction": {},
                  "from_category_id": {},
                  "note": {},
                  "requires_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "kategorie_regeln"
      }
    },
    "/v1/categories/compatibility/{catId}": {
      "get": {
        "operationId": "getV1CategoriesCompatibilityCatId",
        "tags": [
          "Produkte"
        ],
        "summary": "Regeln für eine bestimmte Kategorie laden",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Kategorie-Regeln (Buchungsvoraussetzungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "catId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "kategorie_regeln"
      }
    },
    "/v1/categories/compatibility/{id}": {
      "put": {
        "operationId": "putV1CategoriesCompatibilityId",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Kategorie-Regeln (Buchungsvoraussetzungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "direction": {},
                  "note": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "kategorie_regeln"
      },
      "delete": {
        "operationId": "deleteV1CategoriesCompatibilityId",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Regel löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Kategorie-Regeln (Buchungsvoraussetzungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "kategorie_regeln"
      }
    },
    "/v1/categories/expenses": {
      "get": {
        "operationId": "getV1CategoriesExpenses",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Kategorien: „expenses“ abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben"
      },
      "post": {
        "operationId": "postV1CategoriesExpenses",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Kategorien: Aktion „expenses“ ausführen",
        "description": "Benötigtes Recht: `settings.edit`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "ausgaben"
      }
    },
    "/v1/categories/expenses/{id}": {
      "put": {
        "operationId": "putV1CategoriesExpensesId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Kategorien: Eintrag ändern",
        "description": "Benötigtes Recht: `settings.edit`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "ausgaben"
      },
      "delete": {
        "operationId": "deleteV1CategoriesExpensesId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Kategorien: Eintrag löschen",
        "description": "Benötigtes Recht: `settings.edit`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "ausgaben"
      }
    },
    "/v1/categories/payment-methods": {
      "get": {
        "operationId": "getV1CategoriesPaymentMethods",
        "tags": [
          "Kategorien"
        ],
        "summary": "Kategorien: „payment-methods“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "post": {
        "operationId": "postV1CategoriesPaymentMethods",
        "tags": [
          "Kategorien"
        ],
        "summary": "Kategorien: Aktion „payment-methods“ ausführen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/categories/payment-methods/{id}": {
      "put": {
        "operationId": "putV1CategoriesPaymentMethodsId",
        "tags": [
          "Kategorien"
        ],
        "summary": "Kategorien: Eintrag ändern",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      },
      "delete": {
        "operationId": "deleteV1CategoriesPaymentMethodsId",
        "tags": [
          "Kategorien"
        ],
        "summary": "Kategorien: Eintrag löschen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/categories/products": {
      "get": {
        "operationId": "getV1CategoriesProducts",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: „products“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1CategoriesProducts",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Aktion „products“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {},
                  "parent_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/categories/products/{id}": {
      "put": {
        "operationId": "putV1CategoriesProductsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      },
      "delete": {
        "operationId": "deleteV1CategoriesProductsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "move_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/categories/products/{id}/price-tiers": {
      "get": {
        "operationId": "getV1CategoriesProductsIdPriceTiers",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: „price-tiers“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "put": {
        "operationId": "putV1CategoriesProductsIdPriceTiers",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: „price-tiers“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/categories/products/{id}/template": {
      "get": {
        "operationId": "getV1CategoriesProductsIdTemplate",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: „template“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "put": {
        "operationId": "putV1CategoriesProductsIdTemplate",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: „template“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entries": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/categories/products/{id}/template/apply": {
      "post": {
        "operationId": "postV1CategoriesProductsIdTemplateApply",
        "tags": [
          "Produkte"
        ],
        "summary": "Kategorien: Aktion „apply“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/categories/products/{id}/template/from-product": {
      "post": {
        "operationId": "postV1CategoriesProductsIdTemplateFromProduct",
        "tags": [
          "Produkte"
        ],
        "summary": "Vorschlag aus einem vorhandenen Produkt: alle Eigenschaften mit ihren Werten als Vorgabewerte",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/categories/{id}/price-tiers": {
      "get": {
        "operationId": "getV1CategoriesIdPriceTiers",
        "tags": [
          "Kategorien"
        ],
        "summary": "Kategorien: „price-tiers“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1CategoriesIdPriceTiers",
        "tags": [
          "Kategorien"
        ],
        "summary": "Kategorien: „price-tiers“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "core"
      }
    },
    "/v1/contacts": {
      "get": {
        "operationId": "getV1Contacts",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Ansprechpartner: Liste abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplier_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte"
      },
      "post": {
        "operationId": "postV1Contacts",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Ansprechpartner: Neu anlegen",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte"
      }
    },
    "/v1/contacts/{id}": {
      "put": {
        "operationId": "putV1ContactsId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Ansprechpartner: Eintrag ändern",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte"
      },
      "delete": {
        "operationId": "deleteV1ContactsId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Ansprechpartner: Eintrag löschen",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte"
      }
    },
    "/v1/contracts": {
      "get": {
        "operationId": "getV1Contracts",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Liste abrufen",
        "description": "Benötigtes Recht: `contracts.view`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "contract_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.view",
        "x-module": "vertraege"
      },
      "post": {
        "operationId": "postV1Contracts",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Neu anlegen",
        "description": "Benötigtes Recht: `contracts.create`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.create",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/tax-suggestion": {
      "get": {
        "operationId": "getV1ContractsTaxSuggestion",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: „tax-suggestion“ abrufen",
        "description": "Benötigtes Recht: `contracts.view`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.view",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/upcoming": {
      "get": {
        "operationId": "getV1ContractsUpcoming",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: „upcoming“ abrufen",
        "description": "Benötigtes Recht: `contracts.view`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.view",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}": {
      "get": {
        "operationId": "getV1ContractsId",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `contracts.view`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.view",
        "x-module": "vertraege"
      },
      "put": {
        "operationId": "putV1ContractsId",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Eintrag ändern",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      },
      "delete": {
        "operationId": "deleteV1ContractsId",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Eintrag löschen",
        "description": "Benötigtes Recht: `contracts.delete`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.delete",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/activate": {
      "post": {
        "operationId": "postV1ContractsIdActivate",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Aktion „activate“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/cancel": {
      "post": {
        "operationId": "postV1ContractsIdCancel",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/events": {
      "get": {
        "operationId": "getV1ContractsIdEvents",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: „events“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `contracts.view`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.view",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/pause": {
      "post": {
        "operationId": "postV1ContractsIdPause",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Aktion „pause“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/price-adjust": {
      "post": {
        "operationId": "postV1ContractsIdPriceAdjust",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Aktion „price-adjust“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/renew": {
      "post": {
        "operationId": "postV1ContractsIdRenew",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Aktion „renew“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      }
    },
    "/v1/contracts/{id}/resume": {
      "post": {
        "operationId": "postV1ContractsIdResume",
        "tags": [
          "Verträge & Abonnements"
        ],
        "summary": "Verträge: Aktion „resume“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `contracts.edit`.\n\nModul „Verträge & Abonnements“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "contracts.edit",
        "x-module": "vertraege"
      }
    },
    "/v1/courses": {
      "get": {
        "operationId": "getV1Courses",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Liste abrufen",
        "description": "Benötigtes Recht: `courses.view`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.view",
        "x-module": "kurse"
      },
      "post": {
        "operationId": "postV1Courses",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Neu anlegen",
        "description": "Benötigtes Recht: `courses.create`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.create",
        "x-module": "kurse"
      }
    },
    "/v1/courses/stats": {
      "get": {
        "operationId": "getV1CoursesStats",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: „stats“ abrufen",
        "description": "Benötigtes Recht: `courses.view`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.view",
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}": {
      "get": {
        "operationId": "getV1CoursesId",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `courses.view`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.view",
        "x-module": "kurse"
      },
      "put": {
        "operationId": "putV1CoursesId",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Eintrag ändern",
        "description": "Benötigtes Recht: `courses.edit`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-module": "kurse"
      },
      "delete": {
        "operationId": "deleteV1CoursesId",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Eintrag löschen",
        "description": "Benötigtes Recht: `courses.delete`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "force": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.delete",
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}/participants": {
      "get": {
        "operationId": "getV1CoursesIdParticipants",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: „participants“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `courses.view`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.view",
        "x-module": "kurse"
      },
      "post": {
        "operationId": "postV1CoursesIdParticipants",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Aktion „participants“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `courses.edit`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}/participants/{pid}": {
      "put": {
        "operationId": "putV1CoursesIdParticipantsPid",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Eintrag ändern",
        "description": "Benötigtes Recht: `courses.edit`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-module": "kurse"
      },
      "delete": {
        "operationId": "deleteV1CoursesIdParticipantsPid",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Eintrag löschen",
        "description": "Benötigtes Recht: `courses.edit`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}/participants/{pid}/customer": {
      "post": {
        "operationId": "postV1CoursesIdParticipantsPidCustomer",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Aktion „customer“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `courses.edit`.\n\nJe nach Anfrage zusätzlich geprüft: `customers.create`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {},
                  "customer_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-checked-permissions": [
          "customers.create"
        ],
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}/participants/{pid}/invoice": {
      "post": {
        "operationId": "postV1CoursesIdParticipantsPidInvoice",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Aktion „invoice“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `courses.edit`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.create`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-checked-permissions": [
          "invoices.create"
        ],
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}/sessions": {
      "post": {
        "operationId": "postV1CoursesIdSessions",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Aktion „sessions“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `courses.edit`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-module": "kurse"
      }
    },
    "/v1/courses/{id}/sessions/{sid}": {
      "delete": {
        "operationId": "deleteV1CoursesIdSessionsSid",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kurse: Eintrag löschen",
        "description": "Benötigtes Recht: `courses.edit`.\n\nModul „Kurse & Teilnehmer“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "courses.edit",
        "x-module": "kurse"
      }
    },
    "/v1/crm/board": {
      "get": {
        "operationId": "getV1CrmBoard",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Kanban-Board: Opportunities gruppiert nach Stage",
        "description": "Benötigtes Recht: `crm.view`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.view",
        "x-module": "crm"
      }
    },
    "/v1/crm/opportunities": {
      "get": {
        "operationId": "getV1CrmOpportunities",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Opportunities",
        "description": "Benötigtes Recht: `crm.view`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "assigned_user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mine",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stage_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.view",
        "x-module": "crm"
      },
      "post": {
        "operationId": "postV1CrmOpportunities",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Aktion „opportunities“ ausführen",
        "description": "Benötigtes Recht: `crm.create`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "customer_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "stage_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "contact_person_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "value": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "probability": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "expected_close_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "assigned_user_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "status": {
                    "enum": [
                      "Offen",
                      "Gewonnen",
                      "Verloren",
                      "",
                      null
                    ]
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.create",
        "x-module": "crm"
      }
    },
    "/v1/crm/opportunities/{id}": {
      "get": {
        "operationId": "getV1CrmOpportunitiesId",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `crm.view`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.view",
        "x-module": "crm"
      },
      "put": {
        "operationId": "putV1CrmOpportunitiesId",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Eintrag ändern",
        "description": "Benötigtes Recht: `crm.edit`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "customer_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "stage_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "contact_person_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "value": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "probability": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "expected_close_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "assigned_user_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "status": {
                    "enum": [
                      "Offen",
                      "Gewonnen",
                      "Verloren",
                      "",
                      null
                    ]
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.edit",
        "x-module": "crm"
      }
    },
    "/v1/crm/opportunities/{id}/to-order": {
      "post": {
        "operationId": "postV1CrmOpportunitiesIdToOrder",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Aktion „to-order“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.create`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.create",
        "x-module": "crm"
      }
    },
    "/v1/crm/stages": {
      "get": {
        "operationId": "getV1CrmStages",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: „stages“ abrufen",
        "description": "Benötigtes Recht: `crm.view`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.view",
        "x-module": "crm"
      },
      "post": {
        "operationId": "postV1CrmStages",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Aktion „stages“ ausführen",
        "description": "Benötigtes Recht: `crm.edit`.\n\nJe nach Anfrage zusätzlich geprüft: `crm.delete`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.edit",
        "x-checked-permissions": [
          "crm.delete"
        ],
        "x-module": "crm"
      }
    },
    "/v1/crm/stages/{id}": {
      "put": {
        "operationId": "putV1CrmStagesId",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Eintrag ändern",
        "description": "Benötigtes Recht: `crm.edit`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.edit",
        "x-module": "crm"
      },
      "delete": {
        "operationId": "deleteV1CrmStagesId",
        "tags": [
          "Vertrieb"
        ],
        "summary": "Vertrieb: Eintrag löschen",
        "description": "Benötigtes Recht: `crm.delete`.\n\nModul „Vertrieb“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "crm.delete",
        "x-module": "crm"
      }
    },
    "/v1/customers": {
      "get": {
        "operationId": "getV1Customers",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: Liste abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte"
      },
      "post": {
        "operationId": "postV1Customers",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: Neu anlegen",
        "description": "Benötigtes Recht: `customers.create`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_type": {
                    "enum": [
                      "Geschäft",
                      "Privat"
                    ],
                    "type": "string"
                  },
                  "company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "contact_person": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254,
                    "format": "email"
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "mobile": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "zip_code": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "vat_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "leitweg_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "document_language": {
                    "enum": [
                      "de",
                      "en",
                      "",
                      null
                    ]
                  },
                  "einvoice_format": {
                    "enum": [
                      "zugferd",
                      "xrechnung",
                      "pdf",
                      "",
                      null
                    ]
                  },
                  "discount_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "skonto_days": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 365
                  },
                  "payment_days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 365
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "email_opt_out": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "marketing_consent": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "marketing_consent_source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "paypal_invoice": {
                    "enum": [
                      0,
                      1,
                      null,
                      ""
                    ]
                  },
                  "owner_user_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "send_welcome": {
                    "type": "boolean"
                  },
                  "delivery_differs": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "delivery_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "delivery_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.create",
        "x-module": "kontakte"
      }
    },
    "/v1/customers/{id}": {
      "get": {
        "operationId": "getV1CustomersId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-checked-permissions": [
          "invoices.view"
        ],
        "x-module": "kontakte"
      },
      "put": {
        "operationId": "putV1CustomersId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: Eintrag ändern",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_type": {
                    "enum": [
                      "Geschäft",
                      "Privat"
                    ],
                    "type": "string"
                  },
                  "company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "contact_person": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254,
                    "format": "email"
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "mobile": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "zip_code": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "vat_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "leitweg_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "document_language": {
                    "enum": [
                      "de",
                      "en",
                      "",
                      null
                    ]
                  },
                  "einvoice_format": {
                    "enum": [
                      "zugferd",
                      "xrechnung",
                      "pdf",
                      "",
                      null
                    ]
                  },
                  "discount_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "skonto_days": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 365
                  },
                  "payment_days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 365
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "email_opt_out": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "marketing_consent": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "marketing_consent_source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "paypal_invoice": {
                    "enum": [
                      0,
                      1,
                      null,
                      ""
                    ]
                  },
                  "owner_user_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "send_welcome": {
                    "type": "boolean"
                  },
                  "delivery_differs": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "delivery_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "delivery_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte"
      },
      "delete": {
        "operationId": "deleteV1CustomersId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: Eintrag löschen",
        "description": "Benötigtes Recht: `customers.delete`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "force": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.delete",
        "x-module": "kontakte"
      }
    },
    "/v1/customers/{id}/comments": {
      "get": {
        "operationId": "getV1CustomersIdComments",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: „comments“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte"
      },
      "post": {
        "operationId": "postV1CustomersIdComments",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: Aktion „comments“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 10000
                  },
                  "mentions_json": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "body"
                ],
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte"
      }
    },
    "/v1/customers/{id}/profitability": {
      "get": {
        "operationId": "getV1CustomersIdProfitability",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: „profitability“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view` und `invoices.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "customers.view",
          "invoices.view"
        ],
        "x-module": "kontakte"
      }
    },
    "/v1/customers/{id}/timeline": {
      "get": {
        "operationId": "getV1CustomersIdTimeline",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Kunden: „timeline“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nJe nach Anfrage zusätzlich geprüft: `orders.view`, `invoices.view`, `projects.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-checked-permissions": [
          "orders.view",
          "invoices.view",
          "projects.view"
        ],
        "x-module": "kontakte"
      }
    },
    "/v1/dashboard/charts/order-status": {
      "get": {
        "operationId": "getV1DashboardChartsOrderStatus",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „order-status“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/dashboard/charts/revenue-expenses": {
      "get": {
        "operationId": "getV1DashboardChartsRevenueExpenses",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „revenue-expenses“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/dashboard/kpis": {
      "get": {
        "operationId": "getV1DashboardKpis",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „kpis“ abrufen",
        "description": "Benötigtes Recht: `dashboard.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "dashboard.view",
        "x-module": "core"
      }
    },
    "/v1/dashboard/low-stock": {
      "get": {
        "operationId": "getV1DashboardLowStock",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „low-stock“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/dashboard/recent-invoices": {
      "get": {
        "operationId": "getV1DashboardRecentInvoices",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „recent-invoices“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/dashboard/recent-orders": {
      "get": {
        "operationId": "getV1DashboardRecentOrders",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „recent-orders“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/dashboard/summary": {
      "get": {
        "operationId": "getV1DashboardSummary",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „summary“ abrufen",
        "description": "Benötigtes Recht: `dashboard.view`.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "widgets",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "dashboard.view",
        "x-module": "core"
      }
    },
    "/v1/dashboard/tax-mode": {
      "get": {
        "operationId": "getV1DashboardTaxMode",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „tax-mode“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nJe nach Anfrage zusätzlich geprüft: `expenses.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-checked-permissions": [
          "expenses.view"
        ],
        "x-module": "core"
      }
    },
    "/v1/dashboard/today": {
      "get": {
        "operationId": "getV1DashboardToday",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „today“ abrufen",
        "description": "Benötigtes Recht: `dashboard.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "dashboard.view",
        "x-module": "core"
      }
    },
    "/v1/dashboard/top-customers": {
      "get": {
        "operationId": "getV1DashboardTopCustomers",
        "tags": [
          "Startseite"
        ],
        "summary": "Startseite: „top-customers“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/analyze": {
      "post": {
        "operationId": "postV1DataImportAnalyze",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Aktion „analyze“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {},
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/commit": {
      "post": {
        "operationId": "postV1DataImportCommit",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Aktion „commit“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/dry-run": {
      "post": {
        "operationId": "postV1DataImportDryRun",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Aktion „dry-run“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/dry-run.csv": {
      "post": {
        "operationId": "postV1DataImportDryRunCsv",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Aktion „dry-run.csv“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/kinds": {
      "get": {
        "operationId": "getV1DataImportKinds",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: „kinds“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-checked-permissions": [
          "invoices.view"
        ],
        "x-module": "core"
      }
    },
    "/v1/data-import/open-items": {
      "get": {
        "operationId": "getV1DataImportOpenItems",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: „open-items“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "overdue",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/open-items/{id}/reopen": {
      "post": {
        "operationId": "postV1DataImportOpenItemsIdReopen",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Aktion „reopen“ an einem Eintrag ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/open-items/{id}/settle": {
      "post": {
        "operationId": "postV1DataImportOpenItemsIdSettle",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Aktion „settle“ an einem Eintrag ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/runs": {
      "get": {
        "operationId": "getV1DataImportRuns",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: „runs“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/runs/{id}": {
      "get": {
        "operationId": "getV1DataImportRunsId",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: Einzelnen Eintrag abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/data-import/runs/{id}/report.csv": {
      "get": {
        "operationId": "getV1DataImportRunsIdReportCsv",
        "tags": [
          "Datenübernahme"
        ],
        "summary": "Datenübernahme: „report.csv“ zu einem Eintrag abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/datev-import": {
      "get": {
        "operationId": "getV1DatevImport",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Liste abrufen",
        "description": "Benötigtes Recht: `datev.view`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.view",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/account-map": {
      "get": {
        "operationId": "getV1DatevImportAccountMap",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: „account-map“ abrufen",
        "description": "Benötigtes Recht: `datev.view`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.view",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      },
      "post": {
        "operationId": "postV1DatevImportAccountMap",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Aktion „account-map“ ausführen",
        "description": "Benötigtes Recht: `datev.manage`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.manage",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/account-map/{id}": {
      "put": {
        "operationId": "putV1DatevImportAccountMapId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Eintrag ändern",
        "description": "Benötigtes Recht: `datev.manage`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.manage",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      },
      "delete": {
        "operationId": "deleteV1DatevImportAccountMapId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Eintrag löschen",
        "description": "Benötigtes Recht: `datev.manage`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.manage",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/supplier-map": {
      "get": {
        "operationId": "getV1DatevImportSupplierMap",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: „supplier-map“ abrufen",
        "description": "Benötigtes Recht: `datev.view`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.view",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      },
      "post": {
        "operationId": "postV1DatevImportSupplierMap",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Aktion „supplier-map“ ausführen",
        "description": "Benötigtes Recht: `datev.manage`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.manage",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/supplier-map/{id}": {
      "put": {
        "operationId": "putV1DatevImportSupplierMapId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Eintrag ändern",
        "description": "Benötigtes Recht: `datev.manage`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.manage",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      },
      "delete": {
        "operationId": "deleteV1DatevImportSupplierMapId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Eintrag löschen",
        "description": "Benötigtes Recht: `datev.manage`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.manage",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/tax-rule-options": {
      "get": {
        "operationId": "getV1DatevImportTaxRuleOptions",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: „tax-rule-options“ abrufen",
        "description": "Benötigtes Recht: `datev.view`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.view",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/upload": {
      "post": {
        "operationId": "postV1DatevImportUpload",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Aktion „upload“ ausführen",
        "description": "Benötigtes Recht: `datev.import`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.import",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/{id}": {
      "get": {
        "operationId": "getV1DatevImportId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `datev.view`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.view",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      },
      "delete": {
        "operationId": "deleteV1DatevImportId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Eintrag löschen",
        "description": "Benötigtes Recht: `datev.import`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.import",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/{id}/commit": {
      "post": {
        "operationId": "postV1DatevImportIdCommit",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Aktion „commit“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `datev.import`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.import",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/{id}/items/{itemId}": {
      "patch": {
        "operationId": "patchV1DatevImportIdItemsItemId",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Eintrag teilweise ändern",
        "description": "Benötigtes Recht: `datev.import`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.import",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/{id}/items/{itemId}/pdf": {
      "get": {
        "operationId": "getV1DatevImportIdItemsItemIdPdf",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: „pdf“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `datev.view`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.view",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/{id}/recheck": {
      "post": {
        "operationId": "postV1DatevImportIdRecheck",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Aktion „recheck“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `datev.import`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.import",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/datev-import/{id}/test": {
      "post": {
        "operationId": "postV1DatevImportIdTest",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegimport: Aktion „test“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `datev.import`.\n\nModul „Buchhaltung“, Funktion „sevDesk- / DATEV-Nachimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "datev.import",
        "x-module": "buchhaltung",
        "x-function": "sevdesk_import"
      }
    },
    "/v1/designer/apply": {
      "post": {
        "operationId": "postV1DesignerApply",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Nimmt das fertige Design entgegen und schreibt es in den Auftrag",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "payload": {},
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/copy-design": {
      "post": {
        "operationId": "postV1DesignerCopyDesign",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „copy-design“ ausführen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/designable": {
      "get": {
        "operationId": "getV1DesignerDesignable",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „designable“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/designable/categories/{id}": {
      "put": {
        "operationId": "putV1DesignerDesignableCategoriesId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/designable/products/{id}": {
      "put": {
        "operationId": "putV1DesignerDesignableProductsId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/images/{id}": {
      "get": {
        "operationId": "getV1DesignerImagesId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Produktfoto ausliefern",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      },
      "delete": {
        "operationId": "deleteV1DesignerImagesId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/import-wordpress": {
      "post": {
        "operationId": "postV1DesignerImportWordpress",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „import-wordpress“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“, Funktion „WordPress-Import im Programm (JSON des Designer-Plugins)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "map": {},
                  "positions": {},
                  "skus": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer",
        "x-function": "wp_import"
      }
    },
    "/v1/designer/measures/bulk": {
      "post": {
        "operationId": "postV1DesignerMeasuresBulk",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „bulk“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/measures/property-import": {
      "get": {
        "operationId": "getV1DesignerMeasuresPropertyImport",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „property-import“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      },
      "post": {
        "operationId": "postV1DesignerMeasuresPropertyImport",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „property-import“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/motifs/{id}/{kind}": {
      "get": {
        "operationId": "getV1DesignerMotifsIdKind",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Druckdatei bzw. Vorschau eines Motivs",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "print",
                "preview"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/positions/{id}": {
      "get": {
        "operationId": "getV1DesignerPositionsId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-defaults": {
      "get": {
        "operationId": "getV1DesignerPrintDefaults",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „print-defaults“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-defaults/{printProductId}": {
      "put": {
        "operationId": "putV1DesignerPrintDefaultsPrintProductId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "printProductId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mm_h": {},
                  "mm_w": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-report": {
      "get": {
        "operationId": "getV1DesignerPrintReport",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „print-report“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "problems",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-sheet": {
      "put": {
        "operationId": "putV1DesignerPrintSheet",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „print-sheet“ ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates": {
      "get": {
        "operationId": "getV1DesignerPrintTemplates",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „print-templates“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      },
      "post": {
        "operationId": "postV1DesignerPrintTemplates",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „print-templates“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates/{id}": {
      "put": {
        "operationId": "putV1DesignerPrintTemplatesId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      },
      "delete": {
        "operationId": "deleteV1DesignerPrintTemplatesId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates/{id}/calibration": {
      "get": {
        "operationId": "getV1DesignerPrintTemplatesIdCalibration",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Fortschritt der Kalibrierung: je Produkt der Vorlage und Ansicht mit Foto",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates/{id}/categories": {
      "put": {
        "operationId": "putV1DesignerPrintTemplatesIdCategories",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „categories“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "category_ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates/{id}/copy": {
      "post": {
        "operationId": "postV1DesignerPrintTemplatesIdCopy",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „copy“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates/{id}/products": {
      "get": {
        "operationId": "getV1DesignerPrintTemplatesIdProducts",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „products“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/print-templates/{id}/transfer-layout": {
      "post": {
        "operationId": "postV1DesignerPrintTemplatesIdTransferLayout",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Aktion „transfer-layout“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product_ids": {},
                  "source_product_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products": {
      "get": {
        "operationId": "getV1DesignerProducts",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „products“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/images": {
      "get": {
        "operationId": "getV1DesignerProductsIdImages",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „images“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      },
      "post": {
        "operationId": "postV1DesignerProductsIdImages",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Foto hochladen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allow_size_mismatch": {},
                  "attributes": {},
                  "color_key": {},
                  "color_name": {},
                  "sort_order": {},
                  "view_name": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/layout": {
      "put": {
        "operationId": "putV1DesignerProductsIdLayout",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „layout“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "centers": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/measures": {
      "get": {
        "operationId": "getV1DesignerProductsIdMeasures",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Textilmaße eines Produkts samt Größen aus den Varianten und gewählter Vorlage",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      },
      "put": {
        "operationId": "putV1DesignerProductsIdMeasures",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „measures“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/mockup": {
      "get": {
        "operationId": "getV1DesignerProductsIdMockup",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „mockup“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/positions": {
      "get": {
        "operationId": "getV1DesignerProductsIdPositions",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „positions“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      },
      "put": {
        "operationId": "putV1DesignerProductsIdPositions",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „positions“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "positions": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/print-overrides": {
      "put": {
        "operationId": "putV1DesignerProductsIdPrintOverrides",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Druckmaß einer Größe von Hand setzen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "h": {},
                  "pos_key": {},
                  "size": {},
                  "w": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/print-template": {
      "put": {
        "operationId": "putV1DesignerProductsIdPrintTemplate",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „print-template“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "template_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/view-scale": {
      "put": {
        "operationId": "putV1DesignerProductsIdViewScale",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Maßstab einer Ansicht aus zwei Fotopunkten und einem Textilmaß der gewählten Größe",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer"
      }
    },
    "/v1/designer/products/{id}/view-scales": {
      "get": {
        "operationId": "getV1DesignerProductsIdViewScales",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „view-scales“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer"
      }
    },
    "/v1/designer/size-scales": {
      "get": {
        "operationId": "getV1DesignerSizeScales",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Groessen-Skalierung: die in cm gepflegten Drucktabellen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“, Funktion „Druckgrössen (Grössenstaffeln)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer",
        "x-function": "druckgroessen"
      },
      "put": {
        "operationId": "putV1DesignerSizeScales",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Abweichungen speichern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“, Funktion „Druckgrössen (Grössenstaffeln)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cm": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer",
        "x-function": "druckgroessen"
      }
    },
    "/v1/designer/size-scales/coverage": {
      "get": {
        "operationId": "getV1DesignerSizeScalesCoverage",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: „coverage“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Druck & Textil“, Funktion „Druckgrössen (Grössenstaffeln)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "designer",
        "x-function": "druckgroessen"
      }
    },
    "/v1/designer/size-scales/coverage/{id}": {
      "put": {
        "operationId": "putV1DesignerSizeScalesCoverageId",
        "tags": [
          "Druck & Textil"
        ],
        "summary": "Designer: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Druck & Textil“, Funktion „Druckgrössen (Grössenstaffeln)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "map": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "designer",
        "x-function": "druckgroessen"
      }
    },
    "/v1/documents": {
      "get": {
        "operationId": "getV1Documents",
        "tags": [
          "Dokumente"
        ],
        "summary": "Dokumente: Liste abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "document_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "linked_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "linked_table",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplier_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      },
      "post": {
        "operationId": "postV1Documents",
        "tags": [
          "Dokumente"
        ],
        "summary": "Dokumente: Neu anlegen",
        "description": "Benötigtes Recht: `documents.upload`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.upload",
        "x-module": "core"
      }
    },
    "/v1/documents/{id}": {
      "get": {
        "operationId": "getV1DocumentsId",
        "tags": [
          "Dokumente"
        ],
        "summary": "Dokumente: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1DocumentsId",
        "tags": [
          "Dokumente"
        ],
        "summary": "Dokumente: Eintrag ändern",
        "description": "Benötigtes Recht: `documents.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.edit",
        "x-module": "core"
      },
      "delete": {
        "operationId": "deleteV1DocumentsId",
        "tags": [
          "Dokumente"
        ],
        "summary": "Dokumente: Eintrag löschen",
        "description": "Benötigtes Recht: `documents.delete`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.delete",
        "x-module": "core"
      }
    },
    "/v1/documents/{id}/file": {
      "get": {
        "operationId": "getV1DocumentsIdFile",
        "tags": [
          "Dokumente"
        ],
        "summary": "Dokumente: „file“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      }
    },
    "/v1/email-layout": {
      "get": {
        "operationId": "getV1EmailLayout",
        "tags": [
          "E-Mail-Vorlagen"
        ],
        "summary": "E-Mail-Layout: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/email-layout/preview": {
      "post": {
        "operationId": "postV1EmailLayoutPreview",
        "tags": [
          "E-Mail-Vorlagen"
        ],
        "summary": "E-Mail-Layout: Aktion „preview“ ausführen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/email-templates": {
      "get": {
        "operationId": "getV1EmailTemplates",
        "tags": [
          "E-Mail-Vorlagen"
        ],
        "summary": "E-Mail-Vorlagen: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/email-templates/{key}/preview": {
      "post": {
        "operationId": "postV1EmailTemplatesKeyPreview",
        "tags": [
          "E-Mail-Vorlagen"
        ],
        "summary": "E-Mail-Vorlagen: Aktion „preview“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/expenses": {
      "get": {
        "operationId": "getV1Expenses",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Liste abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "payment_status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplier_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben"
      },
      "post": {
        "operationId": "postV1Expenses",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Neu anlegen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "supplier_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "expense_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "category": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "expense_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "tax_rule": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "payment_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "payment_method": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "amount_input_mode": {
                    "enum": [
                      "gross",
                      "net",
                      "",
                      null
                    ]
                  },
                  "cost_center_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "anyOf": [
                      {
                        "type": "array",
                        "maxItems": 50
                      },
                      {
                        "type": "string",
                        "maxLength": 200000
                      }
                    ]
                  },
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "supplier_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "expense_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "category": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "expense_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "tax_rule": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "payment_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "payment_method": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "amount_input_mode": {
                    "enum": [
                      "gross",
                      "net",
                      "",
                      null
                    ]
                  },
                  "cost_center_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "anyOf": [
                      {
                        "type": "array",
                        "maxItems": 50
                      },
                      {
                        "type": "string",
                        "maxLength": 200000
                      }
                    ]
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben"
      }
    },
    "/v1/expenses/recurring": {
      "get": {
        "operationId": "getV1ExpensesRecurring",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: „recurring“ abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Wiederkehrende Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "dauerausgaben"
      },
      "post": {
        "operationId": "postV1ExpensesRecurring",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Aktion „recurring“ ausführen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Wiederkehrende Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "dauerausgaben"
      }
    },
    "/v1/expenses/recurring/{id}": {
      "put": {
        "operationId": "putV1ExpensesRecurringId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Eintrag ändern",
        "description": "Benötigtes Recht: `expenses.edit`.\n\nModul „Ausgaben“, Funktion „Wiederkehrende Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.edit",
        "x-module": "ausgaben",
        "x-function": "dauerausgaben"
      },
      "delete": {
        "operationId": "deleteV1ExpensesRecurringId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Eintrag löschen",
        "description": "Benötigtes Recht: `expenses.delete`.\n\nModul „Ausgaben“, Funktion „Wiederkehrende Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.delete",
        "x-module": "ausgaben",
        "x-function": "dauerausgaben"
      }
    },
    "/v1/expenses/tax-mode": {
      "get": {
        "operationId": "getV1ExpensesTaxMode",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: „tax-mode“ abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben"
      }
    },
    "/v1/expenses/{id}": {
      "get": {
        "operationId": "getV1ExpensesId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben"
      },
      "put": {
        "operationId": "putV1ExpensesId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Eintrag ändern",
        "description": "Benötigtes Recht: `expenses.edit`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "supplier_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "expense_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "category": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "expense_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "tax_rule": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "payment_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "payment_method": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "amount_input_mode": {
                    "enum": [
                      "gross",
                      "net",
                      "",
                      null
                    ]
                  },
                  "cost_center_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "anyOf": [
                      {
                        "type": "array",
                        "maxItems": 50
                      },
                      {
                        "type": "string",
                        "maxLength": 200000
                      }
                    ]
                  },
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "supplier_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "expense_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "category": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "expense_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "tax_rule": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "payment_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "payment_method": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "amount_input_mode": {
                    "enum": [
                      "gross",
                      "net",
                      "",
                      null
                    ]
                  },
                  "cost_center_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "anyOf": [
                      {
                        "type": "array",
                        "maxItems": 50
                      },
                      {
                        "type": "string",
                        "maxLength": 200000
                      }
                    ]
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.edit",
        "x-module": "ausgaben"
      },
      "delete": {
        "operationId": "deleteV1ExpensesId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Eintrag löschen",
        "description": "Benötigtes Recht: `expenses.delete`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.delete",
        "x-module": "ausgaben"
      }
    },
    "/v1/expenses/{id}/file": {
      "get": {
        "operationId": "getV1ExpensesIdFile",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: „file“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben"
      }
    },
    "/v1/expenses/{id}/finalize": {
      "post": {
        "operationId": "postV1ExpensesIdFinalize",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Aktion „finalize“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `expenses.edit`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.edit",
        "x-module": "ausgaben"
      }
    },
    "/v1/expenses/{id}/reopen": {
      "post": {
        "operationId": "postV1ExpensesIdReopen",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Ausgaben: Aktion „reopen“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `expenses.edit`.\n\nModul „Ausgaben“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.edit",
        "x-module": "ausgaben"
      }
    },
    "/v1/gobd/audit": {
      "get": {
        "operationId": "getV1GobdAudit",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "GoBD: „audit“ abrufen",
        "description": "Benötigtes Recht: `gobd.view`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/audit/entity-types": {
      "get": {
        "operationId": "getV1GobdAuditEntityTypes",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "GoBD: „entity-types“ abrufen",
        "description": "Benötigtes Recht: `gobd.view`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/audit/verify": {
      "get": {
        "operationId": "getV1GobdAuditVerify",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Integrität der Hash-Kette prüfen",
        "description": "Benötigtes Recht: `gobd.view`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/export": {
      "get": {
        "operationId": "getV1GobdExport",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "GoBD: „export“ abrufen",
        "description": "Benötigtes Recht: `gobd.export`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.export",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/number-check": {
      "get": {
        "operationId": "getV1GobdNumberCheck",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Belegnummern-Lückenprüfung",
        "description": "Benötigtes Recht: `gobd.view`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.edit`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-checked-permissions": [
          "invoices.edit"
        ],
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/number-gaps": {
      "get": {
        "operationId": "getV1GobdNumberGaps",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "GoBD: „number-gaps“ abrufen",
        "description": "Benötigtes Recht: `gobd.view`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/status": {
      "get": {
        "operationId": "getV1GobdStatus",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "GoBD: „status“ abrufen",
        "description": "Benötigtes Recht: `gobd.view`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gobd/verfahrensdokumentation": {
      "get": {
        "operationId": "getV1GobdVerfahrensdokumentation",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "GoBD: „verfahrensdokumentation“ abrufen",
        "description": "Benötigtes Recht: `gobd.view`.\n\nModul „Buchhaltung“, Funktion „GoBD-Export“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "download",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "gobd.view",
        "x-module": "buchhaltung",
        "x-function": "gobd"
      }
    },
    "/v1/gpsr/order-position/{id}": {
      "put": {
        "operationId": "putV1GpsrOrderPositionId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktsicherheit: Eintrag ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Produkte“, Funktion „Produktsicherheit (GPSR)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "produkte",
        "x-function": "gpsr"
      }
    },
    "/v1/gpsr/order-position/{id}/from-product": {
      "post": {
        "operationId": "postV1GpsrOrderPositionIdFromProduct",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkt-Vorlage in eine Auftragsposition übernehmen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Produkte“, Funktion „Produktsicherheit (GPSR)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "produkte",
        "x-function": "gpsr"
      }
    },
    "/v1/gpsr/product/{id}": {
      "get": {
        "operationId": "getV1GpsrProductId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktsicherheit: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Produktsicherheit (GPSR)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "gpsr"
      },
      "put": {
        "operationId": "putV1GpsrProductId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktsicherheit: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktsicherheit (GPSR)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gpsr"
      }
    },
    "/v1/incoming-receipts": {
      "post": {
        "operationId": "postV1IncomingReceipts",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Neu anlegen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      },
      "get": {
        "operationId": "getV1IncomingReceipts",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Liste abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "validation",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/mailboxes": {
      "get": {
        "operationId": "getV1IncomingReceiptsMailboxes",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: „mailboxes“ abrufen",
        "description": "Benötigtes Recht: `mailbox.admin`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "mailbox.admin",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/mailboxes/{id}": {
      "put": {
        "operationId": "putV1IncomingReceiptsMailboxesId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Eintrag ändern",
        "description": "Benötigtes Recht: `mailbox.admin`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "mailbox.admin",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/status": {
      "get": {
        "operationId": "getV1IncomingReceiptsStatus",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Werkzeuge und Prüfer",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}": {
      "get": {
        "operationId": "getV1IncomingReceiptsId",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/confirm": {
      "post": {
        "operationId": "postV1IncomingReceiptsIdConfirm",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Aktion „confirm“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/discard": {
      "post": {
        "operationId": "postV1IncomingReceiptsIdDiscard",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Aktion „discard“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/draft": {
      "put": {
        "operationId": "putV1IncomingReceiptsIdDraft",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: „draft“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/file": {
      "get": {
        "operationId": "getV1IncomingReceiptsIdFile",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: „file“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/reopen": {
      "post": {
        "operationId": "postV1IncomingReceiptsIdReopen",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Aktion „reopen“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/report": {
      "get": {
        "operationId": "getV1IncomingReceiptsIdReport",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: „report“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/report.xml": {
      "get": {
        "operationId": "getV1IncomingReceiptsIdReportXml",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: „report.xml“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/reprocess": {
      "post": {
        "operationId": "postV1IncomingReceiptsIdReprocess",
        "tags": [
          "Ausgaben"
        ],
        "summary": "Belege-Eingang: Aktion „reprocess“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/incoming-receipts/{id}/xml": {
      "get": {
        "operationId": "getV1IncomingReceiptsIdXml",
        "tags": [
          "Ausgaben"
        ],
        "summary": "E-Rechnungs-XML: bei ZUGFeRD das aus der PDF geholte, bei XRechnung die Datei selbst",
        "description": "Benötigtes Recht: `expenses.view`.\n\nModul „Ausgaben“, Funktion „Belege-Eingang (E-Rechnungen empfangen und prüfen, Belegerkennung, Belege-Postfach)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.view",
        "x-module": "ausgaben",
        "x-function": "belegeingang"
      }
    },
    "/v1/inquiries": {
      "get": {
        "operationId": "getV1Inquiries",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: Liste abrufen",
        "description": "Benötigtes Recht: `inquiries.view`.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inquiries.view",
        "x-module": "anfragen"
      }
    },
    "/v1/inquiries/{id}": {
      "get": {
        "operationId": "getV1InquiriesId",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `inquiries.view`.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inquiries.view",
        "x-module": "anfragen"
      },
      "delete": {
        "operationId": "deleteV1InquiriesId",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: Eintrag löschen",
        "description": "Benötigtes Recht: `inquiries.edit`.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inquiries.edit",
        "x-module": "anfragen"
      }
    },
    "/v1/inquiries/{id}/accept": {
      "put": {
        "operationId": "putV1InquiriesIdAccept",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: „accept“ eines Eintrags ändern",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "anfragen"
      }
    },
    "/v1/inquiries/{id}/customer": {
      "post": {
        "operationId": "postV1InquiriesIdCustomer",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: Aktion „customer“ an einem Eintrag ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "create": {},
                  "customer_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "anfragen"
      }
    },
    "/v1/inquiries/{id}/files/{fid}": {
      "get": {
        "operationId": "getV1InquiriesIdFilesFid",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `inquiries.view`.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inquiries.view",
        "x-module": "anfragen"
      }
    },
    "/v1/inquiries/{id}/owner": {
      "put": {
        "operationId": "putV1InquiriesIdOwner",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: „owner“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `inquiries.edit`.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "owner_user_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inquiries.edit",
        "x-module": "anfragen"
      }
    },
    "/v1/inquiries/{id}/reject": {
      "put": {
        "operationId": "putV1InquiriesIdReject",
        "tags": [
          "Anfragen & Website"
        ],
        "summary": "Anfragen: „reject“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `inquiries.edit`.\n\nModul „Anfragen & Website“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rejection_reason": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inquiries.edit",
        "x-module": "anfragen"
      }
    },
    "/v1/inventory/batches": {
      "get": {
        "operationId": "getV1InventoryBatches",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: „batches“ abrufen",
        "description": "Benötigtes Recht: `inventory.view`.\n\nModul „Lager“, Funktion „Chargen und Seriennummern“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.view",
        "x-module": "lager",
        "x-function": "chargen"
      },
      "post": {
        "operationId": "postV1InventoryBatches",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Aktion „batches“ ausführen",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Chargen und Seriennummern“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "chargen"
      }
    },
    "/v1/inventory/movements": {
      "get": {
        "operationId": "getV1InventoryMovements",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: „movements“ abrufen",
        "description": "Benötigtes Recht: `inventory.view`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "combination_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "warehouse_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.view",
        "x-module": "lager"
      },
      "post": {
        "operationId": "postV1InventoryMovements",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Aktion „movements“ ausführen",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager"
      }
    },
    "/v1/inventory/serial-numbers": {
      "get": {
        "operationId": "getV1InventorySerialNumbers",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: „serial-numbers“ abrufen",
        "description": "Benötigtes Recht: `inventory.view`.\n\nModul „Lager“, Funktion „Chargen und Seriennummern“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.view",
        "x-module": "lager",
        "x-function": "chargen"
      },
      "post": {
        "operationId": "postV1InventorySerialNumbers",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Aktion „serial-numbers“ ausführen",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Chargen und Seriennummern“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "chargen"
      }
    },
    "/v1/inventory/serial-numbers/{id}": {
      "put": {
        "operationId": "putV1InventorySerialNumbersId",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Eintrag ändern",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Chargen und Seriennummern“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "chargen"
      }
    },
    "/v1/inventory/sessions": {
      "get": {
        "operationId": "getV1InventorySessions",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Inventur-Sessions",
        "description": "Benötigtes Recht: `inventory.view`.\n\nModul „Lager“, Funktion „Inventur“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.view",
        "x-module": "lager",
        "x-function": "inventur"
      },
      "post": {
        "operationId": "postV1InventorySessions",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Aktion „sessions“ ausführen",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Inventur“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "inventur"
      }
    },
    "/v1/inventory/sessions/{id}": {
      "get": {
        "operationId": "getV1InventorySessionsId",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `inventory.view`.\n\nModul „Lager“, Funktion „Inventur“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.view",
        "x-module": "lager",
        "x-function": "inventur"
      }
    },
    "/v1/inventory/sessions/{id}/complete": {
      "post": {
        "operationId": "postV1InventorySessionsIdComplete",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Aktion „complete“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Inventur“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "inventur"
      }
    },
    "/v1/inventory/sessions/{id}/items/{itemId}": {
      "put": {
        "operationId": "putV1InventorySessionsIdItemsItemId",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Eintrag ändern",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Inventur“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "counted_quantity": {},
                  "notes": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "inventur"
      }
    },
    "/v1/inventory/sessions/{id}/take-expected": {
      "post": {
        "operationId": "postV1InventorySessionsIdTakeExpected",
        "tags": [
          "Lager"
        ],
        "summary": "Bestand: Aktion „take-expected“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `inventory.manage`.\n\nModul „Lager“, Funktion „Inventur“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "inventory.manage",
        "x-module": "lager",
        "x-function": "inventur"
      }
    },
    "/v1/invoices": {
      "get": {
        "operationId": "getV1Invoices",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Liste abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "payment_status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      },
      "post": {
        "operationId": "postV1Invoices",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Neu anlegen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoice_type": {
                    "enum": [
                      "Rechnung",
                      "Gutschrift",
                      "Proformarechnung"
                    ],
                    "type": "string"
                  },
                  "customer_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "order_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "corrects_invoice_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "buyer_reference": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "document_language": {
                    "enum": [
                      "de",
                      "en",
                      "",
                      null
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "exchange_rate": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1000000
                          },
                          {
                            "type": "string",
                            "maxLength": 30
                          }
                        ]
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "exchange_rate_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "exchange_rate_source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 120
                  },
                  "status": {
                    "enum": [
                      "Entwurf",
                      "Versendet",
                      "Festgeschrieben",
                      "Bezahlt",
                      "Storniert",
                      "",
                      null
                    ]
                  },
                  "invoice_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "payment_days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 365
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "discount_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "teilbezahlt",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "type": "array",
                    "maxItems": 500
                  },
                  "customer_snapshot_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "customer_snapshot_email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254,
                    "format": "email"
                  },
                  "customer_snapshot_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "customer_snapshot_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "customer_snapshot_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "customer_snapshot_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_vat_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "delivery_differs": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "delivery_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "delivery_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "service_date_from": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "service_date_to": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/bulk-status": {
      "post": {
        "operationId": "postV1InvoicesBulkStatus",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Massenaktion: Status für mehrere Rechnungen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {},
                  "status": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/export/belegliste": {
      "get": {
        "operationId": "getV1InvoicesExportBelegliste",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „belegliste“ abrufen",
        "description": "Benötigtes Recht: `reports.export`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/export/datev": {
      "get": {
        "operationId": "getV1InvoicesExportDatev",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „datev“ abrufen",
        "description": "Benötigtes Recht: `reports.export`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}": {
      "get": {
        "operationId": "getV1InvoicesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      },
      "put": {
        "operationId": "putV1InvoicesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Eintrag ändern",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoice_type": {
                    "enum": [
                      "Rechnung",
                      "Gutschrift",
                      "Proformarechnung"
                    ],
                    "type": "string"
                  },
                  "customer_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "order_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "corrects_invoice_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "buyer_reference": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "document_language": {
                    "enum": [
                      "de",
                      "en",
                      "",
                      null
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "exchange_rate": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1000000
                          },
                          {
                            "type": "string",
                            "maxLength": 30
                          }
                        ]
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "exchange_rate_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "exchange_rate_source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 120
                  },
                  "status": {
                    "enum": [
                      "Entwurf",
                      "Versendet",
                      "Festgeschrieben",
                      "Bezahlt",
                      "Storniert",
                      "",
                      null
                    ]
                  },
                  "invoice_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "payment_days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 365
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "discount_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "teilbezahlt",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "type": "array",
                    "maxItems": 500
                  },
                  "customer_snapshot_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "customer_snapshot_email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254,
                    "format": "email"
                  },
                  "customer_snapshot_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "customer_snapshot_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "customer_snapshot_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "customer_snapshot_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_vat_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "delivery_differs": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "delivery_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "delivery_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "service_date_from": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "service_date_to": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      },
      "delete": {
        "operationId": "deleteV1InvoicesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Eintrag löschen",
        "description": "Benötigtes Recht: `invoices.delete`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.delete",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/assign-number": {
      "post": {
        "operationId": "postV1InvoicesIdAssignNumber",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Aktion „assign-number“ an einem Eintrag ausführen",
        "description": "Per API-Schlüssel nur mit dem Sonder-Scope `api.invoice_number` – er muss dem Schlüssel einzeln gegeben werden (`*` und Platzhalter decken ihn nicht).\n\nBenötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoice_date": {},
                  "number": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-required-scope": "api.invoice_number",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/cancel": {
      "post": {
        "operationId": "postV1InvoicesIdCancel",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.cancel`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.cancel",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/einvoice": {
      "get": {
        "operationId": "getV1InvoicesIdEinvoice",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Format, Begründung und letzte Prüfung",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/einvoice/xml": {
      "get": {
        "operationId": "getV1InvoicesIdEinvoiceXml",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „xml“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/finalize": {
      "post": {
        "operationId": "postV1InvoicesIdFinalize",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Aktion „finalize“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/number-preview": {
      "get": {
        "operationId": "getV1InvoicesIdNumberPreview",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „number-preview“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/pdf": {
      "get": {
        "operationId": "getV1InvoicesIdPdf",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „pdf“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/positions/sort": {
      "put": {
        "operationId": "putV1InvoicesIdPositionsSort",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „sort“ ändern",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/reopen": {
      "post": {
        "operationId": "postV1InvoicesIdReopen",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: Aktion „reopen“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/reopen-check": {
      "get": {
        "operationId": "getV1InvoicesIdReopenCheck",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „reopen-check“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/send": {
      "post": {
        "operationId": "postV1InvoicesIdSend",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnung per E-Mail an den Kunden senden",
        "description": "Benötigtes Recht: `invoices.send`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "html": {},
                  "subject": {},
                  "to": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.send",
        "x-module": "rechnungen"
      }
    },
    "/v1/invoices/{id}/xrechnung": {
      "get": {
        "operationId": "getV1InvoicesIdXrechnung",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Rechnungen: „xrechnung“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/licenses": {
      "get": {
        "operationId": "getV1Licenses",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: Liste abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      },
      "post": {
        "operationId": "postV1Licenses",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: Neu anlegen",
        "description": "Benötigtes Recht: `licenses.create`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.create",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/meta": {
      "get": {
        "operationId": "getV1LicensesMeta",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: „meta“ abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/price-preview": {
      "get": {
        "operationId": "getV1LicensesPricePreview",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: „price-preview“ abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      },
      "post": {
        "operationId": "postV1LicensesPricePreview",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: Aktion „price-preview“ ausführen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/tiers": {
      "get": {
        "operationId": "getV1LicensesTiers",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: „tiers“ abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/{id}": {
      "get": {
        "operationId": "getV1LicensesId",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      },
      "put": {
        "operationId": "putV1LicensesId",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: Eintrag ändern",
        "description": "Benötigtes Recht: `licenses.edit`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.edit",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/{id}/download": {
      "get": {
        "operationId": "getV1LicensesIdDownload",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: „download“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/{id}/events": {
      "get": {
        "operationId": "getV1LicensesIdEvents",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: „events“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `licenses.view`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.view",
        "x-module": "lizenzen"
      }
    },
    "/v1/licenses/{id}/renew": {
      "post": {
        "operationId": "postV1LicensesIdRenew",
        "tags": [
          "Lizenzmanagement"
        ],
        "summary": "Lizenzen: Aktion „renew“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `licenses.edit`.\n\nModul „Lizenzmanagement“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "verlaengern": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "licenses.edit",
        "x-module": "lizenzen"
      }
    },
    "/v1/manufacturing/boms": {
      "get": {
        "operationId": "getV1ManufacturingBoms",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: „boms“ abrufen",
        "description": "Benötigtes Recht: `manufacturing.view`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.view",
        "x-module": "fertigung"
      },
      "post": {
        "operationId": "postV1ManufacturingBoms",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Aktion „boms“ ausführen",
        "description": "Benötigtes Recht: `manufacturing.create`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.create",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/boms/{id}": {
      "get": {
        "operationId": "getV1ManufacturingBomsId",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `manufacturing.view`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.view",
        "x-module": "fertigung"
      },
      "put": {
        "operationId": "putV1ManufacturingBomsId",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Eintrag ändern",
        "description": "Benötigtes Recht: `manufacturing.edit`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.edit",
        "x-module": "fertigung"
      },
      "delete": {
        "operationId": "deleteV1ManufacturingBomsId",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Eintrag löschen",
        "description": "Benötigtes Recht: `manufacturing.delete`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.delete",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders": {
      "get": {
        "operationId": "getV1ManufacturingOrders",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: „orders“ abrufen",
        "description": "Benötigtes Recht: `manufacturing.view`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.view",
        "x-module": "fertigung"
      },
      "post": {
        "operationId": "postV1ManufacturingOrders",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Aktion „orders“ ausführen",
        "description": "Benötigtes Recht: `manufacturing.create`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.create",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders/{id}": {
      "get": {
        "operationId": "getV1ManufacturingOrdersId",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `manufacturing.view`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.view",
        "x-module": "fertigung"
      },
      "put": {
        "operationId": "putV1ManufacturingOrdersId",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Eintrag ändern",
        "description": "Benötigtes Recht: `manufacturing.edit`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.edit",
        "x-module": "fertigung"
      },
      "delete": {
        "operationId": "deleteV1ManufacturingOrdersId",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Eintrag löschen",
        "description": "Benötigtes Recht: `manufacturing.delete`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.delete",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders/{id}/cancel": {
      "post": {
        "operationId": "postV1ManufacturingOrdersIdCancel",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `manufacturing.edit`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.edit",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders/{id}/finish": {
      "post": {
        "operationId": "postV1ManufacturingOrdersIdFinish",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Aktion „finish“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `manufacturing.edit`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.edit",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders/{id}/release": {
      "post": {
        "operationId": "postV1ManufacturingOrdersIdRelease",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Aktion „release“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `manufacturing.edit`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.edit",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders/{id}/requirements": {
      "get": {
        "operationId": "getV1ManufacturingOrdersIdRequirements",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: „requirements“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `manufacturing.view`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.view",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/orders/{id}/start": {
      "post": {
        "operationId": "postV1ManufacturingOrdersIdStart",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: Aktion „start“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `manufacturing.edit`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.edit",
        "x-module": "fertigung"
      }
    },
    "/v1/manufacturing/stats": {
      "get": {
        "operationId": "getV1ManufacturingStats",
        "tags": [
          "Fertigung & Stücklisten"
        ],
        "summary": "Fertigung: „stats“ abrufen",
        "description": "Benötigtes Recht: `manufacturing.view`.\n\nModul „Fertigung & Stücklisten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "manufacturing.view",
        "x-module": "fertigung"
      }
    },
    "/v1/modules": {
      "get": {
        "operationId": "getV1Modules",
        "tags": [
          "Module"
        ],
        "summary": "Module: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1Modules",
        "tags": [
          "Module"
        ],
        "summary": "Module: Ändern",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/modules/templates": {
      "get": {
        "operationId": "getV1ModulesTemplates",
        "tags": [
          "Module"
        ],
        "summary": "Module: „templates“ abrufen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/modules/templates/{key}/export": {
      "get": {
        "operationId": "getV1ModulesTemplatesKeyExport",
        "tags": [
          "Module"
        ],
        "summary": "Module: „export“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/my-tasks": {
      "get": {
        "operationId": "getV1MyTasks",
        "tags": [
          "Meine Aufgaben"
        ],
        "summary": "Meine Aufgaben: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "compact",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/offers": {
      "get": {
        "operationId": "getV1Offers",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Liste abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "angebote"
      },
      "post": {
        "operationId": "postV1Offers",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Neu anlegen",
        "description": "Benötigtes Recht: `orders.create`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_id": {},
                  "order_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.create",
        "x-module": "angebote"
      }
    },
    "/v1/offers/bulk-status": {
      "post": {
        "operationId": "postV1OffersBulkStatus",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Aktion „bulk-status“ ausführen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {},
                  "reason": {},
                  "status": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}": {
      "get": {
        "operationId": "getV1OffersId",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "angebote"
      },
      "put": {
        "operationId": "putV1OffersId",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Bearbeiten",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "angebote"
      },
      "delete": {
        "operationId": "deleteV1OffersId",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Eintrag löschen",
        "description": "Benötigtes Recht: `orders.delete`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.delete",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/new-version": {
      "post": {
        "operationId": "postV1OffersIdNewVersion",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Aktion „new-version“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.create`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.create",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/pdf": {
      "get": {
        "operationId": "getV1OffersIdPdf",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: „pdf“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/positions/sort": {
      "put": {
        "operationId": "putV1OffersIdPositionsSort",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: „sort“ ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/send": {
      "post": {
        "operationId": "postV1OffersIdSend",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Aktion „send“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/signatures": {
      "get": {
        "operationId": "getV1OffersIdSignatures",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: „signatures“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/signatures/{sid}/image": {
      "get": {
        "operationId": "getV1OffersIdSignaturesSidImage",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: „image“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "angebote"
      }
    },
    "/v1/offers/{id}/to-order": {
      "post": {
        "operationId": "postV1OffersIdToOrder",
        "tags": [
          "Angebote"
        ],
        "summary": "Angebote: Aktion „to-order“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.create`.\n\nModul „Angebote“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.create",
        "x-module": "angebote"
      }
    },
    "/v1/online-payments/config": {
      "get": {
        "operationId": "getV1OnlinePaymentsConfig",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: „config“ abrufen",
        "description": "Benötigtes Recht: `settings.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/events": {
      "get": {
        "operationId": "getV1OnlinePaymentsEvents",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: „events“ abrufen",
        "description": "Benötigtes Recht: `settings.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/fees": {
      "get": {
        "operationId": "getV1OnlinePaymentsFees",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: „fees“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      },
      "post": {
        "operationId": "postV1OnlinePaymentsFees",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „fees“ ausführen",
        "description": "Benötigtes Recht: `expenses.create`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "expenses.create",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/invoices/{id}/links": {
      "get": {
        "operationId": "getV1OnlinePaymentsInvoicesIdLinks",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: „links“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      },
      "post": {
        "operationId": "postV1OnlinePaymentsInvoicesIdLinks",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „links“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/links/{id}/book": {
      "post": {
        "operationId": "postV1OnlinePaymentsLinksIdBook",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „book“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/links/{id}/cancel": {
      "post": {
        "operationId": "postV1OnlinePaymentsLinksIdCancel",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/links/{id}/refresh": {
      "post": {
        "operationId": "postV1OnlinePaymentsLinksIdRefresh",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „refresh“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/paypal-invoices/{invoiceId}": {
      "get": {
        "operationId": "getV1OnlinePaymentsPaypalInvoicesInvoiceId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      },
      "post": {
        "operationId": "postV1OnlinePaymentsPaypalInvoicesInvoiceId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Zu einem Eintrag hinzufügen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/paypal-invoices/{invoiceId}/sync": {
      "post": {
        "operationId": "postV1OnlinePaymentsPaypalInvoicesInvoiceIdSync",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „sync“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/providers": {
      "get": {
        "operationId": "getV1OnlinePaymentsProviders",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: „providers“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/refunds": {
      "get": {
        "operationId": "getV1OnlinePaymentsRefunds",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: „refunds“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoice_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "open",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/online-payments/refunds/{id}/resolve": {
      "post": {
        "operationId": "postV1OnlinePaymentsRefundsIdResolve",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Online-Zahlung: Aktion „resolve“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Online-Zahlung (PayPal, Stripe) mit Zahllink und Bestätigung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "online_zahlung"
      }
    },
    "/v1/order-payments/{orderId}/confirm-deposit": {
      "post": {
        "operationId": "postV1OrderPaymentsOrderIdConfirmDeposit",
        "tags": [
          "Aufträge"
        ],
        "summary": "Zahlungsregeln: Aktion „confirm-deposit“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.edit` und `invoices.edit`.\n\nModul „Aufträge“, Funktion „Zahlungsregeln (Vorkasse, Anzahlung, Produktionssperre)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "orders.edit",
          "invoices.edit"
        ],
        "x-module": "auftraege",
        "x-function": "zahlungsregeln"
      }
    },
    "/v1/order-payments/{orderId}/confirm-final": {
      "post": {
        "operationId": "postV1OrderPaymentsOrderIdConfirmFinal",
        "tags": [
          "Aufträge"
        ],
        "summary": "Zahlungsregeln: Restbetrag eingegangen",
        "description": "Benötigtes Recht: `orders.edit` und `invoices.edit`.\n\nModul „Aufträge“, Funktion „Zahlungsregeln (Vorkasse, Anzahlung, Produktionssperre)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "orders.edit",
          "invoices.edit"
        ],
        "x-module": "auftraege",
        "x-function": "zahlungsregeln"
      }
    },
    "/v1/order-payments/{orderId}/release-shipping": {
      "post": {
        "operationId": "postV1OrderPaymentsOrderIdReleaseShipping",
        "tags": [
          "Aufträge"
        ],
        "summary": "Zahlungsregeln: Aktion „release-shipping“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“, Funktion „Zahlungsregeln (Vorkasse, Anzahlung, Produktionssperre)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege",
        "x-function": "zahlungsregeln"
      }
    },
    "/v1/order-payments/{orderId}/rule": {
      "put": {
        "operationId": "putV1OrderPaymentsOrderIdRule",
        "tags": [
          "Aufträge"
        ],
        "summary": "Zahlungsregeln: „rule“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“, Funktion „Zahlungsregeln (Vorkasse, Anzahlung, Produktionssperre)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "deposit_percent": {},
                  "mode": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege",
        "x-function": "zahlungsregeln"
      }
    },
    "/v1/order-payments/{orderId}/state": {
      "get": {
        "operationId": "getV1OrderPaymentsOrderIdState",
        "tags": [
          "Aufträge"
        ],
        "summary": "Zahlungsregeln: „state“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.view`.\n\nModul „Aufträge“, Funktion „Zahlungsregeln (Vorkasse, Anzahlung, Produktionssperre)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-checked-permissions": [
          "invoices.view"
        ],
        "x-module": "auftraege",
        "x-function": "zahlungsregeln"
      }
    },
    "/v1/order-positions/serials": {
      "get": {
        "operationId": "getV1OrderPositionsSerials",
        "tags": [
          "Aufträge"
        ],
        "summary": "Auftragspositionen: „serials“ abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      }
    },
    "/v1/order-positions/{id}/serials": {
      "get": {
        "operationId": "getV1OrderPositionsIdSerials",
        "tags": [
          "Aufträge"
        ],
        "summary": "Auftragspositionen: „serials“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      },
      "put": {
        "operationId": "putV1OrderPositionsIdSerials",
        "tags": [
          "Aufträge"
        ],
        "summary": "Auftragspositionen: „serials“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "serial_ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/order-positions/{id}/status": {
      "put": {
        "operationId": "putV1OrderPositionsIdStatus",
        "tags": [
          "Aufträge"
        ],
        "summary": "Auftragspositionen: „status“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/order-positions/{id}/variants": {
      "get": {
        "operationId": "getV1OrderPositionsIdVariants",
        "tags": [
          "Aufträge"
        ],
        "summary": "Auftragspositionen: „variants“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      },
      "put": {
        "operationId": "putV1OrderPositionsIdVariants",
        "tags": [
          "Aufträge"
        ],
        "summary": "Auftragspositionen: „variants“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "variants": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders": {
      "get": {
        "operationId": "getV1Orders",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Liste abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "payment_status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      },
      "post": {
        "operationId": "postV1Orders",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Neu anlegen",
        "description": "Benötigtes Recht: `orders.create`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.send`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "status": {
                    "enum": [
                      "Entwurf",
                      "Angebot",
                      "Offen",
                      "Bestätigt",
                      "In Bearbeitung",
                      "Versandt",
                      "Abgeschlossen",
                      "Storniert",
                      "",
                      null
                    ]
                  },
                  "base_status": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 30
                  },
                  "owner_user_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "order_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "delivery_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "discount_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "teilbezahlt",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "type": "array",
                    "maxItems": 500
                  },
                  "customer_snapshot_email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254
                  },
                  "customer_snapshot_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "customer_snapshot_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "customer_snapshot_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_differs": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "delivery_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "delivery_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.create",
        "x-checked-permissions": [
          "invoices.send"
        ],
        "x-module": "auftraege"
      }
    },
    "/v1/orders/bulk-status": {
      "post": {
        "operationId": "postV1OrdersBulkStatus",
        "tags": [
          "Aufträge"
        ],
        "summary": "Massenaktion: Status für mehrere Aufträge",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {},
                  "ids": {},
                  "status": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}": {
      "get": {
        "operationId": "getV1OrdersId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      },
      "put": {
        "operationId": "putV1OrdersId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Eintrag ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "status": {
                    "enum": [
                      "Entwurf",
                      "Angebot",
                      "Offen",
                      "Bestätigt",
                      "In Bearbeitung",
                      "Versandt",
                      "Abgeschlossen",
                      "Storniert",
                      "",
                      null
                    ]
                  },
                  "base_status": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 30
                  },
                  "owner_user_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "order_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "delivery_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "due_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Datum oder Zeitpunkt nach ISO 8601 (z. B. 2026-01-31)"
                  },
                  "subtotal": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "discount_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "tax_total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "total": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "payment_status": {
                    "enum": [
                      "offen",
                      "teilbezahlt",
                      "bezahlt",
                      "",
                      null
                    ]
                  },
                  "tax_rule_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "exclusiveMinimum": 0
                  },
                  "positions": {
                    "type": "array",
                    "maxItems": 500
                  },
                  "customer_snapshot_email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254
                  },
                  "customer_snapshot_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "customer_snapshot_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "customer_snapshot_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "customer_snapshot_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "customer_snapshot_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_differs": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_company": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 255
                  },
                  "delivery_firstname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_lastname": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "delivery_house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_zip": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "delivery_city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "delivery_country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      },
      "delete": {
        "operationId": "deleteV1OrdersId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Eintrag löschen",
        "description": "Benötigtes Recht: `orders.delete`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.delete",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/comments": {
      "post": {
        "operationId": "postV1OrdersIdComments",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Aktion „comments“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 10000
                  },
                  "mentions_json": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "body"
                ],
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/create-offer": {
      "post": {
        "operationId": "postV1OrdersIdCreateOffer",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Aktion „create-offer“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.create`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.create",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/delivery-note/pdf": {
      "get": {
        "operationId": "getV1OrdersIdDeliveryNotePdf",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: „pdf“ abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/files": {
      "post": {
        "operationId": "postV1OrdersIdFiles",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Dateianhang",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {},
                  "mail_attach": {},
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      },
      "get": {
        "operationId": "getV1OrdersIdFiles",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: „files“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/files/{fileId}": {
      "get": {
        "operationId": "getV1OrdersIdFilesFileId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      },
      "delete": {
        "operationId": "deleteV1OrdersIdFilesFileId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Eintrag löschen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      },
      "patch": {
        "operationId": "patchV1OrdersIdFilesFileId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Eintrag teilweise ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_name": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/files/{fileId}/mail-attach": {
      "put": {
        "operationId": "putV1OrdersIdFilesFileIdMailAttach",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: „mail-attach“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mail_attach": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/files/{fileId}/restore": {
      "post": {
        "operationId": "postV1OrdersIdFilesFileIdRestore",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Aktion „restore“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/motifs/{motifId}": {
      "get": {
        "operationId": "getV1OrdersIdMotifsMotifId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "motifId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/positions/sort": {
      "put": {
        "operationId": "putV1OrdersIdPositionsSort",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: „sort“ ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/positions/{posId}/files/{fileId}": {
      "get": {
        "operationId": "getV1OrdersIdPositionsPosIdFilesFileId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "posId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/send-invoices": {
      "post": {
        "operationId": "postV1OrdersIdSendInvoices",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Aktion „send-invoices“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.send`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.send",
        "x-module": "auftraege"
      }
    },
    "/v1/orders/{id}/to-invoice": {
      "post": {
        "operationId": "postV1OrdersIdToInvoice",
        "tags": [
          "Aufträge"
        ],
        "summary": "Aufträge: Aktion „to-invoice“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nModul „Aufträge“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-module": "auftraege"
      }
    },
    "/v1/payments": {
      "get": {
        "operationId": "getV1Payments",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlungen: Liste abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      },
      "post": {
        "operationId": "postV1Payments",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlungen: Neu anlegen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {},
                  "confirm": {},
                  "invoice_id": {},
                  "notes": {},
                  "payment_date": {},
                  "payment_method": {},
                  "reduction_kind": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/payments/reduction-preview": {
      "post": {
        "operationId": "postV1PaymentsReductionPreview",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlungen: Aktion „reduction-preview“ ausführen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/payments/reductions": {
      "get": {
        "operationId": "getV1PaymentsReductions",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlungen: „reductions“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/payments/reductions/export.csv": {
      "get": {
        "operationId": "getV1PaymentsReductionsExportCsv",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlungen: „export.csv“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen"
      }
    },
    "/v1/payments/reductions/{id}/reverse": {
      "post": {
        "operationId": "postV1PaymentsReductionsIdReverse",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlungen: Aktion „reverse“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/payments/{id}": {
      "delete": {
        "operationId": "deleteV1PaymentsId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Zahlung löschen bzw. aufheben",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen"
      }
    },
    "/v1/portal/accounts": {
      "get": {
        "operationId": "getV1PortalAccounts",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Kundenportal: „accounts“ abrufen",
        "description": "Benötigtes Recht: `portal.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "portal.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/portal/accounts/{id}": {
      "get": {
        "operationId": "getV1PortalAccountsId",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Kundenportal: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `portal.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "portal.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/portal/address-proposals": {
      "get": {
        "operationId": "getV1PortalAddressProposals",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Vorschläge zur Rechnungsadresse",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/portal/customers/{id}/termination": {
      "get": {
        "operationId": "getV1PortalCustomersIdTermination",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Kundenportal: „termination“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `portal.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "portal.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/portal/doc-links": {
      "get": {
        "operationId": "getV1PortalDocLinks",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Kundenportal: „doc-links“ abrufen",
        "description": "Benötigtes Recht: `portal.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "doc_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "doc_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "portal.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/portal/settings": {
      "get": {
        "operationId": "getV1PortalSettings",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Kundenportal: „settings“ abrufen",
        "description": "Benötigtes Recht: `portal.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "portal.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/portal/stats": {
      "get": {
        "operationId": "getV1PortalStats",
        "tags": [
          "Kundenportal"
        ],
        "summary": "Kundenportal: „stats“ abrufen",
        "description": "Benötigtes Recht: `portal.view`.\n\nModul „Kundenportal“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "portal.view",
        "x-module": "kundenportal"
      }
    },
    "/v1/product-groups": {
      "get": {
        "operationId": "getV1ProductGroups",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Liste abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "gruppen"
      },
      "post": {
        "operationId": "postV1ProductGroups",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Neu anlegen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}": {
      "get": {
        "operationId": "getV1ProductGroupsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "gruppen"
      },
      "put": {
        "operationId": "putV1ProductGroupsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "thumb_data": {},
                  "image": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "thumb_data": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      },
      "delete": {
        "operationId": "deleteV1ProductGroupsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Eintrag löschen",
        "description": "Benötigtes Recht: `products.delete`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.delete",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/fields": {
      "put": {
        "operationId": "putV1ProductGroupsIdFields",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: „fields“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      },
      "delete": {
        "operationId": "deleteV1ProductGroupsIdFields",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: „fields“ eines Eintrags löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "key",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/image": {
      "get": {
        "operationId": "getV1ProductGroupsIdImage",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: „image“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/image-from/{pid}": {
      "post": {
        "operationId": "postV1ProductGroupsIdImageFromPid",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Zu einem Eintrag hinzufügen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/members": {
      "post": {
        "operationId": "postV1ProductGroupsIdMembers",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Aktion „members“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/members/{pid}": {
      "delete": {
        "operationId": "deleteV1ProductGroupsIdMembersPid",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      },
      "put": {
        "operationId": "putV1ProductGroupsIdMembersPid",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/order": {
      "put": {
        "operationId": "putV1ProductGroupsIdOrder",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: „order“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/product-groups/{id}/overrides/{pid}": {
      "put": {
        "operationId": "putV1ProductGroupsIdOverridesPid",
        "tags": [
          "Produkte"
        ],
        "summary": "Produktgruppen: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Produktgruppen (Ausführungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {},
                  "on": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "gruppen"
      }
    },
    "/v1/products": {
      "get": {
        "operationId": "getV1Products",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Liste abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1
            },
            "description": "Seite"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Einträge je Seite (höchstens 200)"
          },
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "grouped",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "low_stock",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ungrouped",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1Products",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Neu anlegen",
        "description": "Benötigtes Recht: `products.create`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "minLength": 1
                  },
                  "sku": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "material": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20000
                  },
                  "purch_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price_gross": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 19
                  },
                  "stock": {
                    "type": "integer",
                    "minimum": 0,
                    "default": 0
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "track_stock": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "category_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "tax_rule_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "minimum_stock": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "price_input_mode": {
                    "enum": [
                      "net",
                      "gross"
                    ],
                    "type": "string"
                  },
                  "billing_type": {
                    "enum": [
                      "einmalig",
                      "wiederkehrend",
                      "",
                      null
                    ]
                  },
                  "billing_interval": {
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "quarterly",
                      "yearly",
                      "custom",
                      "",
                      null
                    ]
                  },
                  "billing_interval_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 366
                  },
                  "billing_interval_unit": {
                    "enum": [
                      "day",
                      "week",
                      "month",
                      "year",
                      "",
                      null
                    ]
                  },
                  "billing_term_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 999
                  },
                  "pricing_mode": {
                    "enum": [
                      "fixed",
                      "surcharge",
                      "",
                      null
                    ]
                  },
                  "surcharge_type": {
                    "enum": [
                      "percent",
                      "amount",
                      "per_unit",
                      "",
                      null
                    ]
                  },
                  "surcharge_value": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "assignment_note": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "image": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "minLength": 1
                  },
                  "sku": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "material": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20000
                  },
                  "purch_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price_gross": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 19
                  },
                  "stock": {
                    "type": "integer",
                    "minimum": 0,
                    "default": 0
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "track_stock": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "category_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "tax_rule_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "minimum_stock": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "price_input_mode": {
                    "enum": [
                      "net",
                      "gross"
                    ],
                    "type": "string"
                  },
                  "billing_type": {
                    "enum": [
                      "einmalig",
                      "wiederkehrend",
                      "",
                      null
                    ]
                  },
                  "billing_interval": {
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "quarterly",
                      "yearly",
                      "custom",
                      "",
                      null
                    ]
                  },
                  "billing_interval_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 366
                  },
                  "billing_interval_unit": {
                    "enum": [
                      "day",
                      "week",
                      "month",
                      "year",
                      "",
                      null
                    ]
                  },
                  "billing_term_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 999
                  },
                  "pricing_mode": {
                    "enum": [
                      "fixed",
                      "surcharge",
                      "",
                      null
                    ]
                  },
                  "surcharge_type": {
                    "enum": [
                      "percent",
                      "amount",
                      "per_unit",
                      "",
                      null
                    ]
                  },
                  "surcharge_value": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "assignment_note": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  }
                },
                "required": [
                  "name"
                ],
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.create",
        "x-module": "produkte"
      }
    },
    "/v1/products/bulk-delete": {
      "post": {
        "operationId": "postV1ProductsBulkDelete",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „bulk-delete“ ausführen",
        "description": "Benötigtes Recht: `products.delete`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.delete",
        "x-module": "produkte"
      }
    },
    "/v1/products/bulk-update": {
      "post": {
        "operationId": "postV1ProductsBulkUpdate",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „bulk-update“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "changes": {},
                  "ids": {},
                  "items": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/category-requirements": {
      "get": {
        "operationId": "getV1ProductsCategoryRequirements",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „category-requirements“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      }
    },
    "/v1/products/import": {
      "post": {
        "operationId": "postV1ProductsImport",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Import ausführen",
        "description": "Benötigtes Recht: `products.create`.\n\nJe nach Anfrage zusätzlich geprüft: `products.edit`.\n\nModul „Produkte“, Funktion „Excel-Massenimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.create",
        "x-checked-permissions": [
          "products.edit"
        ],
        "x-module": "produkte",
        "x-function": "excel_import"
      }
    },
    "/v1/products/import/export": {
      "get": {
        "operationId": "getV1ProductsImportExport",
        "tags": [
          "Produkte"
        ],
        "summary": "Vorhandene Produkte als Excel exportieren",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Excel-Massenimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "low_stock",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ungrouped",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "excel_import"
      }
    },
    "/v1/products/import/preview": {
      "post": {
        "operationId": "postV1ProductsImportPreview",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „preview“ ausführen",
        "description": "Benötigtes Recht: `products.create`.\n\nModul „Produkte“, Funktion „Excel-Massenimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.create",
        "x-module": "produkte",
        "x-function": "excel_import"
      }
    },
    "/v1/products/import/template": {
      "get": {
        "operationId": "getV1ProductsImportTemplate",
        "tags": [
          "Produkte"
        ],
        "summary": "Leere Vorlage zum Ausfüllen herunterladen",
        "description": "Benötigtes Recht: `products.create`.\n\nModul „Produkte“, Funktion „Excel-Massenimport“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.create",
        "x-module": "produkte",
        "x-function": "excel_import"
      }
    },
    "/v1/products/next-sku": {
      "get": {
        "operationId": "getV1ProductsNextSku",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „next-sku“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      }
    },
    "/v1/products/property-definitions": {
      "get": {
        "operationId": "getV1ProductsPropertyDefinitions",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „property-definitions“ abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1ProductsPropertyDefinitions",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „property-definitions“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "input_type": {},
                  "name": {},
                  "sort_order": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/property-definitions/{defId}": {
      "put": {
        "operationId": "putV1ProductsPropertyDefinitionsDefId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "defId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {},
                  "input_type": {},
                  "name": {},
                  "sort_order": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      },
      "delete": {
        "operationId": "deleteV1ProductsPropertyDefinitionsDefId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "defId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}": {
      "get": {
        "operationId": "getV1ProductsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nJe nach Anfrage zusätzlich geprüft: `inventory.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-checked-permissions": [
          "inventory.view"
        ],
        "x-module": "produkte"
      },
      "put": {
        "operationId": "putV1ProductsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "minLength": 1
                  },
                  "sku": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "material": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20000
                  },
                  "purch_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price_gross": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 19
                  },
                  "stock": {
                    "type": "integer",
                    "minimum": 0,
                    "default": 0
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "track_stock": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "category_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "tax_rule_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "minimum_stock": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "price_input_mode": {
                    "enum": [
                      "net",
                      "gross"
                    ],
                    "type": "string"
                  },
                  "billing_type": {
                    "enum": [
                      "einmalig",
                      "wiederkehrend",
                      "",
                      null
                    ]
                  },
                  "billing_interval": {
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "quarterly",
                      "yearly",
                      "custom",
                      "",
                      null
                    ]
                  },
                  "billing_interval_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 366
                  },
                  "billing_interval_unit": {
                    "enum": [
                      "day",
                      "week",
                      "month",
                      "year",
                      "",
                      null
                    ]
                  },
                  "billing_term_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 999
                  },
                  "pricing_mode": {
                    "enum": [
                      "fixed",
                      "surcharge",
                      "",
                      null
                    ]
                  },
                  "surcharge_type": {
                    "enum": [
                      "percent",
                      "amount",
                      "per_unit",
                      "",
                      null
                    ]
                  },
                  "surcharge_value": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "assignment_note": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "image": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "minLength": 1
                  },
                  "sku": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "material": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 500
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20000
                  },
                  "purch_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "sell_price_gross": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 99999999,
                    "default": 0
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 19
                  },
                  "stock": {
                    "type": "integer",
                    "minimum": 0,
                    "default": 0
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "track_stock": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "category_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "tax_rule_id": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "minimum_stock": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "price_input_mode": {
                    "enum": [
                      "net",
                      "gross"
                    ],
                    "type": "string"
                  },
                  "billing_type": {
                    "enum": [
                      "einmalig",
                      "wiederkehrend",
                      "",
                      null
                    ]
                  },
                  "billing_interval": {
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "quarterly",
                      "yearly",
                      "custom",
                      "",
                      null
                    ]
                  },
                  "billing_interval_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 366
                  },
                  "billing_interval_unit": {
                    "enum": [
                      "day",
                      "week",
                      "month",
                      "year",
                      "",
                      null
                    ]
                  },
                  "billing_term_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 999
                  },
                  "pricing_mode": {
                    "enum": [
                      "fixed",
                      "surcharge",
                      "",
                      null
                    ]
                  },
                  "surcharge_type": {
                    "enum": [
                      "percent",
                      "amount",
                      "per_unit",
                      "",
                      null
                    ]
                  },
                  "surcharge_value": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999999
                  },
                  "assignment_note": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      },
      "delete": {
        "operationId": "deleteV1ProductsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag löschen",
        "description": "Benötigtes Recht: `products.delete`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.delete",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/apply-category-template": {
      "post": {
        "operationId": "postV1ProductsIdApplyCategoryTemplate",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „apply-category-template“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/datasheet": {
      "get": {
        "operationId": "getV1ProductsIdDatasheet",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „datasheet“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/dependencies": {
      "get": {
        "operationId": "getV1ProductsIdDependencies",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „dependencies“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1ProductsIdDependencies",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „dependencies“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "requires_category_id": {},
                  "requires_product_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/dependencies/{depId}": {
      "delete": {
        "operationId": "deleteV1ProductsIdDependenciesDepId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "depId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/duplicate": {
      "post": {
        "operationId": "postV1ProductsIdDuplicate",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „duplicate“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.create`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.create",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/image": {
      "get": {
        "operationId": "getV1ProductsIdImage",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Hauptbild",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/images": {
      "get": {
        "operationId": "getV1ProductsIdImages",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „images“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1ProductsIdImages",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „images“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "alt_text": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/images/sort": {
      "put": {
        "operationId": "putV1ProductsIdImagesSort",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „sort“ ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/images/{imgId}": {
      "get": {
        "operationId": "getV1ProductsIdImagesImgId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "imgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "put": {
        "operationId": "putV1ProductsIdImagesImgId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "imgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "alt_text": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      },
      "delete": {
        "operationId": "deleteV1ProductsIdImagesImgId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "imgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/images/{imgId}/primary": {
      "put": {
        "operationId": "putV1ProductsIdImagesImgIdPrimary",
        "tags": [
          "Produkte"
        ],
        "summary": "Galeriebild zum Hauptbild machen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "imgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/links": {
      "get": {
        "operationId": "getV1ProductsIdLinks",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „links“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1ProductsIdLinks",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „links“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {},
                  "sort_order": {},
                  "url": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/links/{linkId}": {
      "put": {
        "operationId": "putV1ProductsIdLinksLinkId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "linkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {},
                  "sort_order": {},
                  "url": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      },
      "delete": {
        "operationId": "deleteV1ProductsIdLinksLinkId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "linkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/price-preview": {
      "get": {
        "operationId": "getV1ProductsIdPricePreview",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „price-preview“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "qty",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/price-tiers": {
      "get": {
        "operationId": "getV1ProductsIdPriceTiers",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „price-tiers“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "put": {
        "operationId": "putV1ProductsIdPriceTiers",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „price-tiers“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/properties": {
      "get": {
        "operationId": "getV1ProductsIdProperties",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „properties“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "post": {
        "operationId": "postV1ProductsIdProperties",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „properties“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "input_type": {},
                  "property_name": {},
                  "value_text": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/properties/bulk": {
      "post": {
        "operationId": "postV1ProductsIdPropertiesBulk",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „bulk“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/properties/bulk-delete": {
      "post": {
        "operationId": "postV1ProductsIdPropertiesBulkDelete",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „bulk-delete“ ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {},
                  "property_name": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/properties/{propId}": {
      "put": {
        "operationId": "putV1ProductsIdPropertiesPropId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "propId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value_text": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      },
      "delete": {
        "operationId": "deleteV1ProductsIdPropertiesPropId",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "propId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/size-surcharges": {
      "get": {
        "operationId": "getV1ProductsIdSizeSurcharges",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „size-surcharges“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte"
      },
      "put": {
        "operationId": "putV1ProductsIdSizeSurcharges",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: „size-surcharges“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/products/{id}/stock-correction": {
      "post": {
        "operationId": "postV1ProductsIdStockCorrection",
        "tags": [
          "Produkte"
        ],
        "summary": "Produkte: Aktion „stock-correction“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte"
      }
    },
    "/v1/projects": {
      "get": {
        "operationId": "getV1Projects",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Liste abrufen",
        "description": "Benötigtes Recht: `projects.view`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.view",
        "x-module": "projekte"
      },
      "post": {
        "operationId": "postV1Projects",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Neu anlegen",
        "description": "Benötigtes Recht: `projects.create`.\n\nJe nach Anfrage zusätzlich geprüft: `projects.edit`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.create",
        "x-checked-permissions": [
          "projects.edit"
        ],
        "x-module": "projekte"
      }
    },
    "/v1/projects/bulk": {
      "post": {
        "operationId": "postV1ProjectsBulk",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Aktion „bulk“ ausführen",
        "description": "Benötigtes Recht: `projects.view`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.view",
        "x-module": "projekte"
      }
    },
    "/v1/projects/{id}": {
      "get": {
        "operationId": "getV1ProjectsId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `projects.view`.\n\nJe nach Anfrage zusätzlich geprüft: `time_entries.view`, `time_entries.manage`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.view",
        "x-checked-permissions": [
          "time_entries.view",
          "time_entries.manage"
        ],
        "x-module": "projekte"
      },
      "put": {
        "operationId": "putV1ProjectsId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Eintrag ändern",
        "description": "Benötigtes Recht: `projects.edit`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.edit",
        "x-module": "projekte"
      },
      "delete": {
        "operationId": "deleteV1ProjectsId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Eintrag löschen",
        "description": "Benötigtes Recht: `projects.delete`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.delete",
        "x-module": "projekte"
      }
    },
    "/v1/projects/{id}/comments": {
      "get": {
        "operationId": "getV1ProjectsIdComments",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: „comments“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `projects.view`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.view",
        "x-module": "projekte"
      },
      "post": {
        "operationId": "postV1ProjectsIdComments",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: Aktion „comments“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `projects.edit`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 10000
                  },
                  "mentions_json": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "maxItems": 50
                  }
                },
                "required": [
                  "body"
                ],
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.edit",
        "x-module": "projekte"
      }
    },
    "/v1/projects/{id}/team": {
      "get": {
        "operationId": "getV1ProjectsIdTeam",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: „team“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `projects.view`.\n\nJe nach Anfrage zusätzlich geprüft: `projects.edit`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.view",
        "x-checked-permissions": [
          "projects.edit"
        ],
        "x-module": "projekte"
      },
      "put": {
        "operationId": "putV1ProjectsIdTeam",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Projekte: „team“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `projects.edit`.\n\nModul „Projekte & Zeit“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "members": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "projects.edit",
        "x-module": "projekte"
      }
    },
    "/v1/purchase-list": {
      "get": {
        "operationId": "getV1PurchaseList",
        "tags": [
          "Einkauf"
        ],
        "summary": "Einkaufsliste: Liste abrufen",
        "description": "Benötigtes Recht: `purchase_orders.view`.\n\nModul „Einkauf“, Funktion „Einkaufsliste aus Auftragsvarianten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.view",
        "x-module": "einkauf",
        "x-function": "einkaufsliste"
      }
    },
    "/v1/purchase-list/export": {
      "get": {
        "operationId": "getV1PurchaseListExport",
        "tags": [
          "Einkauf"
        ],
        "summary": "Einkaufsliste: CSV-Export",
        "description": "Benötigtes Recht: `purchase_orders.view`.\n\nModul „Einkauf“, Funktion „Einkaufsliste aus Auftragsvarianten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.view",
        "x-module": "einkauf",
        "x-function": "einkaufsliste"
      }
    },
    "/v1/purchase-list/mark": {
      "post": {
        "operationId": "postV1PurchaseListMark",
        "tags": [
          "Einkauf"
        ],
        "summary": "Einkaufsliste: Aktion „mark“ ausführen",
        "description": "Benötigtes Recht: `purchase_orders.edit`.\n\nModul „Einkauf“, Funktion „Einkaufsliste aus Auftragsvarianten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bestellmenge": {},
                  "combination_id": {},
                  "ordered": {},
                  "product_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.edit",
        "x-module": "einkauf",
        "x-function": "einkaufsliste"
      }
    },
    "/v1/purchase-list/mark-bulk": {
      "post": {
        "operationId": "postV1PurchaseListMarkBulk",
        "tags": [
          "Einkauf"
        ],
        "summary": "Einkaufsliste: Aktion „mark-bulk“ ausführen",
        "description": "Benötigtes Recht: `purchase_orders.edit`.\n\nModul „Einkauf“, Funktion „Einkaufsliste aus Auftragsvarianten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.edit",
        "x-module": "einkauf",
        "x-function": "einkaufsliste"
      }
    },
    "/v1/purchase-orders": {
      "get": {
        "operationId": "getV1PurchaseOrders",
        "tags": [
          "Einkauf"
        ],
        "summary": "Bestellungen: Liste abrufen",
        "description": "Benötigtes Recht: `purchase_orders.view`.\n\nModul „Einkauf“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "overdue",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "supplier_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.view",
        "x-module": "einkauf"
      },
      "post": {
        "operationId": "postV1PurchaseOrders",
        "tags": [
          "Einkauf"
        ],
        "summary": "Bestellungen: Neu anlegen",
        "description": "Benötigtes Recht: `purchase_orders.create`.\n\nModul „Einkauf“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.create",
        "x-module": "einkauf"
      }
    },
    "/v1/purchase-orders/{id}": {
      "get": {
        "operationId": "getV1PurchaseOrdersId",
        "tags": [
          "Einkauf"
        ],
        "summary": "Bestellungen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `purchase_orders.view`.\n\nModul „Einkauf“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.view",
        "x-module": "einkauf"
      },
      "put": {
        "operationId": "putV1PurchaseOrdersId",
        "tags": [
          "Einkauf"
        ],
        "summary": "Bestellungen: Bestellung ändern",
        "description": "Benötigtes Recht: `purchase_orders.edit`.\n\nModul „Einkauf“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.edit",
        "x-module": "einkauf"
      }
    },
    "/v1/purchase-orders/{id}/goods-receipt": {
      "post": {
        "operationId": "postV1PurchaseOrdersIdGoodsReceipt",
        "tags": [
          "Einkauf"
        ],
        "summary": "Bestellungen: Aktion „goods-receipt“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `purchase_orders.edit`.\n\nModul „Einkauf“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allow_over_delivery": {},
                  "notes": {},
                  "positions": {},
                  "received_date": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.edit",
        "x-module": "einkauf"
      }
    },
    "/v1/purchase-orders/{id}/positions/sort": {
      "put": {
        "operationId": "putV1PurchaseOrdersIdPositionsSort",
        "tags": [
          "Einkauf"
        ],
        "summary": "Bestellungen: „sort“ ändern",
        "description": "Benötigtes Recht: `purchase_orders.edit`.\n\nModul „Einkauf“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "purchase_orders.edit",
        "x-module": "einkauf"
      }
    },
    "/v1/recurring-invoices": {
      "get": {
        "operationId": "getV1RecurringInvoices",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: Liste abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      },
      "post": {
        "operationId": "postV1RecurringInvoices",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: Neu anlegen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.send`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "positions": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-checked-permissions": [
          "invoices.send"
        ],
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      }
    },
    "/v1/recurring-invoices/from-order/{orderId}": {
      "get": {
        "operationId": "getV1RecurringInvoicesFromOrderOrderId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nJe nach Anfrage zusätzlich geprüft: `orders.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-checked-permissions": [
          "orders.view"
        ],
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      }
    },
    "/v1/recurring-invoices/tax-suggestion": {
      "get": {
        "operationId": "getV1RecurringInvoicesTaxSuggestion",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: „tax-suggestion“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      }
    },
    "/v1/recurring-invoices/{id}": {
      "get": {
        "operationId": "getV1RecurringInvoicesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      },
      "put": {
        "operationId": "putV1RecurringInvoicesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: Eintrag ändern",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.send`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "auto_send": {},
                  "customer_id": {},
                  "notes": {},
                  "positions": {},
                  "status": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-checked-permissions": [
          "invoices.send"
        ],
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      },
      "delete": {
        "operationId": "deleteV1RecurringInvoicesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: Eintrag löschen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      }
    },
    "/v1/recurring-invoices/{id}/generate": {
      "post": {
        "operationId": "postV1RecurringInvoicesIdGenerate",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Sofort eine Rechnung aus der Vorlage erzeugen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.send`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expected_next_run": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-checked-permissions": [
          "invoices.send"
        ],
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      }
    },
    "/v1/recurring-invoices/{id}/order": {
      "put": {
        "operationId": "putV1RecurringInvoicesIdOrder",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "Dauerrechnungen: „order“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „Dauerrechnungen (wiederkehrend)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "order_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "dauerrechnungen"
      }
    },
    "/v1/regie": {
      "get": {
        "operationId": "getV1Regie",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Liste abrufen",
        "description": "Benötigtes Recht: `regie.view`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.view",
        "x-module": "projekte",
        "x-function": "regiestunden"
      },
      "post": {
        "operationId": "postV1Regie",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Neu anlegen",
        "description": "Benötigtes Recht: `regie.edit`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.edit",
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}": {
      "get": {
        "operationId": "getV1RegieId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `regie.view`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.view",
        "x-module": "projekte",
        "x-function": "regiestunden"
      },
      "put": {
        "operationId": "putV1RegieId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Eintrag ändern",
        "description": "Benötigtes Recht: `regie.edit`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entries": {},
                  "materials": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.edit",
        "x-module": "projekte",
        "x-function": "regiestunden"
      },
      "delete": {
        "operationId": "deleteV1RegieId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Eintrag löschen",
        "description": "Benötigtes Recht: `regie.delete`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.delete",
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/bill": {
      "post": {
        "operationId": "postV1RegieIdBill",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Aktion „bill“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `regie.edit` und `invoices.create`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allow_unsigned": {},
                  "hourly_rate": {},
                  "tax_rule_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "regie.edit",
          "invoices.create"
        ],
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/bill-preview": {
      "get": {
        "operationId": "getV1RegieIdBillPreview",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: „bill-preview“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `regie.view` und `invoices.create`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "hourly_rate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tax_rule_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "regie.view",
          "invoices.create"
        ],
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/pdf": {
      "get": {
        "operationId": "getV1RegieIdPdf",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: „pdf“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `regie.view`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.view`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "prices",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.view",
        "x-checked-permissions": [
          "invoices.view"
        ],
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/release": {
      "post": {
        "operationId": "postV1RegieIdRelease",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Aktion „release“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `regie.edit`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.edit",
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/restore": {
      "post": {
        "operationId": "postV1RegieIdRestore",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Aktion „restore“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `regie.delete`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.delete",
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/signature": {
      "get": {
        "operationId": "getV1RegieIdSignature",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: „signature“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `regie.view`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.view",
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/regie/{id}/unsign": {
      "post": {
        "operationId": "postV1RegieIdUnsign",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Regiestunden: Aktion „unsign“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `regie.edit`.\n\nModul „Projekte & Zeit“, Funktion „Regiestunden (Stundenzettel mit Kundenunterschrift, PDF, Abrechnung als Rechnungsentwurf)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "regie.edit",
        "x-module": "projekte",
        "x-function": "regiestunden"
      }
    },
    "/v1/reminders": {
      "get": {
        "operationId": "getV1Reminders",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: Liste abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoice_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/customers/{id}/dunning-block": {
      "get": {
        "operationId": "getV1RemindersCustomersIdDunningBlock",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „dunning-block“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/invoices/{id}/dunning-block": {
      "get": {
        "operationId": "getV1RemindersInvoicesIdDunningBlock",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „dunning-block“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/levels": {
      "get": {
        "operationId": "getV1RemindersLevels",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „levels“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoice_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/overview": {
      "get": {
        "operationId": "getV1RemindersOverview",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „overview“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/preview": {
      "get": {
        "operationId": "getV1RemindersPreview",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „preview“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoice_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/preview/pdf": {
      "get": {
        "operationId": "getV1RemindersPreviewPdf",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „pdf“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "invoice_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/reminders/{id}/pdf": {
      "get": {
        "operationId": "getV1RemindersIdPdf",
        "tags": [
          "Mahnwesen"
        ],
        "summary": "Mahnwesen: „pdf“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Mahnwesen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "mahnwesen"
      }
    },
    "/v1/rentals": {
      "get": {
        "operationId": "getV1Rentals",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Liste abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      },
      "post": {
        "operationId": "postV1Rentals",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Neu anlegen",
        "description": "Benötigtes Recht: `rentals.create`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.create",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/calendar": {
      "get": {
        "operationId": "getV1RentalsCalendar",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: „calendar“ abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/items": {
      "get": {
        "operationId": "getV1RentalsItems",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: „items“ abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      },
      "post": {
        "operationId": "postV1RentalsItems",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „items“ ausführen",
        "description": "Benötigtes Recht: `rentals.create`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.create",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/items/{id}": {
      "get": {
        "operationId": "getV1RentalsItemsId",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      },
      "put": {
        "operationId": "putV1RentalsItemsId",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Eintrag ändern",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      },
      "delete": {
        "operationId": "deleteV1RentalsItemsId",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Eintrag löschen",
        "description": "Benötigtes Recht: `rentals.delete`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.delete",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/items/{id}/availability": {
      "get": {
        "operationId": "getV1RentalsItemsIdAvailability",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: „availability“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "exclude_rental_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/stats": {
      "get": {
        "operationId": "getV1RentalsStats",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: „stats“ abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}": {
      "get": {
        "operationId": "getV1RentalsId",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `rentals.view`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.view",
        "x-module": "vermietung"
      },
      "put": {
        "operationId": "putV1RentalsId",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Eintrag ändern",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      },
      "delete": {
        "operationId": "deleteV1RentalsId",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Eintrag löschen",
        "description": "Benötigtes Recht: `rentals.delete`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.delete",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/bill": {
      "post": {
        "operationId": "postV1RentalsIdBill",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „bill“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/cancel": {
      "post": {
        "operationId": "postV1RentalsIdCancel",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/checkout": {
      "post": {
        "operationId": "postV1RentalsIdCheckout",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „checkout“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/customer": {
      "post": {
        "operationId": "postV1RentalsIdCustomer",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „customer“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/deposit": {
      "post": {
        "operationId": "postV1RentalsIdDeposit",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „deposit“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/invoice": {
      "post": {
        "operationId": "postV1RentalsIdInvoice",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „invoice“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nJe nach Anfrage zusätzlich geprüft: `invoices.create`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-checked-permissions": [
          "invoices.create"
        ],
        "x-module": "vermietung"
      }
    },
    "/v1/rentals/{id}/return": {
      "post": {
        "operationId": "postV1RentalsIdReturn",
        "tags": [
          "Vermietung & Verleih"
        ],
        "summary": "Vermietung: Aktion „return“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `rentals.edit`.\n\nModul „Vermietung & Verleih“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "rentals.edit",
        "x-module": "vermietung"
      }
    },
    "/v1/reports/budgets": {
      "get": {
        "operationId": "getV1ReportsBudgets",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „budgets“ abrufen",
        "description": "Benötigtes Recht: `budgets.view`.\n\nModul „Auswertungen“, Funktion „Budgets“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "budgets.view",
        "x-module": "auswertungen",
        "x-function": "budgets"
      }
    },
    "/v1/reports/cockpit": {
      "get": {
        "operationId": "getV1ReportsCockpit",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „cockpit“ abrufen",
        "description": "Benötigtes Recht: `reports.view`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.view",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/cost-centers": {
      "get": {
        "operationId": "getV1ReportsCostCenters",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „cost-centers“ abrufen",
        "description": "Benötigtes Recht: `cost_centers.view`.\n\nModul „Auswertungen“, Funktion „Kostenstellen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "cost_centers.view",
        "x-module": "auswertungen",
        "x-function": "kostenstellen"
      }
    },
    "/v1/reports/customer-profitability": {
      "get": {
        "operationId": "getV1ReportsCustomerProfitability",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „customer-profitability“ abrufen",
        "description": "Benötigtes Recht: `reports.view`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.view",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/eur": {
      "get": {
        "operationId": "getV1ReportsEur",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „eur“ abrufen",
        "description": "Benötigtes Recht: `reports.view`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.view",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/eur-zufluss": {
      "get": {
        "operationId": "getV1ReportsEurZufluss",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „eur-zufluss“ abrufen",
        "description": "Benötigtes Recht: `reports.view`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.view",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/eur/export": {
      "get": {
        "operationId": "getV1ReportsEurExport",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „export“ abrufen",
        "description": "Benötigtes Recht: `reports.export`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/receipt-package": {
      "get": {
        "operationId": "getV1ReportsReceiptPackage",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „receipt-package“ abrufen",
        "description": "Per API-Schlüssel nur mit dem Sonder-Scope `api.receipts_zip` – er muss dem Schlüssel einzeln gegeben werden (`*` und Platzhalter decken ihn nicht).\n\nBenötigtes Recht: `reports.export`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-required-scope": "api.receipts_zip",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/receipt-package/info": {
      "get": {
        "operationId": "getV1ReportsReceiptPackageInfo",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „info“ abrufen",
        "description": "Per API-Schlüssel nur mit dem Sonder-Scope `api.receipts_zip` – er muss dem Schlüssel einzeln gegeben werden (`*` und Platzhalter decken ihn nicht).\n\nBenötigtes Recht: `reports.export`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-required-scope": "api.receipts_zip",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/saved": {
      "get": {
        "operationId": "getV1ReportsSaved",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: „saved“ abrufen",
        "description": "Benötigtes Recht: `reports.build`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.build",
        "x-module": "auswertungen"
      },
      "post": {
        "operationId": "postV1ReportsSaved",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: Aktion „saved“ ausführen",
        "description": "Benötigtes Recht: `reports.build`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "aggregation": {},
                  "chart_type": {},
                  "columns_json": {},
                  "datasource": {},
                  "filters_json": {},
                  "group_by": {},
                  "name": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.build",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/saved/{id}": {
      "delete": {
        "operationId": "deleteV1ReportsSavedId",
        "tags": [
          "Auswertungen"
        ],
        "summary": "Auswertungen: Eintrag löschen",
        "description": "Benötigtes Recht: `reports.build`.\n\nModul „Auswertungen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.build",
        "x-module": "auswertungen"
      }
    },
    "/v1/reports/ust": {
      "get": {
        "operationId": "getV1ReportsUst",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Auswertungen: „ust“ abrufen",
        "description": "Benötigtes Recht: `tax.view`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tax.view",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/returns": {
      "get": {
        "operationId": "getV1Returns",
        "tags": [
          "Aufträge"
        ],
        "summary": "Retouren: Liste abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“, Funktion „Retouren“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege",
        "x-function": "retouren"
      },
      "post": {
        "operationId": "postV1Returns",
        "tags": [
          "Aufträge"
        ],
        "summary": "Retouren: Neu anlegen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“, Funktion „Retouren“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege",
        "x-function": "retouren"
      }
    },
    "/v1/returns/{id}": {
      "get": {
        "operationId": "getV1ReturnsId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Retouren: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“, Funktion „Retouren“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege",
        "x-function": "retouren"
      }
    },
    "/v1/returns/{id}/complete": {
      "put": {
        "operationId": "putV1ReturnsIdComplete",
        "tags": [
          "Aufträge"
        ],
        "summary": "Retouren: „complete“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“, Funktion „Retouren“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege",
        "x-function": "retouren"
      }
    },
    "/v1/roles": {
      "get": {
        "operationId": "getV1Roles",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Rollen: Liste abrufen",
        "description": "Benötigtes Recht: `users.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/roles/permissions": {
      "get": {
        "operationId": "getV1RolesPermissions",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Rollen: „permissions“ abrufen",
        "description": "Benötigtes Recht: `roles.manage`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "roles.manage",
        "x-module": "core"
      }
    },
    "/v1/roles/tax-advisor/meta": {
      "get": {
        "operationId": "getV1RolesTaxAdvisorMeta",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Rollen: „meta“ abrufen",
        "description": "Benötigtes Recht: `users.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/sepa-mandates": {
      "get": {
        "operationId": "getV1SepaMandates",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Liste abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      },
      "post": {
        "operationId": "postV1SepaMandates",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Neu anlegen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/collections": {
      "get": {
        "operationId": "getV1SepaMandatesCollections",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: „collections“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/collections/pain008": {
      "get": {
        "operationId": "getV1SepaMandatesCollectionsPain008",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: „pain008“ abrufen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/collections/prenotified": {
      "post": {
        "operationId": "postV1SepaMandatesCollectionsPrenotified",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Aktion „prenotified“ ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {},
                  "invoice_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/collections/unassign": {
      "post": {
        "operationId": "postV1SepaMandatesCollectionsUnassign",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Aktion „unassign“ ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoice_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/creditor": {
      "get": {
        "operationId": "getV1SepaMandatesCreditor",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: „creditor“ abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/{id}": {
      "get": {
        "operationId": "getV1SepaMandatesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      },
      "put": {
        "operationId": "putV1SepaMandatesId",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Eintrag ändern",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/{id}/assign": {
      "post": {
        "operationId": "postV1SepaMandatesIdAssign",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Aktion „assign“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "collection_date": {},
                  "confirm": {},
                  "invoice_id": {},
                  "prenotified_at": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/{id}/file": {
      "get": {
        "operationId": "getV1SepaMandatesIdFile",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: „file“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      },
      "post": {
        "operationId": "postV1SepaMandatesIdFile",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Aktion „file“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/{id}/open-invoices": {
      "get": {
        "operationId": "getV1SepaMandatesIdOpenInvoices",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: „open-invoices“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/sepa-mandates/{id}/revoke": {
      "post": {
        "operationId": "postV1SepaMandatesIdRevoke",
        "tags": [
          "Rechnungen & Zahlungen"
        ],
        "summary": "SEPA-Mandate: Aktion „revoke“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „Rechnungen & Zahlungen“, Funktion „SEPA-Lastschriftmandate (Verwaltung, Zuordnung zu Rechnungen)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "rechnungen",
        "x-function": "sepa_lastschrift"
      }
    },
    "/v1/settings": {
      "get": {
        "operationId": "getV1Settings",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1Settings",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: Ändern",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/settings/backup": {
      "post": {
        "operationId": "postV1SettingsBackup",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: Backup manuell auslösen",
        "description": "Benötigtes Recht: `backup.create`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "backup.create",
        "x-module": "core"
      }
    },
    "/v1/settings/backup/logs": {
      "get": {
        "operationId": "getV1SettingsBackupLogs",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: „logs“ abrufen",
        "description": "Benötigtes Recht: `backup.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "backup.view",
        "x-module": "core"
      }
    },
    "/v1/settings/meta/protected": {
      "get": {
        "operationId": "getV1SettingsMetaProtected",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: „protected“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/settings/meta/tax-reminders": {
      "get": {
        "operationId": "getV1SettingsMetaTaxReminders",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: „tax-reminders“ abrufen",
        "description": "Benötigtes Recht: `settings.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.view",
        "x-module": "core"
      }
    },
    "/v1/settings/test-email": {
      "post": {
        "operationId": "postV1SettingsTestEmail",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: SMTP Test",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "to": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/settings/{key}": {
      "get": {
        "operationId": "getV1SettingsKey",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: Einzelnen Eintrag abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1SettingsKey",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: Eintrag ändern",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      },
      "delete": {
        "operationId": "deleteV1SettingsKey",
        "tags": [
          "Einstellungen"
        ],
        "summary": "Einstellungen: Eintrag löschen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/shipping": {
      "get": {
        "operationId": "getV1Shipping",
        "tags": [
          "Aufträge"
        ],
        "summary": "Versand: Liste abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“, Funktion „Versand“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege",
        "x-function": "versand"
      },
      "post": {
        "operationId": "postV1Shipping",
        "tags": [
          "Aufträge"
        ],
        "summary": "Versand: Neu anlegen",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“, Funktion „Versand“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege",
        "x-function": "versand"
      }
    },
    "/v1/shipping/{id}": {
      "get": {
        "operationId": "getV1ShippingId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Versand: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „Aufträge“, Funktion „Versand“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "auftraege",
        "x-function": "versand"
      },
      "put": {
        "operationId": "putV1ShippingId",
        "tags": [
          "Aufträge"
        ],
        "summary": "Versand: Eintrag ändern",
        "description": "Benötigtes Recht: `orders.edit`.\n\nModul „Aufträge“, Funktion „Versand“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.edit",
        "x-module": "auftraege",
        "x-function": "versand"
      }
    },
    "/v1/shop-sync/invoices/{id}/notices": {
      "get": {
        "operationId": "getV1ShopSyncInvoicesIdNotices",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: „notices“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `invoices.view`.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.view",
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/shop-sync/log": {
      "get": {
        "operationId": "getV1ShopSyncLog",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: „log“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "errors",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/shop-sync/notices/{id}/done": {
      "post": {
        "operationId": "postV1ShopSyncNoticesIdDone",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: Aktion „done“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.edit`.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.edit",
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/shop-sync/orders/{id}": {
      "get": {
        "operationId": "getV1ShopSyncOrdersId",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `orders.view`.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "orders.view",
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/shop-sync/orders/{id}/retry": {
      "post": {
        "operationId": "postV1ShopSyncOrdersIdRetry",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: Aktion „retry“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/shop-sync/orders/{id}/tax-rule": {
      "post": {
        "operationId": "postV1ShopSyncOrdersIdTaxRule",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: Aktion „tax-rule“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "retry": {},
                  "tax_rule_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/shop-sync/overview": {
      "get": {
        "operationId": "getV1ShopSyncOverview",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "Shop-Abgleich: „overview“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „WordPress & WooCommerce“, Funktion „WooCommerce-Abgleich (Kunden, Bestellungen, Produkte)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "wordpress",
        "x-function": "woocommerce"
      }
    },
    "/v1/suppliers": {
      "get": {
        "operationId": "getV1Suppliers",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Lieferanten: Liste abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“, Funktion „Lieferanten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_rating",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rated",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte",
        "x-function": "lieferanten"
      },
      "post": {
        "operationId": "postV1Suppliers",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Lieferanten: Neu anlegen",
        "description": "Benötigtes Recht: `customers.create`.\n\nModul „Kunden & Kontakte“, Funktion „Lieferanten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "company": {
                    "type": "string",
                    "maxLength": 255,
                    "minLength": 1
                  },
                  "contact_person": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "zip_code": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254,
                    "format": "email"
                  },
                  "vat_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "iban": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "rating": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "rating_note": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  }
                },
                "required": [
                  "company"
                ],
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.create",
        "x-module": "kontakte",
        "x-function": "lieferanten"
      }
    },
    "/v1/suppliers/{id}": {
      "get": {
        "operationId": "getV1SuppliersId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Lieferanten: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“, Funktion „Lieferanten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte",
        "x-function": "lieferanten"
      },
      "put": {
        "operationId": "putV1SuppliersId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Lieferanten: Eintrag ändern",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“, Funktion „Lieferanten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "company": {
                    "type": "string",
                    "maxLength": 255,
                    "minLength": 1
                  },
                  "contact_person": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "street": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 200
                  },
                  "house_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "zip_code": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 20
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "country": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 100
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 254,
                    "format": "email"
                  },
                  "vat_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 50
                  },
                  "iban": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  },
                  "active": {
                    "enum": [
                      0,
                      1
                    ],
                    "type": "number"
                  },
                  "rating": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                      },
                      {
                        "type": "null"
                      },
                      {
                        "const": ""
                      }
                    ]
                  },
                  "rating_note": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000
                  }
                },
                "x-validated": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte",
        "x-function": "lieferanten"
      },
      "delete": {
        "operationId": "deleteV1SuppliersId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "Lieferanten: Eintrag löschen",
        "description": "Benötigtes Recht: `customers.delete`.\n\nModul „Kunden & Kontakte“, Funktion „Lieferanten“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "force": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.delete",
        "x-module": "kontakte",
        "x-function": "lieferanten"
      }
    },
    "/v1/tax-rules": {
      "get": {
        "operationId": "getV1TaxRules",
        "tags": [
          "Steuerregeln"
        ],
        "summary": "Steuerregeln: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "post": {
        "operationId": "postV1TaxRules",
        "tags": [
          "Steuerregeln"
        ],
        "summary": "Steuerregeln: Neu anlegen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/tax-rules/{id}": {
      "get": {
        "operationId": "getV1TaxRulesId",
        "tags": [
          "Steuerregeln"
        ],
        "summary": "Steuerregeln: Einzelnen Eintrag abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1TaxRulesId",
        "tags": [
          "Steuerregeln"
        ],
        "summary": "Steuerregeln: Eintrag ändern",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      },
      "delete": {
        "operationId": "deleteV1TaxRulesId",
        "tags": [
          "Steuerregeln"
        ],
        "summary": "Steuerregeln: Eintrag löschen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/tax/euer": {
      "get": {
        "operationId": "getV1TaxEuer",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „euer“ abrufen",
        "description": "Benötigtes Recht: `tax.view`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tax.view",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/euer.pdf": {
      "get": {
        "operationId": "getV1TaxEuerPdf",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „euer.pdf“ abrufen",
        "description": "Benötigtes Recht: `reports.export`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/small-business": {
      "get": {
        "operationId": "getV1TaxSmallBusiness",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „small-business“ abrufen",
        "description": "Benötigtes Recht: `tax.view`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tax.view",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/ustva": {
      "get": {
        "operationId": "getV1TaxUstva",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „ustva“ abrufen",
        "description": "Benötigtes Recht: `tax.view`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tax.view",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/ustva.pdf": {
      "get": {
        "operationId": "getV1TaxUstvaPdf",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „ustva.pdf“ abrufen",
        "description": "Benötigtes Recht: `reports.export`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/ustva.xml": {
      "get": {
        "operationId": "getV1TaxUstvaXml",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „ustva.xml“ abrufen",
        "description": "Benötigtes Recht: `reports.export`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "reports.export",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/ustva/deadlines": {
      "get": {
        "operationId": "getV1TaxUstvaDeadlines",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „deadlines“ abrufen",
        "description": "Benötigtes Recht: `tax.view`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tax.view",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/tax/zufluss": {
      "get": {
        "operationId": "getV1TaxZufluss",
        "tags": [
          "Buchhaltung"
        ],
        "summary": "Steuer: „zufluss“ abrufen",
        "description": "Benötigtes Recht: `tax.view`.\n\nModul „Buchhaltung“, Funktion „Steuerprüfung (Ergebnis nach Belegdatum, UStVA)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tax.view",
        "x-module": "buchhaltung",
        "x-function": "steuer_pruefung"
      }
    },
    "/v1/templates/catalog": {
      "get": {
        "operationId": "getV1TemplatesCatalog",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: „catalog“ abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      }
    },
    "/v1/templates/placeholders": {
      "get": {
        "operationId": "getV1TemplatesPlaceholders",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: „placeholders“ abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      }
    },
    "/v1/templates/{id}/assets/{assetId}": {
      "get": {
        "operationId": "getV1TemplatesIdAssetsAssetId",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "assetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      }
    },
    "/v1/templates/{id}/assets/{name}": {
      "delete": {
        "operationId": "deleteV1TemplatesIdAssetsName",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: Eintrag löschen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/templates/{type}": {
      "delete": {
        "operationId": "deleteV1TemplatesType",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: Eintrag löschen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "logo",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/templates/{type}/preview": {
      "post": {
        "operationId": "postV1TemplatesTypePreview",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: Aktion „preview“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `settings.edit`.",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "record_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "core"
      }
    },
    "/v1/templates/{type}/versions": {
      "get": {
        "operationId": "getV1TemplatesTypeVersions",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: „versions“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      }
    },
    "/v1/templates/{type}/versions/{id}": {
      "get": {
        "operationId": "getV1TemplatesTypeVersionsId",
        "tags": [
          "PDF-Vorlagen"
        ],
        "summary": "PDF-Vorlagen: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `documents.view`.",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "documents.view",
        "x-module": "core"
      }
    },
    "/v1/tickets": {
      "get": {
        "operationId": "getV1Tickets",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Liste abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      },
      "post": {
        "operationId": "postV1Tickets",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Neu anlegen",
        "description": "Benötigtes Recht: `tickets.create`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.create",
        "x-module": "service"
      }
    },
    "/v1/tickets/bulk": {
      "post": {
        "operationId": "postV1TicketsBulk",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Aktion „bulk“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "service"
      }
    },
    "/v1/tickets/from-mail": {
      "post": {
        "operationId": "postV1TicketsFromMail",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Aktion „from-mail“ ausführen",
        "description": "Benötigtes Recht: `tickets.create`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.create",
        "x-module": "service"
      }
    },
    "/v1/tickets/settings": {
      "get": {
        "operationId": "getV1TicketsSettings",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: „settings“ abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      },
      "put": {
        "operationId": "putV1TicketsSettings",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: „settings“ ändern",
        "description": "Benötigtes Recht: `settings.edit`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "settings.edit",
        "x-module": "service"
      }
    },
    "/v1/tickets/stats": {
      "get": {
        "operationId": "getV1TicketsStats",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: „stats“ abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      }
    },
    "/v1/tickets/warranties": {
      "get": {
        "operationId": "getV1TicketsWarranties",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: „warranties“ abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      },
      "post": {
        "operationId": "postV1TicketsWarranties",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Aktion „warranties“ ausführen",
        "description": "Benötigtes Recht: `tickets.create`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.create",
        "x-module": "service"
      }
    },
    "/v1/tickets/warranties/lookup": {
      "get": {
        "operationId": "getV1TicketsWarrantiesLookup",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: „lookup“ abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "serial",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      }
    },
    "/v1/tickets/warranties/{id}": {
      "put": {
        "operationId": "putV1TicketsWarrantiesId",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Eintrag ändern",
        "description": "Benötigtes Recht: `tickets.edit`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.edit",
        "x-module": "service"
      },
      "delete": {
        "operationId": "deleteV1TicketsWarrantiesId",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Eintrag löschen",
        "description": "Benötigtes Recht: `tickets.delete`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.delete",
        "x-module": "service"
      }
    },
    "/v1/tickets/{id}": {
      "get": {
        "operationId": "getV1TicketsId",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      },
      "put": {
        "operationId": "putV1TicketsId",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Eintrag ändern",
        "description": "Benötigtes Recht: `tickets.edit`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.edit",
        "x-module": "service"
      },
      "delete": {
        "operationId": "deleteV1TicketsId",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Eintrag löschen",
        "description": "Benötigtes Recht: `tickets.delete`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.delete",
        "x-module": "service"
      }
    },
    "/v1/tickets/{id}/customer": {
      "post": {
        "operationId": "postV1TicketsIdCustomer",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Aktion „customer“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `tickets.edit`.\n\nJe nach Anfrage zusätzlich geprüft: `customers.create`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.edit",
        "x-checked-permissions": [
          "customers.create"
        ],
        "x-module": "service"
      }
    },
    "/v1/tickets/{id}/messages": {
      "post": {
        "operationId": "postV1TicketsIdMessages",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Aktion „messages“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `tickets.edit`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.edit",
        "x-module": "service"
      }
    },
    "/v1/tickets/{id}/messages/{mid}/file": {
      "get": {
        "operationId": "getV1TicketsIdMessagesMidFile",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: „file“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `tickets.view`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.view",
        "x-module": "service"
      }
    },
    "/v1/tickets/{id}/repair-approve": {
      "post": {
        "operationId": "postV1TicketsIdRepairApprove",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Tickets: Aktion „repair-approve“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `tickets.edit`.\n\nModul „Service & Reklamationen“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "tickets.edit",
        "x-module": "service"
      }
    },
    "/v1/time-entries": {
      "get": {
        "operationId": "getV1TimeEntries",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Liste abrufen",
        "description": "Benötigtes Recht: `time_entries.view`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "billable",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "billed",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.view",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      },
      "post": {
        "operationId": "postV1TimeEntries",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Neu anlegen",
        "description": "Benötigtes Recht: `time_entries.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/bill": {
      "post": {
        "operationId": "postV1TimeEntriesBill",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Aktion „bill“ ausführen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "assign_unassigned": {},
                  "confirm": {},
                  "customer_id": {},
                  "entry_ids": {},
                  "hourly_rate": {},
                  "tax_rule_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/bill-info": {
      "get": {
        "operationId": "getV1TimeEntriesBillInfo",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: „bill-info“ abrufen",
        "description": "Benötigtes Recht: `invoices.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "tax_rule_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "invoices.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/rate": {
      "get": {
        "operationId": "getV1TimeEntriesRate",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: „rate“ abrufen",
        "description": "Benötigtes Recht: `time_entries.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "hourly_rate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/summary": {
      "get": {
        "operationId": "getV1TimeEntriesSummary",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: „summary“ abrufen",
        "description": "Benötigtes Recht: `time_entries.view`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.view",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/timer": {
      "get": {
        "operationId": "getV1TimeEntriesTimer",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: „timer“ abrufen",
        "description": "Benötigtes Recht: `time_entries.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/timer/start": {
      "post": {
        "operationId": "postV1TimeEntriesTimerStart",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Aktion „start“ ausführen",
        "description": "Benötigtes Recht: `time_entries.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/{id}": {
      "put": {
        "operationId": "putV1TimeEntriesId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Eintrag ändern",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      },
      "delete": {
        "operationId": "deleteV1TimeEntriesId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Eintrag löschen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/{id}/discard": {
      "post": {
        "operationId": "postV1TimeEntriesIdDiscard",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Aktion „discard“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `time_entries.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/time-entries/{id}/stop": {
      "post": {
        "operationId": "postV1TimeEntriesIdStop",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Zeiterfassung: Aktion „stop“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `time_entries.create`.\n\nModul „Projekte & Zeit“, Funktion „Zeiterfassung“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "time_entries.create",
        "x-module": "projekte",
        "x-function": "zeiterfassung"
      }
    },
    "/v1/todos": {
      "get": {
        "operationId": "getV1Todos",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufgaben: Liste abrufen",
        "description": "Benötigtes Recht: `todos.view`.\n\nModul „Projekte & Zeit“, Funktion „ToDos“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "assigned_user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "overdue",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "priority",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "todos.view",
        "x-module": "projekte",
        "x-function": "todos"
      },
      "post": {
        "operationId": "postV1Todos",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufgaben: Neu anlegen",
        "description": "Benötigtes Recht: `todos.create`.\n\nModul „Projekte & Zeit“, Funktion „ToDos“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "todos.create",
        "x-module": "projekte",
        "x-function": "todos"
      }
    },
    "/v1/todos/bulk": {
      "post": {
        "operationId": "postV1TodosBulk",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufgaben: Aktion „bulk“ ausführen",
        "description": "Benötigtes Recht: `todos.view`.\n\nModul „Projekte & Zeit“, Funktion „ToDos“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "todos.view",
        "x-module": "projekte",
        "x-function": "todos"
      }
    },
    "/v1/todos/{id}": {
      "put": {
        "operationId": "putV1TodosId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufgaben: Eintrag ändern",
        "description": "Benötigtes Recht: `todos.edit`.\n\nModul „Projekte & Zeit“, Funktion „ToDos“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "todos.edit",
        "x-module": "projekte",
        "x-function": "todos"
      },
      "delete": {
        "operationId": "deleteV1TodosId",
        "tags": [
          "Projekte & Zeit"
        ],
        "summary": "Aufgaben: Eintrag löschen",
        "description": "Benötigtes Recht: `todos.delete`.\n\nModul „Projekte & Zeit“, Funktion „ToDos“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "todos.delete",
        "x-module": "projekte",
        "x-function": "todos"
      }
    },
    "/v1/trash": {
      "get": {
        "operationId": "getV1Trash",
        "tags": [
          "Papierkorb"
        ],
        "summary": "Papierkorb: Liste abrufen",
        "description": "Benötigtes Recht: `trash.view`.",
        "parameters": [
          {
            "name": "entity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "trash.view",
        "x-module": "core"
      }
    },
    "/v1/trash/bulk-restore": {
      "post": {
        "operationId": "postV1TrashBulkRestore",
        "tags": [
          "Papierkorb"
        ],
        "summary": "Papierkorb: Aktion „bulk-restore“ ausführen",
        "description": "Benötigtes Recht: `trash.restore`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entity": {},
                  "ids": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "trash.restore",
        "x-module": "core"
      }
    },
    "/v1/trash/{entity}/{id}": {
      "delete": {
        "operationId": "deleteV1TrashEntityId",
        "tags": [
          "Papierkorb"
        ],
        "summary": "Papierkorb: Eintrag löschen",
        "description": "Benötigtes Recht: `trash.purge`.",
        "parameters": [
          {
            "name": "entity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "trash.purge",
        "x-module": "core"
      }
    },
    "/v1/trash/{entity}/{id}/restore": {
      "post": {
        "operationId": "postV1TrashEntityIdRestore",
        "tags": [
          "Papierkorb"
        ],
        "summary": "Papierkorb: Aktion „restore“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `trash.restore`.",
        "parameters": [
          {
            "name": "entity",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "trash.restore",
        "x-module": "core"
      }
    },
    "/v1/user-groups": {
      "get": {
        "operationId": "getV1UserGroups",
        "tags": [
          "Gruppen"
        ],
        "summary": "Gruppen: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nJe nach Anfrage zusätzlich geprüft: `users.view`.",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-checked-permissions": [
          "users.view"
        ],
        "x-module": "core"
      },
      "post": {
        "operationId": "postV1UserGroups",
        "tags": [
          "Gruppen"
        ],
        "summary": "Gruppen: Neu anlegen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/user-groups/{id}": {
      "get": {
        "operationId": "getV1UserGroupsId",
        "tags": [
          "Gruppen"
        ],
        "summary": "Gruppen: Einzelnen Eintrag abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "put": {
        "operationId": "putV1UserGroupsId",
        "tags": [
          "Gruppen"
        ],
        "summary": "Gruppen: Eintrag ändern",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      },
      "delete": {
        "operationId": "deleteV1UserGroupsId",
        "tags": [
          "Gruppen"
        ],
        "summary": "Gruppen: Eintrag löschen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/user-groups/{id}/restore": {
      "post": {
        "operationId": "postV1UserGroupsIdRestore",
        "tags": [
          "Gruppen"
        ],
        "summary": "Gruppen: Aktion „restore“ an einem Eintrag ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "core"
      }
    },
    "/v1/users": {
      "get": {
        "operationId": "getV1Users",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Benutzer: Liste abrufen",
        "description": "Benötigtes Recht: `users.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/users/license-check": {
      "get": {
        "operationId": "getV1UsersLicenseCheck",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Benutzer: „license-check“ abrufen",
        "description": "Benötigtes Recht: `users.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/users/tax-advisor/meta": {
      "get": {
        "operationId": "getV1UsersTaxAdvisorMeta",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Benutzer: „meta“ abrufen",
        "description": "Benötigtes Recht: `users.view`.",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/users/{id}": {
      "get": {
        "operationId": "getV1UsersId",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Benutzer: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `users.view`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/users/{id}/permissions": {
      "get": {
        "operationId": "getV1UsersIdPermissions",
        "tags": [
          "Benutzer & Rollen"
        ],
        "summary": "Rollenrechte und zusätzliche Rechte einer Person",
        "description": "Benötigtes Recht: `users.view`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "users.view",
        "x-module": "core"
      }
    },
    "/v1/variants/combinations/{id}": {
      "put": {
        "operationId": "putV1VariantsCombinationsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: Eintrag ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "varianten"
      },
      "delete": {
        "operationId": "deleteV1VariantsCombinationsId",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: Eintrag löschen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "varianten"
      }
    },
    "/v1/variants/combinations/{id}/image": {
      "get": {
        "operationId": "getV1VariantsCombinationsIdImage",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: Variantenbild ausliefern",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "varianten"
      }
    },
    "/v1/variants/images/{id}": {
      "get": {
        "operationId": "getV1VariantsImagesId",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "varianten"
      }
    },
    "/v1/variants/product/{id}/combinations": {
      "get": {
        "operationId": "getV1VariantsProductIdCombinations",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: „combinations“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `products.view`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.view",
        "x-module": "produkte",
        "x-function": "varianten"
      },
      "post": {
        "operationId": "postV1VariantsProductIdCombinations",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: Aktion „combinations“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "varianten"
      }
    },
    "/v1/variants/product/{id}/generate-from-properties": {
      "post": {
        "operationId": "postV1VariantsProductIdGenerateFromProperties",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: Aktion „generate-from-properties“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "existing_stock": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "varianten"
      }
    },
    "/v1/variants/product/{id}/min-stock": {
      "put": {
        "operationId": "putV1VariantsProductIdMinStock",
        "tags": [
          "Produkte"
        ],
        "summary": "Varianten: „min-stock“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `products.edit`.\n\nModul „Produkte“, Funktion „Varianten (Grösse, Farbe …)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "products.edit",
        "x-module": "produkte",
        "x-function": "varianten"
      }
    },
    "/v1/vat-id-checks": {
      "get": {
        "operationId": "getV1VatIdChecks",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "USt-IdNr.-Prüfung: Liste abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "entity_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte"
      },
      "post": {
        "operationId": "postV1VatIdChecks",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "USt-IdNr.-Prüfung: Neu anlegen",
        "description": "Benötigtes Recht: `customers.edit`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entity_id": {},
                  "entity_type": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.edit",
        "x-module": "kontakte"
      }
    },
    "/v1/vat-id-checks/status": {
      "get": {
        "operationId": "getV1VatIdChecksStatus",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "USt-IdNr.-Prüfung: „status“ abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte"
      }
    },
    "/v1/vat-id-checks/{id}": {
      "get": {
        "operationId": "getV1VatIdChecksId",
        "tags": [
          "Kunden & Kontakte"
        ],
        "summary": "USt-IdNr.-Prüfung: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `customers.view`.\n\nModul „Kunden & Kontakte“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "customers.view",
        "x-module": "kontakte"
      }
    },
    "/v1/warehouses": {
      "get": {
        "operationId": "getV1Warehouses",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Liste abrufen",
        "description": "Benötigtes Recht: `warehouses.view`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.view",
        "x-module": "lager"
      },
      "post": {
        "operationId": "postV1Warehouses",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Neu anlegen",
        "description": "Benötigtes Recht: `warehouses.manage`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.manage",
        "x-module": "lager"
      }
    },
    "/v1/warehouses/stock-variants": {
      "get": {
        "operationId": "getV1WarehousesStockVariants",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: „stock-variants“ abrufen",
        "description": "Benötigtes Recht: `warehouses.view`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.view",
        "x-module": "lager"
      }
    },
    "/v1/warehouses/stock/{productId}": {
      "get": {
        "operationId": "getV1WarehousesStockProductId",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `warehouses.view`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.view",
        "x-module": "lager"
      }
    },
    "/v1/warehouses/transfer": {
      "post": {
        "operationId": "postV1WarehousesTransfer",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Aktion „transfer“ ausführen",
        "description": "Benötigtes Recht: `warehouses.manage`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "combination_id": {},
                  "force": {},
                  "from_warehouse_id": {},
                  "notes": {},
                  "product_id": {},
                  "quantity": {},
                  "to_warehouse_id": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.manage",
        "x-module": "lager"
      }
    },
    "/v1/warehouses/{id}": {
      "get": {
        "operationId": "getV1WarehousesId",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `warehouses.view`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.view",
        "x-module": "lager"
      },
      "put": {
        "operationId": "putV1WarehousesId",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Eintrag ändern",
        "description": "Benötigtes Recht: `warehouses.manage`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.manage",
        "x-module": "lager"
      },
      "delete": {
        "operationId": "deleteV1WarehousesId",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: Eintrag löschen",
        "description": "Benötigtes Recht: `warehouses.manage`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.manage",
        "x-module": "lager"
      }
    },
    "/v1/warehouses/{id}/default": {
      "put": {
        "operationId": "putV1WarehousesIdDefault",
        "tags": [
          "Lager"
        ],
        "summary": "Lager: „default“ eines Eintrags ändern",
        "description": "Benötigtes Recht: `warehouses.manage`.\n\nModul „Lager“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "warehouses.manage",
        "x-module": "lager"
      }
    },
    "/v1/webhooks": {
      "get": {
        "operationId": "getV1Webhooks",
        "tags": [
          "Webhooks"
        ],
        "summary": "Webhooks: Liste abrufen",
        "description": "Benötigtes Recht: `webhooks.manage`.\n\nKernfunktion „Integrationen (API-Schlüssel, Webhooks)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "webhooks.manage",
        "x-module": "core",
        "x-function": "integrationen"
      },
      "post": {
        "operationId": "postV1Webhooks",
        "tags": [
          "Webhooks"
        ],
        "summary": "Webhooks: Neu anlegen",
        "description": "Benötigtes Recht: `webhooks.manage`.\n\nKernfunktion „Integrationen (API-Schlüssel, Webhooks)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "events_json": {},
                  "name": {},
                  "secret": {},
                  "url": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "webhooks.manage",
        "x-module": "core",
        "x-function": "integrationen"
      }
    },
    "/v1/webhooks/{id}": {
      "put": {
        "operationId": "putV1WebhooksId",
        "tags": [
          "Webhooks"
        ],
        "summary": "Webhooks: Eintrag ändern",
        "description": "Benötigtes Recht: `webhooks.manage`.\n\nKernfunktion „Integrationen (API-Schlüssel, Webhooks)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {},
                  "clear_secret": {},
                  "events_json": {},
                  "name": {},
                  "secret": {},
                  "url": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "webhooks.manage",
        "x-module": "core",
        "x-function": "integrationen"
      },
      "delete": {
        "operationId": "deleteV1WebhooksId",
        "tags": [
          "Webhooks"
        ],
        "summary": "Webhooks: Eintrag löschen",
        "description": "Benötigtes Recht: `webhooks.manage`.\n\nKernfunktion „Integrationen (API-Schlüssel, Webhooks)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "webhooks.manage",
        "x-module": "core",
        "x-function": "integrationen"
      }
    },
    "/v1/webhooks/{id}/logs": {
      "get": {
        "operationId": "getV1WebhooksIdLogs",
        "tags": [
          "Webhooks"
        ],
        "summary": "Webhooks: „logs“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `webhooks.manage`.\n\nKernfunktion „Integrationen (API-Schlüssel, Webhooks)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "webhooks.manage",
        "x-module": "core",
        "x-function": "integrationen"
      }
    },
    "/v1/workflows/meta": {
      "get": {
        "operationId": "getV1WorkflowsMeta",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: „meta“ abrufen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nJe nach Anfrage zusätzlich geprüft: `projects.view`, `orders.view`, `customers.view`, `products.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-checked-permissions": [
          "projects.view",
          "orders.view",
          "customers.view",
          "products.view"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs": {
      "get": {
        "operationId": "getV1WorkflowsRuns",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: „runs“ abrufen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mine",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "trigger",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      },
      "post": {
        "operationId": "postV1WorkflowsRuns",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „runs“ ausführen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.run`.\n\nJe nach Anfrage zusätzlich geprüft: `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.run"
        ],
        "x-checked-permissions": [
          "workflows.manage"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}": {
      "get": {
        "operationId": "getV1WorkflowsRunsId",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      },
      "put": {
        "operationId": "putV1WorkflowsRunsId",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Eintrag ändern",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/cancel": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdCancel",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „cancel“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/notes": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdNotes",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „notes“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.run`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.run"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/reopen": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdReopen",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „reopen“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/replan": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdReplan",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „replan“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/steps/{stepId}": {
      "put": {
        "operationId": "putV1WorkflowsRunsIdStepsStepId",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Eintrag ändern",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/steps/{stepId}/check": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdStepsStepIdCheck",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „check“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/steps/{stepId}/checks/{userId}/revoke": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdStepsStepIdChecksUserIdRevoke",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „revoke“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/steps/{stepId}/skip": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdStepsStepIdSkip",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „skip“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/steps/{stepId}/start": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdStepsStepIdStart",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „start“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/runs/{id}/steps/{stepId}/uncheck": {
      "post": {
        "operationId": "postV1WorkflowsRunsIdStepsStepIdUncheck",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „uncheck“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/templates": {
      "get": {
        "operationId": "getV1WorkflowsTemplates",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: „templates“ abrufen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      },
      "post": {
        "operationId": "postV1WorkflowsTemplates",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „templates“ ausführen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/templates/for-target": {
      "get": {
        "operationId": "getV1WorkflowsTemplatesForTarget",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: „for-target“ abrufen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      }
    },
    "/v1/workflows/templates/{id}": {
      "get": {
        "operationId": "getV1WorkflowsTemplatesId",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `workflows.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "workflows.view",
        "x-module": "workflows"
      },
      "put": {
        "operationId": "putV1WorkflowsTemplatesId",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Eintrag ändern",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "assignees": {},
                  "version": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-module": "workflows"
      },
      "delete": {
        "operationId": "deleteV1WorkflowsTemplatesId",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Eintrag löschen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nJe nach Anfrage zusätzlich geprüft: `projects.view`, `orders.view`, `customers.view`, `products.view`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-checked-permissions": [
          "projects.view",
          "orders.view",
          "customers.view",
          "products.view"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/templates/{id}/duplicate": {
      "post": {
        "operationId": "postV1WorkflowsTemplatesIdDuplicate",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „duplicate“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-module": "workflows"
      }
    },
    "/v1/workflows/templates/{id}/triggers": {
      "post": {
        "operationId": "postV1WorkflowsTemplatesIdTriggers",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: Aktion „triggers“ an einem Eintrag ausführen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-module": "workflows"
      },
      "delete": {
        "operationId": "deleteV1WorkflowsTemplatesIdTriggers",
        "tags": [
          "Workflows"
        ],
        "summary": "Workflows: „triggers“ eines Eintrags löschen",
        "description": "Benötigtes Recht: `workflows.view` und `workflows.manage`.\n\nModul „Workflows“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "target_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "target_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": [
          "workflows.view",
          "workflows.manage"
        ],
        "x-module": "workflows"
      }
    },
    "/wp/v1/booking/availability": {
      "get": {
        "operationId": "getWpV1BookingAvailability",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Online-Buchung: „availability“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Termine & Kalender“, Funktion „Online-Terminbuchung (Website-Formular, Portal)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "person_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "termine",
        "x-function": "online_buchung"
      }
    },
    "/wp/v1/booking/book": {
      "post": {
        "operationId": "postWpV1BookingBook",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Online-Buchung: Aktion „book“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Termine & Kalender“, Funktion „Online-Terminbuchung (Website-Formular, Portal)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "termine",
        "x-function": "online_buchung"
      }
    },
    "/wp/v1/booking/quote": {
      "get": {
        "operationId": "getWpV1BookingQuote",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Online-Buchung: „quote“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Termine & Kalender“, Funktion „Online-Terminbuchung (Website-Formular, Portal)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "extras",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "travel_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "venue_zip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "termine",
        "x-function": "online_buchung"
      }
    },
    "/wp/v1/booking/services": {
      "get": {
        "operationId": "getWpV1BookingServices",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Aktive Leistungen für das Formular",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Termine & Kalender“, Funktion „Online-Terminbuchung (Website-Formular, Portal)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "termine",
        "x-function": "online_buchung"
      }
    },
    "/wp/v1/booking/slots": {
      "get": {
        "operationId": "getWpV1BookingSlots",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Online-Buchung: „slots“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Termine & Kalender“, Funktion „Online-Terminbuchung (Website-Formular, Portal)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "person_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "termine",
        "x-function": "online_buchung"
      }
    },
    "/wp/v1/booking/travel-estimate": {
      "get": {
        "operationId": "getWpV1BookingTravelEstimate",
        "tags": [
          "Termine & Kalender"
        ],
        "summary": "Online-Buchung: „travel-estimate“ abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Termine & Kalender“, Funktion „Online-Terminbuchung (Website-Formular, Portal)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "termine",
        "x-function": "online_buchung"
      }
    },
    "/wp/v1/courses": {
      "get": {
        "operationId": "getWpV1Courses",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kursanmeldung: Liste abrufen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Kurse & Teilnehmer“, Funktion „Online-Anmeldung (Website-Formular)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "kurse",
        "x-function": "online_anmeldung"
      }
    },
    "/wp/v1/courses/{id}/book": {
      "post": {
        "operationId": "postWpV1CoursesIdBook",
        "tags": [
          "Kurse & Teilnehmer"
        ],
        "summary": "Kursanmeldung: Aktion „book“ an einem Eintrag ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „Kurse & Teilnehmer“, Funktion „Online-Anmeldung (Website-Formular)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "kurse",
        "x-function": "online_anmeldung"
      }
    },
    "/wp/v1/customers/account-created": {
      "post": {
        "operationId": "postWpV1CustomersAccountCreated",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „account-created“ ausführen",
        "description": "Benötigtes Recht: `wordpress.customers`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.customers",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/customers/changes": {
      "get": {
        "operationId": "getWpV1CustomersChanges",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „changes“ abrufen",
        "description": "Benötigtes Recht: `wordpress.customers`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "only_shop",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.customers",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/customers/lookup": {
      "get": {
        "operationId": "getWpV1CustomersLookup",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „lookup“ abrufen",
        "description": "Benötigtes Recht: `wordpress.customers`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "external_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.customers",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/customers/sync": {
      "post": {
        "operationId": "postWpV1CustomersSync",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „sync“ ausführen",
        "description": "Benötigtes Recht: `wordpress.customers`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer": {},
                  "customers": {},
                  "options": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.customers",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/designer/catalog": {
      "get": {
        "operationId": "getWpV1DesignerCatalog",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „catalog“ abrufen",
        "description": "Benötigtes Recht: `wordpress.designer`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.designer",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/designer/images/{id}": {
      "get": {
        "operationId": "getWpV1DesignerImagesId",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `wordpress.designer`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.designer",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/designer/motifs": {
      "get": {
        "operationId": "getWpV1DesignerMotifs",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „motifs“ abrufen",
        "description": "Benötigtes Recht: `wordpress.designer`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.designer",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/designer/motifs/{id}/{kind}": {
      "get": {
        "operationId": "getWpV1DesignerMotifsIdKind",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `wordpress.designer`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "print",
                "preview"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.designer",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/designer/orders": {
      "post": {
        "operationId": "postWpV1DesignerOrders",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „orders“ ausführen",
        "description": "Benötigtes Recht: `wordpress.designer`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.designer",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/designer/positions": {
      "post": {
        "operationId": "postWpV1DesignerPositions",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „positions“ ausführen",
        "description": "Benötigtes Recht: `wordpress.designer`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "map": {},
                  "positions": {},
                  "skus": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.designer",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/email-layout": {
      "get": {
        "operationId": "getWpV1EmailLayout",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „email-layout“ abrufen",
        "description": "Benötigtes Recht: `wordpress.connect`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.connect",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/forms/submit": {
      "post": {
        "operationId": "postWpV1FormsSubmit",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „submit“ ausführen",
        "description": "Benötigtes Recht: `wordpress.forms`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.forms",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/modules": {
      "get": {
        "operationId": "getWpV1Modules",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „modules“ abrufen",
        "description": "Benötigtes Recht: `wordpress.connect`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.connect",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/account": {
      "get": {
        "operationId": "getWpV1OrdersAccount",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „account“ abrufen",
        "description": "Benötigtes Recht: `wordpress.orders`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.orders",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/cancel": {
      "post": {
        "operationId": "postWpV1OrdersCancel",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „cancel“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/changed": {
      "post": {
        "operationId": "postWpV1OrdersChanged",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „changed“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "order": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/import": {
      "post": {
        "operationId": "postWpV1OrdersImport",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „import“ ausführen",
        "description": "Benötigtes Recht: `wordpress.orders`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "order": {},
                  "orders": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.orders",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/invoice-pdf": {
      "get": {
        "operationId": "getWpV1OrdersInvoicePdf",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „invoice-pdf“ abrufen",
        "description": "Benötigtes Recht: `wordpress.orders`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.orders",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/payment-notice": {
      "post": {
        "operationId": "postWpV1OrdersPaymentNotice",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „payment-notice“ ausführen",
        "description": "Benötigtes Recht: `wordpress.orders`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.orders",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/refund": {
      "post": {
        "operationId": "postWpV1OrdersRefund",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Aktion „refund“ ausführen",
        "description": "Kein eigenes Recht nötig – jeder gültige Schlüssel.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-module": "wordpress"
      }
    },
    "/wp/v1/orders/status": {
      "get": {
        "operationId": "getWpV1OrdersStatus",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „status“ abrufen",
        "description": "Benötigtes Recht: `wordpress.orders`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.orders",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/ping": {
      "get": {
        "operationId": "getWpV1Ping",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „ping“ abrufen",
        "description": "Benötigtes Recht: `wordpress.connect`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.connect",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/plugins": {
      "get": {
        "operationId": "getWpV1Plugins",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „plugins“ abrufen",
        "description": "Benötigtes Recht: `wordpress.manage`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.manage",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/plugins/{file}": {
      "get": {
        "operationId": "getWpV1PluginsFile",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: Einzelnen Eintrag abrufen",
        "description": "Benötigtes Recht: `wordpress.manage`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.manage",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/product-groups": {
      "get": {
        "operationId": "getWpV1ProductGroups",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „product-groups“ abrufen",
        "description": "Benötigtes Recht: `wordpress.products`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.products",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/product-groups/{id}/image": {
      "get": {
        "operationId": "getWpV1ProductGroupsIdImage",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „image“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `wordpress.products`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.products",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/products": {
      "get": {
        "operationId": "getWpV1Products",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „products“ abrufen",
        "description": "Benötigtes Recht: `wordpress.products`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "inactive",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "variants",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.products",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/products/stock": {
      "get": {
        "operationId": "getWpV1ProductsStock",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „stock“ abrufen",
        "description": "Benötigtes Recht: `wordpress.products`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "after_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inactive",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.products",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/products/{id}/image": {
      "get": {
        "operationId": "getWpV1ProductsIdImage",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „image“ zu einem Eintrag abrufen",
        "description": "Benötigtes Recht: `wordpress.products`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.products",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/site": {
      "get": {
        "operationId": "getWpV1Site",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „site“ abrufen",
        "description": "Benötigtes Recht: `wordpress.manage`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.manage",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/stats": {
      "get": {
        "operationId": "getWpV1Stats",
        "tags": [
          "WordPress & WooCommerce"
        ],
        "summary": "WordPress: „stats“ abrufen",
        "description": "Benötigtes Recht: `wordpress.manage`.\n\nModul „WordPress & WooCommerce“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "responses": {
          "200": {
            "description": "Erfolg",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.manage",
        "x-module": "wordpress"
      }
    },
    "/wp/v1/tickets/submit": {
      "post": {
        "operationId": "postWpV1TicketsSubmit",
        "tags": [
          "Service & Reklamationen"
        ],
        "summary": "Ticket-Formular: Aktion „submit“ ausführen",
        "description": "Benötigtes Recht: `wordpress.tickets`.\n\nModul „Service & Reklamationen“, Funktion „Ticket-Formular der Website (WordPress-Plugin)“ muss aktiv sein (sonst 404 `MODULE_INACTIVE`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Confirm"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Angelegt",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-required-permission": "wordpress.tickets",
        "x-module": "service",
        "x-function": "formular"
      }
    }
  },
  "webhooks": {
    "customer.created": {
      "post": {
        "summary": "Ereignis customer.created",
        "description": "Wird gesendet, wenn ein Kunde angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookCustomerCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "customer.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "customer.updated": {
      "post": {
        "summary": "Ereignis customer.updated",
        "description": "Wird gesendet, wenn ein Kunde geändert wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookCustomerUpdated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "customer.updated"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "inquiry.created": {
      "post": {
        "summary": "Ereignis inquiry.created",
        "description": "Wird gesendet, wenn eine Anfrage eingegangen ist. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookInquiryCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "inquiry.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "order.created": {
      "post": {
        "summary": "Ereignis order.created",
        "description": "Wird gesendet, wenn ein Auftrag angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookOrderCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "order.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "order.status_changed": {
      "post": {
        "summary": "Ereignis order.status_changed",
        "description": "Wird gesendet, wenn sich der Status eines Auftrags geändert hat. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookOrderStatusChanged",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "order.status_changed"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "invoice.created": {
      "post": {
        "summary": "Ereignis invoice.created",
        "description": "Wird gesendet, wenn eine Rechnung erstellt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookInvoiceCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "invoice.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "invoice.paid": {
      "post": {
        "summary": "Ereignis invoice.paid",
        "description": "Wird gesendet, wenn eine Rechnung bezahlt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookInvoicePaid",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "invoice.paid"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "invoice.cancelled": {
      "post": {
        "summary": "Ereignis invoice.cancelled",
        "description": "Wird gesendet, wenn eine Rechnung storniert wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookInvoiceCancelled",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "invoice.cancelled"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "product.stock_changed": {
      "post": {
        "summary": "Ereignis product.stock_changed",
        "description": "Wird gesendet, wenn sich der Bestand eines Produkts oder einer Variante geändert hat. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookProductStockChanged",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "product.stock_changed"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "product.availability_changed": {
      "post": {
        "summary": "Ereignis product.availability_changed",
        "description": "Wird gesendet, wenn ein Produkt oder eine Variante aktiviert, deaktiviert oder gelöscht wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookProductAvailabilityChanged",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "product.availability_changed"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "offer.created": {
      "post": {
        "summary": "Ereignis offer.created",
        "description": "Wird gesendet, wenn ein Angebot angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookOfferCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "offer.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "offer.sent": {
      "post": {
        "summary": "Ereignis offer.sent",
        "description": "Wird gesendet, wenn ein Angebot versendet wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookOfferSent",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "offer.sent"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "offer.accepted": {
      "post": {
        "summary": "Ereignis offer.accepted",
        "description": "Wird gesendet, wenn ein Angebot angenommen wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookOfferAccepted",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "offer.accepted"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "offer.rejected": {
      "post": {
        "summary": "Ereignis offer.rejected",
        "description": "Wird gesendet, wenn ein Angebot abgelehnt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookOfferRejected",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "offer.rejected"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "payment.received": {
      "post": {
        "summary": "Ereignis payment.received",
        "description": "Wird gesendet, wenn eine Zahlung zu einer Rechnung gebucht wurde – gleich über welchen Weg (einmal je Zahlung). Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookPaymentReceived",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "payment.received"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "invoice.overdue": {
      "post": {
        "summary": "Ereignis invoice.overdue",
        "description": "Wird gesendet, wenn eine offene Rechnung ihre Fälligkeit überschritten hat (einmal je Rechnung und Fälligkeit). Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookInvoiceOverdue",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "invoice.overdue"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "reminder.created": {
      "post": {
        "summary": "Ereignis reminder.created",
        "description": "Wird gesendet, wenn eine Mahnstufe angelegt wurde (Mahnlauf oder von Hand). Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookReminderCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "reminder.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "expense.created": {
      "post": {
        "summary": "Ereignis expense.created",
        "description": "Wird gesendet, wenn eine Ausgabe angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookExpenseCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "expense.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "product.created": {
      "post": {
        "summary": "Ereignis product.created",
        "description": "Wird gesendet, wenn ein Produkt angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookProductCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "product.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "product.updated": {
      "post": {
        "summary": "Ereignis product.updated",
        "description": "Wird gesendet, wenn ein Produkt geändert wurde (nur die Namen der geänderten Felder, keine Werte). Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookProductUpdated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "product.updated"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "appointment.booked": {
      "post": {
        "summary": "Ereignis appointment.booked",
        "description": "Wird gesendet, wenn ein Termin gebucht oder angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookAppointmentBooked",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "appointment.booked"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "appointment.cancelled": {
      "post": {
        "summary": "Ereignis appointment.cancelled",
        "description": "Wird gesendet, wenn ein Termin abgesagt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookAppointmentCancelled",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "appointment.cancelled"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "ticket.created": {
      "post": {
        "summary": "Ereignis ticket.created",
        "description": "Wird gesendet, wenn ein Ticket angelegt wurde. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookTicketCreated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "ticket.created"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    },
    "ticket.updated": {
      "post": {
        "summary": "Ereignis ticket.updated",
        "description": "Wird gesendet, wenn sich Status, Zuständigkeit, Priorität oder Kunde eines Tickets geändert hat oder eine Antwort dazukam. Nur an Webhooks, bei denen dieses Ereignis ausgewählt ist.",
        "operationId": "webhookTicketUpdated",
        "parameters": [
          {
            "name": "X-Management-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "const": "ticket.updated"
            },
            "description": "Name des Ereignisses"
          },
          {
            "name": "X-Management-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Kennung der Zustellung – bei jeder Wiederholung gleich (= delivery_id)"
          },
          {
            "name": "X-Management-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HMAC-SHA256 des unveränderten Inhalts mit dem Geheimnis des Webhooks, hexadezimal; leer, wenn kein Geheimnis hinterlegt ist"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDelivery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Status 200–299: Zustellung gilt als angenommen"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API-Schlüssel (beginnt mit `lp_`). `Authorization: Bearer` nimmt nur Anmelde-Tokens der Oberfläche an, keine API-Schlüssel."
      }
    },
    "parameters": {
      "Confirm": {
        "name": "confirm",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "1"
          ]
        },
        "description": "Rückfrage bestätigen: Antwortet ein Weg mit 409 `CONFIRM_REQUIRED`, dieselbe Anfrage mit `confirm=1` (oder `\"confirm\": true` im Inhalt) wiederholen."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Meldung auf Deutsch"
          },
          "code": {
            "type": "string",
            "description": "Kennung des Fehlers, z. B. MODULE_INACTIVE, CONFIRM_REQUIRED, API_SCOPE_REQUIRED"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            },
            "description": "Einzelfehler der Prüfung (bei 422)"
          },
          "ok": {
            "type": "boolean",
            "description": "nur unter /wp/v1: immer false"
          }
        }
      },
      "WebhookEvent": {
        "type": "string",
        "enum": [
          "customer.created",
          "customer.updated",
          "inquiry.created",
          "order.created",
          "order.status_changed",
          "invoice.created",
          "invoice.paid",
          "invoice.cancelled",
          "product.stock_changed",
          "product.availability_changed",
          "offer.created",
          "offer.sent",
          "offer.accepted",
          "offer.rejected",
          "payment.received",
          "invoice.overdue",
          "reminder.created",
          "expense.created",
          "product.created",
          "product.updated",
          "appointment.booked",
          "appointment.cancelled",
          "ticket.created",
          "ticket.updated"
        ],
        "description": "Ereignisse, die die Workbench an Webhooks sendet"
      },
      "WebhookDelivery": {
        "type": "object",
        "required": [
          "event",
          "delivery_id",
          "data",
          "timestamp"
        ],
        "properties": {
          "event": {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          "delivery_id": {
            "type": "string",
            "format": "uuid",
            "description": "Kennung der Zustellung, bei Wiederholungen gleich"
          },
          "data": {
            "type": "object",
            "required": [
              "source"
            ],
            "properties": {
              "source": {
                "type": "string",
                "description": "Herkunft, z. B. workbench, api, wordpress, woocommerce, designer"
              }
            },
            "additionalProperties": true,
            "description": "Nur Kennungen, Nummern, Status, Datum und Beträge – keine Namen, Adressen oder Texte; Einzelheiten über die API abrufen"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Zeitpunkt dieses Versuchs"
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Anfrage fehlerhaft",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Kein, unbekannter, gesperrter oder abgelaufener Schlüssel, oder das Konto des Schlüssels ist inaktiv",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Dem Schlüssel fehlt das Recht (Scope) – die Meldung nennt es; auch: Integrationen ausgeschaltet (`INTEGRATIONS_OFF`), Modul nur lesbar (`MODULE_READ_ONLY`), Sonder-Scope fehlt (`API_SCOPE_REQUIRED`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Nicht gefunden, oder Modul/Funktion nicht aktiv (`MODULE_INACTIVE`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "Konflikt – oder Rückfrage `CONFIRM_REQUIRED`: mit `confirm=1` bzw. `\"confirm\": true` wiederholen",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unprocessable": {
        "description": "Angaben ungültig; `details` nennt die Felder",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Zu viele Anfragen (600 lesende / 10 schreibende je Minute und Schlüssel); Stand in den Kopfzeilen `RateLimit-*`",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "x-webhook-retries": "Bis zu 5 Wiederholungen nach 5 Sekunden, 30 Sekunden, 2 Minuten, 10 Minuten, 30 Minuten; 10 Sekunden Wartezeit je Versuch, keine Weiterleitungen.",
  "x-rate-limits": {
    "readPerMinute": 600,
    "writePerMinute": 10,
    "invalidKeysPerIp": 30,
    "blockMinutes": 15
  },
  "x-special-scopes": {
    "api.receipts_zip": {
      "label": "Belege-Paket (ZIP) abrufen",
      "description": "Alle Belege eines Zeitraums als ZIP – je Bereich nur mit dessen Leserecht."
    },
    "api.invoice_number": {
      "label": "Rechnungsnummer ohne Versand vergeben",
      "description": "Nächste Nummer aus dem Kreis oder eigene Nummer; die Rechnung bleibt Entwurf."
    }
  }
}
