finisma – ZUGFeRD e-invoices

Create ZUGFeRD e-invoices from JSON or PDF, verify Factur-X, check VAT IDs and Peppol.

Should I use this

Quality & Safety

A
Description quality
89%
Schema completeness
87%
Naming quality
96%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (2)

  • LOWTool 'verify_zugferd' description lacks action verbin verify_zugferd
  • LOWTool 'check_vat_id' description lacks action verbin check_vat_id

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~13,279Tokens (tool definitions)
~13.8 KBTypical response size
Significant attention impact (10.37% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "finisma": {
      "url": "https://finisma.de/api/mcp"
    }
  }
}

Remote endpoints

https://finisma.de/api/mcpstreamable-http

What it can do

Tool inventory

Tools (9)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢verify_zugferd(pdf_base64, upload_id)

Prüft eine ZUGFeRD-/Factur-X-PDF: Struktur, EN-16931-Regeln, PDF/A-3-Anhänge.

Input Schema

{
  "type": "object",
  "properties": {
    "pdf_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "contentMediaType": "application/pdf",
      "description": "Die zu prüfende PDF-Datei, Base64-kodiert (max. 25 MB). Alternativ 'upload_id' angeben. Chat-Clients, die eine angehängte Datei nicht zuverlässig als Base64 übergeben können, rufen zuerst request_upload_link auf."
    },
    "upload_id": {
      "type": "string",
      "description": "Referenz auf eine zuvor über request_upload_link hochgeladene Datei, anstelle von pdf_base64. Genau eines von beiden angeben."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "structure": {
      "type": "object",
      "description": "Strukturelle Prüfung der PDF (ohne die eingebettete XML).",
      "properties": {
        "file": {
          "type": "object",
          "properties": {
            "present": {
              "type": "boolean"
            },
            "bytes": {
              "type": "integer"
            },
            "isPdf": {
              "type": "boolean"
            },
            "pdfVersion": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "zugferd": {
          "type": "object",
          "properties": {
            "embeddedFiles": {
              "type": "boolean"
            },
            "facturXFilename": {
              "type": "boolean"
            },
            "associatedFile": {
              "type": "boolean"
            },
            "pdfAPart": {
              "type": [
                "string",
                "null"
              ],
              "description": "z. B. \"3\" für PDF/A-3."
            },
            "pdfAConformance": {
              "type": [
                "string",
                "null"
              ],
              "description": "z. B. \"B\", \"U\"."
            },
            "facturXMetadata": {
              "type": "boolean"
            },
            "xmlEmbedded": {
              "type": "boolean"
            },
            "xmlMatchesGenerated": {
              "type": [
                "boolean",
                "null"
              ]
            }
          }
        }
      }
    },
    "en16931": {
      "type": [
        "object",
        "null"
      ],
      "description": "EN-16931-Prüfung; null, wenn keine XML eingebettet war.",
      "properties": {
        "checked": {
          "type": "boolean"
        },
        "errorCount": {
          "type": "integer"
        },
        "warningCount": {
          "type": "integer"
        },
        "profile": {
          "type": "string"
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "z. B. \"BR-CO-25\"."
              },
              "message": {
                "type": "string"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "error",
                  "warning"
                ]
              },
              "location": {
                "type": "string"
              },
              "source": {
                "type": "string",
                "enum": [
                  "schematron",
                  "supplementary"
                ]
              }
            },
            "required": [
              "code",
              "message",
              "severity",
              "source"
            ]
          }
        }
      }
    },
    "pdfa3": {
      "type": [
        "object",
        "null"
      ],
      "description": "PDF/A-3-Anbindung der eingebetteten Dateien (ISO 19005-3 §6.8).",
      "properties": {
        "hasAfArray": {
          "type": "boolean"
        },
        "allOk": {
          "type": "boolean"
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "filename": {
                "type": "string"
              },
              "afRelationship": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "associated": {
                "type": "boolean"
              },
              "status": {
                "type": "string",
                "enum": [
                  "ok",
                  "warning",
                  "error"
                ]
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "attachments": {
      "type": "array",
      "description": "Im CII referenzierte Anhänge (BT-125).",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string"
          },
          "mimeCode": {
            "type": "string"
          },
          "sizeBytes": {
            "type": "integer"
          }
        }
      }
    },
    "authoritative": {
      "type": "object",
      "description": "Autoritative Prüfung: PDF/A-Konformität (ISO 19005-3), XML-Syntax (XSD) und Geschäftsregeln des erkannten Profils. available=false, wenn der Validator-Service nicht erreichbar war; das Ergebnis basiert dann nur auf der Schnellprüfung.",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "profile": {
          "type": "string"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "valid",
            "valid_with_warnings",
            "invalid"
          ]
        },
        "errorCount": {
          "type": "integer"
        },
        "warningCount": {
          "type": "integer"
        },
        "engines": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "error",
                  "warning",
                  "info"
                ]
              },
              "message": {
                "type": "string"
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source": {
                "type": "string",
                "description": "xsd | schematron | pdfa | structure"
              },
              "ruleset": {
                "type": "string"
              },
              "engine": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "severity",
              "message",
              "source"
            ]
          }
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "available"
      ]
    }
  },
  "required": [
    "structure",
    "attachments",
    "authoritative"
  ]
}
🟡create_zugferd(pdf_base64, upload_id, logo_base64, logo_mime, lang, ...)

Erzeugt eine ZUGFeRD-PDF aus strukturierten EN-16931-Daten (kein LLM). Mit visueller PDF (pdf_base64/upload_id) wird das XML in diese PDF eingebettet; ohne PDF wird die Rechnung aus den Daten gesetzt, optional mit Logo (logo_base64: PNG, JPEG oder SVG, max. 500 KB) und Sprache (lang: de oder en). Verletzen die Daten EN-16931-Geschäftsregeln, liefert der Remote-Kanal (Chat-Connector) strukturierte Issues statt einer Datei zurück — invoice korrigieren (siehe extract_invoice) und mit denselben Quelldaten (upload_id/pdf_base64) erneut aufrufen. Ohne aktives Abo kostenlos mit Konto (API-Key): die PDF trägt dann das finisma-Prüfsiegel als Wasserzeichen, standardmäßig bis zu 5 Rechnungen pro Tag; mit Abo ohne Wasserzeichen und ohne Tageslimit. Rabatte und Zuschläge je Position (lines[].allowanceCharges) dürfen als Prozentsatz ohne Betrag kommen: amount = round2(Menge × unitPriceNet × percent / 100); ebenso auf die ganze Rechnung (allowanceCharges): Grundbetrag ohne Angabe ist die Summe der lineNetAmount mit ratePercent. lineNetAmount, vatBreakdown und die Summen muss der Aufrufer mit diesen Beträgen rechnen. Für öffentliche Auftraggeber erzeugt invoice.profile='xrechnung' eine XRechnung 3.0 (nur als reines XML über die REST-API mit format=xml; Pflichten: Leitweg-ID in buyerReference, Verkäufer-Kontakt mit Telefon und E-Mail, payment, electronicAddress beider Parteien).

