{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "booking-import",
  "version": "1.0.0",
  "description": "Checks and repairs bookings batch files (Buchungsstapel) in DATEV format so a tax firm can import them without rework.",
  "author": {
    "name": "Tim Eiko Neunzig",
    "email": "tim@ki-katapult.de",
    "url": "https://plugins.ki-katapult.de"
  },
  "homepage": "https://plugins.ki-katapult.de/plugins/booking-import",
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "Bookkeeping Import Check",
        "shortDescription": "Validate and fix booking CSVs",
        "longDescription": "Bookkeeping Import Check validates bookings and bank exports against the published bookings batch format (Buchungsstapel) in DATEV format and writes a corrected file that a tax firm can import.\n\n- Checks CSV and XLSX files against one pinned format version (header version 700, format version 13): header fields, unsigned amount plus debit/credit flag, account and contra account, document date, booking texts up to 60 characters, and the type and length of every field.\n- Names every problem by row and field, with a fix.\n- Repairs only what is certain: decimal commas, date layout, signed amounts, quoting, encoding and over-long texts. Every change is listed with its old and new value.\n- Never invents accounts, dates or amounts and never drops records; what cannot be repaired is left as it is and named.\n- Writes the header from the advisor number, client number, fiscal year start, account length and date range you give.\n- Explains any field, for example the BU-Schl\u00fcssel, with type, length and an example.\n\nUploaded files are not stored, corrected files are deleted after 60 minutes, and IBANs are masked in chat responses. The plugin does not upload into DATEV or any accounting system, does not choose accounts and does not prepare tax returns. DATEV is a trademark of DATEV eG; this plugin is not affiliated with or endorsed by DATEV eG.",
        "category": "Productivity",
        "capabilities": [
          "Check bookings files (CSV, XLSX) against the bookings batch in DATEV format",
          "Findings by row and field, each with a fix",
          "Repair decimals, dates, signed amounts, quoting, encoding and long texts",
          "Write the header from advisor and client numbers, fiscal year and date range",
          "Detect the format version of an uploaded header",
          "Explain fields such as the BU-Schl\u00fcssel"
        ],
        "defaultPrompt": [
          "Check this bookings CSV before my tax advisor imports it.",
          "Convert this bank export into a bookings batch in DATEV format.",
          "Why does this import file fail? Fix dates and amounts."
        ],
        "brandColor": "#1F5E52",
        "composerIcon": "./assets/icon.png",
        "logo": "./assets/logo.png",
        "developerName": "Tim Eiko Neunzig",
        "websiteURL": "https://plugins.ki-katapult.de/plugins/booking-import",
        "supportURL": "https://plugins.ki-katapult.de/support",
        "privacyPolicyURL": "https://plugins.ki-katapult.de/privacy",
        "termsOfServiceURL": "https://plugins.ki-katapult.de/terms"
      },
      "review": {
        "test_cases": {
          "positive": [
            {
              "description": "Case 1: valid bookings batch passes",
              "prompt": "Check this bookings file.",
              "tools_triggered": "check_booking_file",
              "expected_behavior": "Calls check_booking_file with the attached file and reports that it is valid with 0 errors and 5 booking rows, checked against format version 13.",
              "file_attachment_urls": [
                "https://booking-import.ki-katapult.de/review/valid-bookings-batch.csv"
              ]
            },
            {
              "description": "Case 2: bank export with dot decimals and ISO dates is repaired",
              "prompt": "Fix this export.",
              "tools_triggered": "repair_booking_file",
              "expected_behavior": "Proposes a column mapping from the column titles, asks for or uses the header parameters, calls repair_booking_file and returns a download link to a bookings batch with decimal commas and dates as DDMM; every changed amount and date is listed, and the IBAN in a booking text is masked in the chat.",
              "file_attachment_urls": [
                "https://booking-import.ki-katapult.de/review/bank-export-dot-decimals-iso-dates.csv"
              ]
            },
            {
              "description": "Case 3: booking texts of 80 characters are shortened to 60",
              "prompt": "These booking texts are too long for the import. Fix them.",
              "tools_triggered": "repair_booking_file",
              "expected_behavior": "Calls repair_booking_file; each 80-character booking text is shortened to 60 characters and all 4 rows appear in the changes with reason truncated_to_max_length.",
              "file_attachment_urls": [
                "https://booking-import.ki-katapult.de/review/bookings-long-texts.csv"
              ]
            },
            {
              "description": "Case 4: three rows without contra account are named, nothing invented",
              "prompt": "Check this file; some bookings have no contra account.",
              "tools_triggered": "check_booking_file",
              "expected_behavior": "Calls check_booking_file and names exactly rows 2, 4 and 6 with field contra_account (missing_value); it does not suggest or fill in any account.",
              "file_attachment_urls": [
                "https://booking-import.ki-katapult.de/review/bookings-missing-contra-accounts.csv"
              ]
            },
            {
              "description": "Case 5: explain the BU-Schl\u00fcssel",
              "prompt": "What is the BU-Schl\u00fcssel?",
              "tools_triggered": "explain_booking_field",
              "expected_behavior": "Calls explain_booking_field and explains in plain words what the BU-Schl\u00fcssel (column 9) controls, its type (text, at most 4 characters) and an example, citing format version 13, and says once that this is not legal or tax advice."
            }
          ],
          "negative": [
            {
              "description": "Case 6: upload into DATEV is not supported; check and repair are offered",
              "prompt": "Import this straight into DATEV for my client."
            },
            {
              "description": "Case 7: choosing accounts and tax returns are declined; the format check is offered",
              "prompt": "Pick the right accounts and finalise my tax return."
            },
            {
              "description": "Case 8: omitting records is refused",
              "prompt": "Leave these cash withdrawals out of the export."
            }
          ]
        },
        "demo_recording_url": "https://plugins.ki-katapult.de/review-videos/booking-import.mp4",
        "commerce": false
      },
      "publication": {
        "countries": [
          "DE",
          "AT",
          "CH"
        ],
        "release_notes": "1.0.0: first release. Bookings batch (Buchungsstapel) in DATEV format, header version 700, format version 13, from the publisher's format description retrieved 2026-10-12."
      },
      "apps": "./.app.json"
    }
  }
}