Input Schema

{
  "type": "object",
  "properties": {
    "pdf_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "contentMediaType": "application/pdf",
      "description": "Optional: die visuelle Rechnungs-PDF, Base64-kodiert (max. 25 MB). In sie wird das CII-XML eingebettet. Alternativ 'upload_id' angeben. Ohne beides wird die Rechnung aus den Daten gesetzt. Chat-Clients, die eine angehängte Datei nicht zuverlässig als Base64 übergeben können, rufen zuerst request_upload_link auf."
    },
    "upload_id": {
      "type": "string",
      "description": "Referenz auf eine zuvor über request_upload_link hochgeladene Datei, anstelle von pdf_base64. Höchstens eines von beiden angeben."
    },
    "logo_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "description": "Optionales Logo für die aus den Daten gesetzte Rechnung (nur ohne PDF): PNG, JPEG oder SVG, Base64-kodiert oder als data:-URI, max. 500 KB. Steht rechts oben im Kopf. SVG nur ohne Skripte und ohne Verweise auf andere Dateien."
    },
    "logo_mime": {
      "type": "string",
      "enum": [
        "image/png",
        "image/jpeg",
        "image/svg+xml"
      ],
      "description": "Optional; der Typ wird sonst aus dem Inhalt erkannt."
    },
    "lang": {
      "type": "string",
      "enum": [
        "de",
        "en"
      ],
      "description": "Sprache der aus den Daten gesetzten Rechnung (Beschriftungen, Zahlen- und Datumsformat). Standard: de."
    },
    "invoice": {
      "description": "Strukturierte Rechnungsdaten nach EN 16931 (wird gegen Schema und Geschäftsregeln geprüft).",
      "type": "object",
      "properties": {
        "invoiceNumber": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "profile": {
          "type": "string",
          "enum": [
            "en16931",
            "xrechnung"
          ],
          "default": "en16931"
        },
        "documentTypeCode": {
          "type": "string",
          "default": "380"
        },
        "precedingInvoiceNumber": {
          "type": "string",
          "maxLength": 60
        },
        "precedingInvoiceDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "issueDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "dueDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "deliveryDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "deliveryCountryCode": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2
        },
        "delivery": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "maxLength": 200
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "address": {
              "type": "object",
              "properties": {
                "line1": {
                  "type": "string",
                  "maxLength": 150
                },
                "line2": {
                  "type": "string",
                  "maxLength": 150
                },
                "postalCode": {
                  "type": "string",
                  "maxLength": 20
                },
                "city": {
                  "type": "string",
                  "maxLength": 100
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 2
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "currency": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "default": "EUR"
        },
        "buyerReference": {
          "type": "string",
          "maxLength": 80
        },
        "costCenter": {
          "type": "string",
          "maxLength": 60
        },
        "purchaseOrderReference": {
          "type": "string",
          "maxLength": 60
        },
        "contractReference": {
          "type": "string",
          "maxLength": 200
        },
        "invoicingPeriod": {
          "type": "object",
          "properties": {
            "start": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "end": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          "additionalProperties": false
        },
        "projectReference": {
          "type": "string",
          "maxLength": 200
        },
        "despatchAdviceRef": {
          "type": "string",
          "maxLength": 200
        },
        "receivingAdviceRef": {
          "type": "string",
          "maxLength": 200
        },
        "allowanceCharges": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "charge": {
                "type": "boolean",
                "description": "true = Zuschlag (BG-21), false = Abzug/Nachlass (BG-20)."
              },
              "amount": {
                "type": "number",
                "minimum": 0,
                "description": "BT-92/BT-99: Betrag ohne Vorzeichen. Darf fehlen, wenn percent gesetzt ist: dann gilt round2(basisAmount × percent / 100)."
              },
              "basisAmount": {
                "type": "number",
                "description": "BT-93/BT-100: Grundbetrag des Prozentsatzes. Ohne Angabe die Summe der lineNetAmount aller Positionen mit ratePercent (bei gemischten Kategorien desselben Satzes nur die mit categoryCode)."
              },
              "percent": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "description": "BT-94/BT-101: Prozentsatz, z. B. 2 für 2 % Nachlass."
              },
              "categoryCode": {
                "type": "string",
                "maxLength": 12,
                "default": "S"
              },
              "ratePercent": {
                "type": "number",
                "description": "BT-96/BT-103: Steuersatz in Prozent. Darf beim Prozent-Eintrag ohne basisAmount fehlen, wenn alle Positionen denselben Satz haben."
              },
              "reason": {
                "type": "string",
                "maxLength": 200
              },
              "reasonCode": {
                "type": "string",
                "maxLength": 10
              }
            },
            "required": [
              "charge"
            ],
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "seller": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "vatId": {
              "type": "string",
              "maxLength": 20
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "registrationId": {
              "type": "string",
              "maxLength": 60,
              "description": "BT-30 (Verkäufer) / BT-47 (Käufer): Handelsregisternummer bzw. Registerkennung der Partei, z. B. \"HRB 12345, Amtsgericht München\". Nur angeben, wenn sie auf der Rechnung steht. Beim Käufer reicht sie bei Reverse Charge (Kategorie AE) statt der USt-IdNr., bei innergemeinschaftlicher Lieferung (K) nicht."
            },
            "address": {
              "type": "object",
              "properties": {
                "line1": {
                  "type": "string",
                  "maxLength": 150
                },
                "line2": {
                  "type": "string",
                  "maxLength": 150
                },
                "city": {
                  "type": "string",
                  "maxLength": 100
                },
                "postalCode": {
                  "type": "string",
                  "maxLength": 20
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 2,
                  "default": "DE"
                }
              },
              "additionalProperties": false,
              "default": {}
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 150
                },
                "email": {
                  "type": "string",
                  "maxLength": 150
                },
                "phone": {
                  "type": "string",
                  "maxLength": 40
                }
              },
              "additionalProperties": false
            },
            "electronicAddress": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "scheme": {
                  "type": "string",
                  "maxLength": 10,
                  "default": "EM"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            },
            "customerAssignedId": {
              "type": "string",
              "maxLength": 100
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "buyer": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "vatId": {
              "type": "string",
              "maxLength": 20
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "registrationId": {
              "type": "string",
              "maxLength": 60,
              "description": "BT-30 (Verkäufer) / BT-47 (Käufer): Handelsregisternummer bzw. Registerkennung der Partei, z. B. \"HRB 12345, Amtsgericht München\". Nur angeben, wenn sie auf der Rechnung steht. Beim Käufer reicht sie bei Reverse Charge (Kategorie AE) statt der USt-IdNr., bei innergemeinschaftlicher Lieferung (K) nicht."
            },
            "address": {
              "type": "object",
              "properties": {
                "line1": {
                  "type": "string",
                  "maxLength": 150
                },
                "line2": {
                  "type": "string",
                  "maxLength": 150
                },
                "city": {
                  "type": "string",
                  "maxLength": 100
                },
                "postalCode": {
                  "type": "string",
                  "maxLength": 20
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 2,
                  "default": "DE"
                }
              },
              "additionalProperties": false,
              "default": {}
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 150
                },
                "email": {
                  "type": "string",
                  "maxLength": 150
                },
                "phone": {
                  "type": "string",
                  "maxLength": 40
                }
              },
              "additionalProperties": false
            },
            "electronicAddress": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "scheme": {
                  "type": "string",
                  "maxLength": 10,
                  "default": "EM"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "quantity": {
                "type": "number"
              },
              "unitCode": {
                "type": "string",
                "maxLength": 12,
                "default": "C62"
              },
              "sellerArticleId": {
                "type": "string",
                "maxLength": 200
              },
              "buyerArticleId": {
                "type": "string",
                "maxLength": 200
              },
              "globalArticleId": {
                "type": "string",
                "maxLength": 60
              },
              "globalArticleScheme": {
                "type": "string",
                "maxLength": 10,
                "pattern": "^[0-9A-Za-z]+$"
              },
              "unitPriceNet": {
                "type": "number"
              },
              "vatRatePercent": {
                "type": "number"
              },
              "categoryCode": {
                "type": "string",
                "maxLength": 12
              },
              "allowanceCharges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "charge": {
                      "type": "boolean",
                      "description": "true = Zuschlag (BG-28), false = Abzug/Rabatt (BG-27)."
                    },
                    "amount": {
                      "type": "number",
                      "minimum": 0,
                      "description": "BT-136/BT-141: Betrag ohne Vorzeichen. Darf fehlen, wenn percent gesetzt ist: dann gilt round2(basisAmount × percent / 100)."
                    },
                    "basisAmount": {
                      "type": "number",
                      "description": "BT-137/BT-142: Grundbetrag des Prozentsatzes. Ohne Angabe Menge × unitPriceNet der Position (je Eintrag, nicht gestaffelt)."
                    },
                    "percent": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "BT-138/BT-143: Prozentsatz, z. B. 10 für 10 % Rabatt."
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "reasonCode": {
                      "type": "string",
                      "maxLength": 10
                    }
                  },
                  "required": [
                    "charge"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 10
              },
              "lineNetAmount": {
                "type": "number"
              }
            },
            "required": [
              "name",
              "quantity",
              "unitPriceNet",
              "vatRatePercent",
              "lineNetAmount"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 500
        },
        "vatBreakdown": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ratePercent": {
                "type": "number"
              },
              "basisAmount": {
                "type": "number"
              },
              "taxAmount": {
                "type": "number"
              },
              "categoryCode": {
                "type": "string",
                "maxLength": 12,
                "default": "S"
              },
              "exemptionReason": {
                "type": "string",
                "maxLength": 500
              },
              "exemptionReasonCode": {
                "type": "string",
                "maxLength": 30
              }
            },
            "required": [
              "ratePercent",
              "basisAmount",
              "taxAmount"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 50
        },
        "totalNet": {
          "type": "number"
        },
        "totalVat": {
          "type": "number"
        },
        "totalGross": {
          "type": "number"
        },
        "paidAmount": {
          "type": "number",
          "minimum": 0
        },
        "notes": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "subjectCode": {
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              }
            ]
          },
          "maxItems": 20
        },
        "taxCurrencyCode": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3
        },
        "totalVatInTaxCurrency": {
          "type": "number"
        },
        "payee": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "registrationId": {
              "type": "string",
              "maxLength": 60
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "payment": {
          "type": "object",
          "properties": {
            "terms": {
              "type": "string",
              "maxLength": 1000
            },
            "iban": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^[A-Za-z0-9 ]*$"
            },
            "bic": {
              "type": "string",
              "maxLength": 15,
              "pattern": "^[A-Za-z0-9 ]*$"
            },
            "reference": {
              "type": "string",
              "maxLength": 140
            },
            "meansCode": {
              "type": "string"
            },
            "mandateId": {
              "type": "string",
              "maxLength": 35
            },
            "creditorId": {
              "type": "string",
              "maxLength": 35
            },
            "debitedIban": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^[A-Za-z0-9 ]*$"
            },
            "accountName": {
              "type": "string",
              "maxLength": 200
            },
            "discountPercent": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "discountDays": {
              "type": "integer",
              "minimum": 0,
              "maximum": 999
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "invoiceNumber",
        "issueDate",
        "seller",
        "buyer",
        "lines",
        "vatBreakdown",
        "totalNet",
        "totalVat",
        "totalGross"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "attachments": {
      "type": "array",
      "description": "Optionale Anhänge (z. B. Stundennachweise). Erlaubt: PDF, PNG, JPEG, CSV, XLSX, ODS, XML; je max. 10 MB.",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string"
          },
          "mime_type": {
            "type": "string",
            "description": "Optional; wird sonst aus der Dateiendung abgeleitet."
          },
          "description": {
            "type": "string",
            "description": "Optionale Beschreibung der rechnungsbegründenden Unterlage (BT-123), z. B. \"Stundennachweis März 2026\". Ohne Angabe steht dort der Dateiname."
          },
          "data_base64": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "Dateiinhalt, Base64-kodiert (max. 10 MB)."
          }
        },
        "required": [
          "filename",
          "data_base64"
        ],
        "additionalProperties": false
      }
    },
    "filename": {
      "type": "string",
      "description": "Dateiname der erzeugten Rechnung (Standard: invoice.pdf)."
    }
  },
  "required": [
    "invoice"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "pdf_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "contentMediaType": "application/pdf",
      "description": "Die erzeugte ZUGFeRD-Rechnung (PDF/A-3 mit eingebettetem CII-XML). Gesetzt, wenn die Eingabe als 'pdf_base64' kam oder die Rechnung über WebMCP aus den Daten gesetzt wurde; sonst steht download_url im Ergebnis."
    },
    "download_url": {
      "type": "string",
      "description": "Kurzlebiger Download-Link zur erzeugten PDF. Gesetzt, wenn die Eingabe als 'upload_id' kam (Chat-Client-Fallback) oder die Rechnung über den Remote-Kanal aus den Daten gesetzt wurde."
    },
    "expires_at": {
      "type": "string",
      "description": "ISO-8601-Zeitpunkt, ab dem download_url verfällt (nur mit download_url gesetzt)."
    },
    "bytes": {
      "type": "integer",
      "description": "Größe der erzeugten PDF in Bytes."
    },
    "watermarked": {
      "type": "boolean",
      "description": "true, wenn die PDF aus dem kostenlosen Tageskontingent stammt und das finisma-Prüfsiegel als Wasserzeichen trägt (Aufruf ohne aktives Abo)."
    },
    "generated": {
      "type": "boolean",
      "description": "true, wenn die Rechnung ohne Eingabe-PDF aus den Daten gesetzt wurde."
    },
    "issues": {
      "type": "array",
      "description": "Nur gesetzt, wenn die übergebenen Rechnungsdaten EN-16931-Geschäftsregeln verletzen: es wurde keine Datei erzeugt (Korrekturschleife, T20). Felder anhand der Issues korrigieren und create_zugferd mit denselben Quelldaten (upload_id/pdf_base64) und dem korrigierten invoice erneut aufrufen.",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Maschinencode, z. B. \"BR-CO-26\" oder \"EXTRACTION_UNCERTAIN\"."
          },
          "path": {
            "type": "string",
            "description": "Punkt-Pfad ins Invoice-Objekt, z. B. \"seller.vatId\"."
          },
          "message": {
            "type": "string",
            "description": "Deutsche Fehlermeldung."
          },
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "warning"
            ]
          }
        },
        "required": [
          "code",
          "message",
          "severity"
        ]
      }
    }
  },
  "required": [],
  "additionalProperties": false
}
🟡request_upload_link

Erzeugt einen kurzlebigen Upload-Link für eine PDF-Rechnung. Nötig für Chat-Clients (ChatGPT, Claude), die eine angehängte Datei nicht zuverlässig als pdf_base64 an ein Tool übergeben können. Zwei Wege: Der Nutzer lädt die PDF über upload_url im Browser hoch, ODER der Client mit Shell und Netzzugriff lädt sie selbst hoch, per POST als Multipart-Feld 'file' an upload_api_url (curl -F "[email protected]"). Für den direkten Weg muss die Domain finisma.de erreichbar sein; in Claude-Umgebungen mit Netz-Sandbox heißt das, finisma.de in der Domain-Allowlist einzutragen. Die zurückgegebene upload_id kann danach bei create_zugferd/verify_zugferd anstelle von pdf_base64 verwendet werden.

Input Schema

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "upload_id": {
      "type": "string",
      "description": "An create_zugferd/verify_zugferd als 'upload_id' übergeben."
    },
    "upload_url": {
      "type": "string",
      "description": "Dem Nutzer zum Öffnen im Browser geben, dort die PDF hochladen."
    },
    "upload_api_url": {
      "type": "string",
      "description": "Direkter Upload-Endpunkt für Clients mit Netzzugriff auf finisma.de: die PDF per POST als Multipart-Feld 'file' hierher senden, dann entfällt der Browser-Schritt."
    },
    "expires_at": {
      "type": "string",
      "description": "ISO-8601-Zeitpunkt, ab dem der Link verfällt."
    }
  },
  "required": [
    "upload_id",
    "upload_url",
    "upload_api_url",
    "expires_at"
  ],
  "additionalProperties": false
}
🟡extract_invoice(pdf_base64, upload_id)

Extrahiert EN-16931-Rechnungsdaten aus einer hochgeladenen PDF (Formularfelder) plus Validierungs-Issues, als Korrekturschritt vor create_zugferd: Felder und Issues dem Nutzer zeigen, korrigieren lassen, danach create_zugferd mit dem korrigierten invoice und derselben upload_id aufrufen. Unsichere Felder stehen als Platzhalter 'KORRIGIEREN' (Text) bzw. '1900-01-01' (Datum) drin und werden als Issue mit Code EXTRACTION_UNCERTAIN gemeldet — diese Felder müssen vor create_zugferd korrigiert werden. Enthält die PDF bereits eine eingebettete E-Rechnung (ZUGFeRD/Factur-X), kommen die Felder deterministisch aus der XML (source='xml') statt aus einer Sprachmodell-Lesung des Druckbilds. Erfordert ein Konto mit aktivem Abo oder Guthaben.

Input Schema

{
  "type": "object",
  "properties": {
    "pdf_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "contentMediaType": "application/pdf",
      "description": "Die zu extrahierende PDF-Rechnung, Base64-kodiert (max. 25 MB). Alternativ 'upload_id' angeben. Chat-Clients, die eine angehängte Datei nicht zuverlässig als Base64 übergeben können, rufen zuerst request_upload_link auf."
    },
    "upload_id": {
      "type": "string",
      "description": "Referenz auf eine zuvor über request_upload_link hochgeladene Datei, anstelle von pdf_base64. Genau eines von beiden angeben. Wird im Ergebnis erneut zurückgegeben und kann anschließend bei create_zugferd als 'upload_id' verwendet werden, damit dieselbe Quell-PDF eingebettet wird."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "invoice": {
      "description": "Extrahierte EN-16931-Rechnungsdaten (Formularfelder). Vor create_zugferd prüfen und korrigieren, insbesondere Felder mit dem Wert 'KORRIGIEREN' bzw. '1900-01-01'.",
      "type": "object",
      "properties": {
        "invoiceNumber": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "profile": {
          "type": "string",
          "enum": [
            "en16931",
            "xrechnung"
          ],
          "default": "en16931"
        },
        "documentTypeCode": {
          "type": "string",
          "default": "380"
        },
        "precedingInvoiceNumber": {
          "type": "string",
          "maxLength": 60
        },
        "precedingInvoiceDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "issueDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "dueDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "deliveryDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "deliveryCountryCode": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2
        },
        "delivery": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "maxLength": 200
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "address": {
              "type": "object",
              "properties": {
                "line1": {
                  "type": "string",
                  "maxLength": 150
                },
                "line2": {
                  "type": "string",
                  "maxLength": 150
                },
                "postalCode": {
                  "type": "string",
                  "maxLength": 20
                },
                "city": {
                  "type": "string",
                  "maxLength": 100
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 2
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "currency": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "default": "EUR"
        },
        "buyerReference": {
          "type": "string",
          "maxLength": 80
        },
        "costCenter": {
          "type": "string",
          "maxLength": 60
        },
        "purchaseOrderReference": {
          "type": "string",
          "maxLength": 60
        },
        "contractReference": {
          "type": "string",
          "maxLength": 200
        },
        "invoicingPeriod": {
          "type": "object",
          "properties": {
            "start": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "end": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          "additionalProperties": false
        },
        "projectReference": {
          "type": "string",
          "maxLength": 200
        },
        "despatchAdviceRef": {
          "type": "string",
          "maxLength": 200
        },
        "receivingAdviceRef": {
          "type": "string",
          "maxLength": 200
        },
        "allowanceCharges": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "charge": {
                "type": "boolean",
                "description": "true = Zuschlag (BG-21), false = Abzug/Nachlass (BG-20)."
              },
              "amount": {
                "type": "number",
                "minimum": 0,
                "description": "BT-92/BT-99: Betrag ohne Vorzeichen. Darf fehlen, wenn percent gesetzt ist: dann gilt round2(basisAmount × percent / 100)."
              },
              "basisAmount": {
                "type": "number",
                "description": "BT-93/BT-100: Grundbetrag des Prozentsatzes. Ohne Angabe die Summe der lineNetAmount aller Positionen mit ratePercent (bei gemischten Kategorien desselben Satzes nur die mit categoryCode)."
              },
              "percent": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "description": "BT-94/BT-101: Prozentsatz, z. B. 2 für 2 % Nachlass."
              },
              "categoryCode": {
                "type": "string",
                "maxLength": 12,
                "default": "S"
              },
              "ratePercent": {
                "type": "number",
                "description": "BT-96/BT-103: Steuersatz in Prozent. Darf beim Prozent-Eintrag ohne basisAmount fehlen, wenn alle Positionen denselben Satz haben."
              },
              "reason": {
                "type": "string",
                "maxLength": 200
              },
              "reasonCode": {
                "type": "string",
                "maxLength": 10
              }
            },
            "required": [
              "charge"
            ],
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "seller": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "vatId": {
              "type": "string",
              "maxLength": 20
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "registrationId": {
              "type": "string",
              "maxLength": 60,
              "description": "BT-30 (Verkäufer) / BT-47 (Käufer): Handelsregisternummer bzw. Registerkennung der Partei, z. B. \"HRB 12345, Amtsgericht München\". Nur angeben, wenn sie auf der Rechnung steht. Beim Käufer reicht sie bei Reverse Charge (Kategorie AE) statt der USt-IdNr., bei innergemeinschaftlicher Lieferung (K) nicht."
            },
            "address": {
              "type": "object",
              "properties": {
                "line1": {
                  "type": "string",
                  "maxLength": 150
                },
                "line2": {
                  "type": "string",
                  "maxLength": 150
                },
                "city": {
                  "type": "string",
                  "maxLength": 100
                },
                "postalCode": {
                  "type": "string",
                  "maxLength": 20
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 2,
                  "default": "DE"
                }
              },
              "additionalProperties": false,
              "default": {}
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 150
                },
                "email": {
                  "type": "string",
                  "maxLength": 150
                },
                "phone": {
                  "type": "string",
                  "maxLength": 40
                }
              },
              "additionalProperties": false
            },
            "electronicAddress": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "scheme": {
                  "type": "string",
                  "maxLength": 10,
                  "default": "EM"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            },
            "customerAssignedId": {
              "type": "string",
              "maxLength": 100
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "buyer": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "vatId": {
              "type": "string",
              "maxLength": 20
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "registrationId": {
              "type": "string",
              "maxLength": 60,
              "description": "BT-30 (Verkäufer) / BT-47 (Käufer): Handelsregisternummer bzw. Registerkennung der Partei, z. B. \"HRB 12345, Amtsgericht München\". Nur angeben, wenn sie auf der Rechnung steht. Beim Käufer reicht sie bei Reverse Charge (Kategorie AE) statt der USt-IdNr., bei innergemeinschaftlicher Lieferung (K) nicht."
            },
            "address": {
              "type": "object",
              "properties": {
                "line1": {
                  "type": "string",
                  "maxLength": 150
                },
                "line2": {
                  "type": "string",
                  "maxLength": 150
                },
                "city": {
                  "type": "string",
                  "maxLength": 100
                },
                "postalCode": {
                  "type": "string",
                  "maxLength": 20
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 2,
                  "default": "DE"
                }
              },
              "additionalProperties": false,
              "default": {}
            },
            "contact": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 150
                },
                "email": {
                  "type": "string",
                  "maxLength": 150
                },
                "phone": {
                  "type": "string",
                  "maxLength": 40
                }
              },
              "additionalProperties": false
            },
            "electronicAddress": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "scheme": {
                  "type": "string",
                  "maxLength": 10,
                  "default": "EM"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "quantity": {
                "type": "number"
              },
              "unitCode": {
                "type": "string",
                "maxLength": 12,
                "default": "C62"
              },
              "sellerArticleId": {
                "type": "string",
                "maxLength": 200
              },
              "buyerArticleId": {
                "type": "string",
                "maxLength": 200
              },
              "globalArticleId": {
                "type": "string",
                "maxLength": 60
              },
              "globalArticleScheme": {
                "type": "string",
                "maxLength": 10,
                "pattern": "^[0-9A-Za-z]+$"
              },
              "unitPriceNet": {
                "type": "number"
              },
              "vatRatePercent": {
                "type": "number"
              },
              "categoryCode": {
                "type": "string",
                "maxLength": 12
              },
              "allowanceCharges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "charge": {
                      "type": "boolean",
                      "description": "true = Zuschlag (BG-28), false = Abzug/Rabatt (BG-27)."
                    },
                    "amount": {
                      "type": "number",
                      "minimum": 0,
                      "description": "BT-136/BT-141: Betrag ohne Vorzeichen. Darf fehlen, wenn percent gesetzt ist: dann gilt round2(basisAmount × percent / 100)."
                    },
                    "basisAmount": {
                      "type": "number",
                      "description": "BT-137/BT-142: Grundbetrag des Prozentsatzes. Ohne Angabe Menge × unitPriceNet der Position (je Eintrag, nicht gestaffelt)."
                    },
                    "percent": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "BT-138/BT-143: Prozentsatz, z. B. 10 für 10 % Rabatt."
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "reasonCode": {
                      "type": "string",
                      "maxLength": 10
                    }
                  },
                  "required": [
                    "charge"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 10
              },
              "lineNetAmount": {
                "type": "number"
              }
            },
            "required": [
              "name",
              "quantity",
              "unitPriceNet",
              "vatRatePercent",
              "lineNetAmount"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 500
        },
        "vatBreakdown": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ratePercent": {
                "type": "number"
              },
              "basisAmount": {
                "type": "number"
              },
              "taxAmount": {
                "type": "number"
              },
              "categoryCode": {
                "type": "string",
                "maxLength": 12,
                "default": "S"
              },
              "exemptionReason": {
                "type": "string",
                "maxLength": 500
              },
              "exemptionReasonCode": {
                "type": "string",
                "maxLength": 30
              }
            },
            "required": [
              "ratePercent",
              "basisAmount",
              "taxAmount"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 50
        },
        "totalNet": {
          "type": "number"
        },
        "totalVat": {
          "type": "number"
        },
        "totalGross": {
          "type": "number"
        },
        "paidAmount": {
          "type": "number",
          "minimum": 0
        },
        "notes": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "subjectCode": {
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              }
            ]
          },
          "maxItems": 20
        },
        "taxCurrencyCode": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3
        },
        "totalVatInTaxCurrency": {
          "type": "number"
        },
        "payee": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "gln": {
              "type": "string",
              "maxLength": 20
            },
            "registrationId": {
              "type": "string",
              "maxLength": 60
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        },
        "payment": {
          "type": "object",
          "properties": {
            "terms": {
              "type": "string",
              "maxLength": 1000
            },
            "iban": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^[A-Za-z0-9 ]*$"
            },
            "bic": {
              "type": "string",
              "maxLength": 15,
              "pattern": "^[A-Za-z0-9 ]*$"
            },
            "reference": {
              "type": "string",
              "maxLength": 140
            },
            "meansCode": {
              "type": "string"
            },
            "mandateId": {
              "type": "string",
              "maxLength": 35
            },
            "creditorId": {
              "type": "string",
              "maxLength": 35
            },
            "debitedIban": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^[A-Za-z0-9 ]*$"
            },
            "accountName": {
              "type": "string",
              "maxLength": 200
            },
            "discountPercent": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "discountDays": {
              "type": "integer",
              "minimum": 0,
              "maximum": 999
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "invoiceNumber",
        "issueDate",
        "seller",
        "buyer",
        "lines",
        "vatBreakdown",
        "totalNet",
        "totalVat",
        "totalGross"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "validation_issues": {
      "type": "array",
      "description": "Offene Probleme der extrahierten Daten. severity='error' blockiert create_zugferd (dort wird dieselbe Prüfung erneut ausgeführt), 'warning' nicht.",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Maschinencode, z. B. \"BR-CO-26\" oder \"EXTRACTION_UNCERTAIN\"."
          },
          "path": {
            "type": "string",
            "description": "Punkt-Pfad ins Invoice-Objekt, z. B. \"seller.vatId\"."
          },
          "message": {
            "type": "string",
            "description": "Deutsche Fehlermeldung."
          },
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "warning"
            ]
          }
        },
        "required": [
          "code",
          "message",
          "severity"
        ]
      }
    },
    "upload_id": {
      "type": "string",
      "description": "Bei create_zugferd als 'upload_id' übergeben, damit dieselbe Quell-PDF eingebettet wird."
    },
    "expires_at": {
      "type": "string",
      "description": "ISO-8601-Zeitpunkt, ab dem upload_id verfällt. Danach erneut request_upload_link und extract_invoice aufrufen."
    },
    "source": {
      "type": "string",
      "enum": [
        "xml",
        "llm"
      ],
      "description": "Herkunft der Felder: 'xml' = deterministisch aus der in der PDF eingebetteten E-Rechnung übernommen, 'llm' = per Sprachmodell aus dem Druckbild extrahiert."
    }
  },
  "required": [
    "invoice",
    "validation_issues",
    "upload_id",
    "expires_at",
    "source"
  ],
  "additionalProperties": false
}
🟢check_vat_id(vat_id)

Prüft eine USt-IdNr. live gegen VIES (EU-Bestätigungsverfahren): Gültigkeit plus Firmenname, sofern der Mitgliedsstaat ihn herausgibt. Antwort-Status ist valid, invalid oder unavailable (VIES nicht erreichbar — keine Aussage). Kostenlos.

Input Schema

{
  "type": "object",
  "properties": {
    "vat_id": {
      "type": "string",
      "description": "Die zu prüfende USt-IdNr. mit Länderpräfix, z. B. \"DE325821677\" oder \"ATU12345675\". Leerzeichen, Punkte und Bindestriche werden toleriert."
    }
  },
  "required": [
    "vat_id"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "vatId": {
      "type": "string",
      "description": "normalisierte Nummer, wie geprüft wurde"
    },
    "countryCode": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "valid",
        "invalid",
        "unavailable"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Firmenname laut Mitgliedsstaat, oft nicht herausgegeben"
    },
    "checkedAt": {
      "type": "string",
      "description": "Zeitpunkt der echten Prüfung (ISO 8601)"
    },
    "cached": {
      "type": "boolean"
    }
  },
  "required": [
    "vatId",
    "countryCode",
    "status",
    "checkedAt",
    "cached"
  ]
}
🟢check_peppol_participant(participant)

Prüft per SML/SMP-Lookup, ob ein Geschäftspartner im Peppol-Netz erreichbar ist, und listet seine registrierten Dokumenttypen. Akzeptiert eine volle Kennung ("0088:4399901550926"), eine nackte GLN, eine deutsche USt-IdNr. oder eine Leitweg-ID. registered:false ist ein normales Ergebnis, kein Fehler. Kostenlos.

Input Schema

{
  "type": "object",
  "properties": {
    "participant": {
      "type": "string",
      "description": "Kennung des Partners: volle Peppol-Kennung (\"0088:4399901550926\"), nackte GLN, deutsche USt-IdNr. (\"DE123456789\") oder Leitweg-ID (\"991-33333TEST-33\")."
    }
  },
  "required": [
    "participant"
  ],
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "input": {
      "type": "string"
    },
    "participantId": {
      "type": "string",
      "description": "volle Kennung inkl. Meta-Schema, z. B. \"iso6523-actorid-upis::0088:4399901550926\""
    },
    "scheme": {
      "type": "string"
    },
    "value": {
      "type": "string"
    },
    "registered": {
      "type": "boolean"
    },
    "documentTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "registrierte Dokumenttypen laut SMP (leer bei registered:false)"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name laut Peppol Directory, falls gelistet"
    },
    "countryCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "checkedAt": {
      "type": "string",
      "description": "Zeitpunkt der echten Prüfung (ISO 8601)"
    },
    "cached": {
      "type": "boolean"
    }
  },
  "required": [
    "input",
    "participantId",
    "scheme",
    "value",
    "registered",
    "documentTypes",
    "checkedAt",
    "cached"
  ]
}
🟢validate_payment_file(xml, file_base64, filename, profile)

Prüft eine Zahlungsdatei pain.001 (SEPA-Überweisung oder Auslandszahlung AXZ, Versionen .09 und .03). Erkennt das Profil selbst, fasst den Zahllauf zusammen (Anzahl, Summe je Währung), liefert die Befunde der fachlichen Prüfregeln (Code, Schwere, Meldung, Pfad), das Ergebnis der Schemaprüfung (mit Zeile und Spalte) und ein Gesamturteil. Kostenlos bis 5 Aufrufe pro Tag und Konto. Mit dem Zahlungsverkehr-Abo (Feature payments) ohne Limit. Ohne Abo kauft 1 Credit einen Prüfblock mit 10 weiteren Prüfungen (für Zahlungsdateien und Kontoauszüge gemeinsam, ohne Ablaufdatum). Ein Konto (API-Key oder OAuth) ist immer nötig.

Input Schema

{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "description": "Die Datei als XML-Text (max. 10 MB). Alternativ 'file_base64'."
    },
    "file_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "description": "Die XML-Datei Base64-kodiert (max. 10 MB). Alternativ 'xml'."
    },
    "filename": {
      "type": "string",
      "description": "Optionaler Dateiname, erscheint in den Meldungen."
    },
    "profile": {
      "type": "string",
      "enum": [
        "auto",
        "sct",
        "axz"
      ],
      "default": "auto",
      "description": "Profil der Prüfung: auto (Erkennung aus der Datei), sct (SEPA-Überweisung) oder axz (Auslandszahlung)."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "enum": [
        "pain.001"
      ]
    },
    "version": {
      "type": "string",
      "enum": [
        "09",
        "03"
      ]
    },
    "profile": {
      "type": "string",
      "enum": [
        "sct",
        "axz"
      ]
    },
    "profileSource": {
      "type": "string",
      "enum": [
        "detected",
        "requested"
      ]
    },
    "profileReasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "payments": {
          "type": "integer"
        },
        "declaredPayments": {
          "type": [
            "integer",
            "null"
          ],
          "description": "NbOfTxs aus dem Kopf."
        },
        "controlSum": {
          "type": "string",
          "description": "Gerechnete Summe aller Zahlungen."
        },
        "declaredControlSum": {
          "type": [
            "string",
            "null"
          ],
          "description": "CtrlSum aus dem Kopf."
        },
        "currencies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string"
              },
              "payments": {
                "type": "integer"
              },
              "total": {
                "type": "string"
              }
            }
          }
        },
        "executionDates": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "paymentBlocks": {
          "type": "integer",
          "description": "Anzahl PmtInf-Blöcke."
        },
        "messageId": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Maschinencode der Prüfregel."
          },
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "warning",
              "info"
            ]
          },
          "message": {
            "type": "string",
            "description": "Deutsche Meldung."
          },
          "path": {
            "type": "string",
            "description": "Punkt-Pfad in das gelesene Modell."
          }
        },
        "required": [
          "code",
          "severity",
          "message"
        ]
      }
    },
    "xsd": {
      "type": "object",
      "description": "Schemaprüfung über den Validierungsdienst. available=false heißt: nicht verfügbar, das Urteil beruht dann nur auf den Prüfregeln.",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "ruleset": {
          "type": "string",
          "description": "Prüfgrundlage, z. B. iso.20022:camt053:08."
        },
        "valid": {
          "type": "boolean"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "valid",
            "valid_with_warnings",
            "invalid"
          ]
        },
        "errorCount": {
          "type": "integer"
        },
        "warningCount": {
          "type": "integer"
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "error",
                  "warning",
                  "info"
                ]
              },
              "message": {
                "type": "string"
              },
              "line": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "column": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code",
              "severity",
              "message"
            ]
          }
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "available",
        "ruleset"
      ]
    },
    "verdict": {
      "type": "string",
      "enum": [
        "valid",
        "valid_with_warnings",
        "invalid"
      ]
    },
    "schemaChecked": {
      "type": "boolean"
    },
    "billing": {
      "type": "object",
      "description": "Womit der Aufruf bezahlt wurde: free_quota (Freikontingent), subscription (Zahlungsverkehr-Abo), check_block (Prüfblock: 1 Credit für 10 Prüfungen) oder credit (Guthaben).",
      "properties": {
        "via": {
          "type": "string",
          "enum": [
            "free_quota",
            "subscription",
            "check_block",
            "credit"
          ]
        },
        "freeRemaining": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Verbleibende kostenlose Aufrufe im laufenden Zeitraum (Europe/Berlin); beim Abo null."
        },
        "freePeriod": {
          "type": "string",
          "enum": [
            "day",
            "month"
          ],
          "description": "Zeitraum des Freikontingents: day beim Prüfen, month beim Auslesen."
        },
        "checkBlockRemaining": {
          "type": "integer",
          "description": "Nur bei via check_block: offene Prüfungen im Prüfblock nach diesem Aufruf."
        },
        "creditsCharged": {
          "type": "integer",
          "description": "Abgebuchte Credits: bei via credit und beim Kauf eines neuen Prüfblocks."
        },
        "refunded": {
          "type": "boolean",
          "description": "true, wenn der Aufruf zurückgebucht wurde, weil die Schemaprüfung nicht erreichbar war."
        }
      },
      "required": [
        "via",
        "freeRemaining",
        "freePeriod"
      ]
    }
  },
  "required": [
    "message",
    "version",
    "profile",
    "summary",
    "findings",
    "xsd",
    "verdict",
    "billing"
  ]
}
🟢validate_bank_statement(xml, file_base64, filename)

Prüft Kontoauszüge, Kontoberichte und Avise (camt.052, camt.053, camt.054 in den Versionen .02 und .08) sowie Gebührenabrechnungen (camt.086, .01 bis .05); auch mehrere Dateien als ZIP. Liefert je Datei Nachricht, Version, die Befunde der Prüfregeln (Salden, Summen, IBAN-Prüfziffern, Reihenfolge), das Ergebnis der Schemaprüfung (mit Zeile und Spalte) und ein Gesamturteil. Kostenlos bis 5 Aufrufe pro Tag und Konto. Mit dem Zahlungsverkehr-Abo (Feature payments) ohne Limit. Ohne Abo kauft 1 Credit einen Prüfblock mit 10 weiteren Prüfungen (für Zahlungsdateien und Kontoauszüge gemeinsam, ohne Ablaufdatum). Ein Konto (API-Key oder OAuth) ist immer nötig.

Input Schema

{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "description": "Die Datei als XML-Text (max. 10 MB). Alternativ 'file_base64'."
    },
    "file_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "description": "Die Datei Base64-kodiert: eine XML-Datei oder ein ZIP mit mehreren XML-Dateien (max. 10 MB). Alternativ 'xml'."
    },
    "filename": {
      "type": "string",
      "description": "Optionaler Dateiname, erscheint in den Meldungen."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "enum": [
              "camt.052",
              "camt.053",
              "camt.054",
              "camt.086"
            ]
          },
          "version": {
            "type": "string",
            "description": "Schema-Version, z. B. 08."
          },
          "statements": {
            "type": "integer"
          },
          "items": {
            "type": "integer",
            "description": "Buchungen bzw. Services (camt.086)."
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Maschinencode der Prüfregel."
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning",
                    "info"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Deutsche Meldung."
                },
                "path": {
                  "type": "string",
                  "description": "Punkt-Pfad in das gelesene Modell."
                }
              },
              "required": [
                "code",
                "severity",
                "message"
              ]
            }
          },
          "xsd": {
            "type": "object",
            "description": "Schemaprüfung über den Validierungsdienst. available=false heißt: nicht verfügbar, das Urteil beruht dann nur auf den Prüfregeln.",
            "properties": {
              "available": {
                "type": "boolean"
              },
              "ruleset": {
                "type": "string",
                "description": "Prüfgrundlage, z. B. iso.20022:camt053:08."
              },
              "valid": {
                "type": "boolean"
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "valid",
                  "valid_with_warnings",
                  "invalid"
                ]
              },
              "errorCount": {
                "type": "integer"
              },
              "warningCount": {
                "type": "integer"
              },
              "findings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "severity": {
                      "type": "string",
                      "enum": [
                        "error",
                        "warning",
                        "info"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "line": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "column": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "location": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "code",
                    "severity",
                    "message"
                  ]
                }
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "available",
              "ruleset"
            ]
          },
          "verdict": {
            "type": "string",
            "enum": [
              "valid",
              "valid_with_warnings",
              "invalid"
            ]
          }
        },
        "required": [
          "name",
          "message",
          "version",
          "findings",
          "xsd",
          "verdict"
        ]
      }
    },
    "deliveryFindings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Maschinencode der Prüfregel."
          },
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "warning",
              "info"
            ]
          },
          "message": {
            "type": "string",
            "description": "Deutsche Meldung."
          },
          "path": {
            "type": "string",
            "description": "Punkt-Pfad in das gelesene Modell."
          }
        },
        "required": [
          "code",
          "severity",
          "message"
        ]
      }
    },
    "skipped": {
      "type": "array",
      "description": "Dateien im ZIP-Archiv, die keine unterstützte camt-Datei sind.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "reason"
        ]
      }
    },
    "verdict": {
      "type": "string",
      "enum": [
        "valid",
        "valid_with_warnings",
        "invalid"
      ]
    },
    "schemaChecked": {
      "type": "boolean",
      "description": "false, wenn die Schemaprüfung für mindestens eine Datei nicht verfügbar war."
    },
    "billing": {
      "type": "object",
      "description": "Womit der Aufruf bezahlt wurde: free_quota (Freikontingent), subscription (Zahlungsverkehr-Abo), check_block (Prüfblock: 1 Credit für 10 Prüfungen) oder credit (Guthaben).",
      "properties": {
        "via": {
          "type": "string",
          "enum": [
            "free_quota",
            "subscription",
            "check_block",
            "credit"
          ]
        },
        "freeRemaining": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Verbleibende kostenlose Aufrufe im laufenden Zeitraum (Europe/Berlin); beim Abo null."
        },
        "freePeriod": {
          "type": "string",
          "enum": [
            "day",
            "month"
          ],
          "description": "Zeitraum des Freikontingents: day beim Prüfen, month beim Auslesen."
        },
        "checkBlockRemaining": {
          "type": "integer",
          "description": "Nur bei via check_block: offene Prüfungen im Prüfblock nach diesem Aufruf."
        },
        "creditsCharged": {
          "type": "integer",
          "description": "Abgebuchte Credits: bei via credit und beim Kauf eines neuen Prüfblocks."
        },
        "refunded": {
          "type": "boolean",
          "description": "true, wenn der Aufruf zurückgebucht wurde, weil die Schemaprüfung nicht erreichbar war."
        }
      },
      "required": [
        "via",
        "freeRemaining",
        "freePeriod"
      ]
    }
  },
  "required": [
    "files",
    "deliveryFindings",
    "skipped",
    "verdict",
    "billing"
  ]
}
🟢parse_bank_statement(xml, file_base64, filename)

Liest Kontoauszüge, Kontoberichte und Avise (camt.052, camt.053, camt.054, Versionen .02 und .08) und Gebührenabrechnungen (camt.086, .01 bis .05) in strukturiertes JSON; auch mehrere Dateien als ZIP. 052/053/054: Konten, Salden und Buchungen (Buchungs- und Valutadatum, Betrag, Währung, Soll/Haben, je Transaktion Gegenpartei mit IBAN, Verwendungszweck, End-to-End-Referenz, Buchungscode BkTxCd mit GVC). 086: Abrechnungen mit Services und Summen je Währung. Kostenlos bis 5 Aufrufe pro Monat und Konto. Mit dem Zahlungsverkehr-Abo (Feature payments) ohne Limit. Ohne Abo kostet jeder weitere Aufruf 1 Credit. Ein Konto (API-Key oder OAuth) ist immer nötig.

Input Schema

{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "description": "Die Datei als XML-Text (max. 10 MB). Alternativ 'file_base64'."
    },
    "file_base64": {
      "type": "string",
      "contentEncoding": "base64",
      "description": "Die Datei Base64-kodiert: eine XML-Datei oder ein ZIP mit mehreren XML-Dateien (max. 10 MB). Alternativ 'xml'."
    },
    "filename": {
      "type": "string",
      "description": "Optionaler Dateiname, erscheint in den Meldungen."
    }
  },
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Eine gelesene Datei. statements folgt dem Modell aus @erechnung/camt: bei camt.052/053/054 je Auszug account, balances, summary und entries (bookingDate, valueDate, amount, currency, creditDebit, status, bankTxCode mit gvc, transactions[] mit counterparty, remittance, refs.endToEndId); bei camt.086 je Abrechnung account, services, taxRegions, balances.",
        "properties": {
          "name": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "enum": [
              "camt.052",
              "camt.053",
              "camt.054",
              "camt.086"
            ]
          },
          "version": {
            "type": "string"
          },
          "header": {
            "type": "object"
          },
          "statements": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "totals": {
            "type": "array",
            "description": "Nur camt.086: Summen je Preiswährung.",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string"
                },
                "services": {
                  "type": "integer"
                },
                "net": {
                  "type": "number"
                },
                "waived": {
                  "type": "number"
                },
                "tax": {
                  "type": "number"
                },
                "gross": {
                  "type": "number"
                }
              }
            }
          },
          "settlementTotals": {
            "type": "array",
            "description": "Nur camt.086: Belastung in abweichender Abrechnungswährung.",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "number"
                },
                "currency": {
                  "type": "string"
                },
                "services": {
                  "type": "integer"
                }
              }
            }
          },
          "parseFindings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Maschinencode der Prüfregel."
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning",
                    "info"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Deutsche Meldung."
                },
                "path": {
                  "type": "string",
                  "description": "Punkt-Pfad in das gelesene Modell."
                }
              },
              "required": [
                "code",
                "severity",
                "message"
              ]
            }
          }
        },
        "required": [
          "name",
          "message",
          "version",
          "header",
          "statements",
          "parseFindings"
        ]
      }
    },
    "skipped": {
      "type": "array",
      "description": "Dateien im ZIP-Archiv, die keine unterstützte camt-Datei sind.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "reason"
        ]
      }
    },
    "billing": {
      "type": "object",
      "description": "Womit der Aufruf bezahlt wurde: free_quota (Freikontingent), subscription (Zahlungsverkehr-Abo), check_block (Prüfblock: 1 Credit für 10 Prüfungen) oder credit (Guthaben).",
      "properties": {
        "via": {
          "type": "string",
          "enum": [
            "free_quota",
            "subscription",
            "check_block",
            "credit"
          ]
        },
        "freeRemaining": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Verbleibende kostenlose Aufrufe im laufenden Zeitraum (Europe/Berlin); beim Abo null."
        },
        "freePeriod": {
          "type": "string",
          "enum": [
            "day",
            "month"
          ],
          "description": "Zeitraum des Freikontingents: day beim Prüfen, month beim Auslesen."
        },
        "checkBlockRemaining": {
          "type": "integer",
          "description": "Nur bei via check_block: offene Prüfungen im Prüfblock nach diesem Aufruf."
        },
        "creditsCharged": {
          "type": "integer",
          "description": "Abgebuchte Credits: bei via credit und beim Kauf eines neuen Prüfblocks."
        },
        "refunded": {
          "type": "boolean",
          "description": "true, wenn der Aufruf zurückgebucht wurde, weil die Schemaprüfung nicht erreichbar war."
        }
      },
      "required": [
        "via",
        "freeRemaining",
        "freePeriod"
      ]
    }
  },
  "required": [
    "files",
    "skipped",
    "billing"
  ]
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded9 tools
verifiedversion not recorded6 tools
verifiedversion not recorded6 tools