LedgerLou Docs ist für Desktop optimiert.

Bitte öffne diese Seite auf einem Gerät mit breiterem Bildschirm.

Kreditoren · Offene Posten & OCR

Rechnung per OCR extrahieren

Liest ein hochgeladenes Dokument per OCR und extrahiert strukturierte Rechnungsfelder (Lieferant, Beträge, Positionen, Fälligkeiten). Das Ergebnis wird auf dem Dokument als ocr_result gespeichert.

extract_invoice_data
Authorization
Authorization string header erforderlich API-Key im Format ll_.... Übergabe als Bearer Token im OAuth-Flow.
Scopes
kreditoren:readjournal:write
Parameter
document_id string (uuid) erforderlich ID des zuvor hochgeladenen Dokuments
Antwort
200
Erfolgreich
MCP extract_invoice_data
JSON
{
  "tool": "extract_invoice_data",
  "params": {
    "document_id": "<string>"
  }
}
200 Response
JSON
{
  "vendor_name": "<string>",
  "vendor_vat_id": "<string>",
  "invoice_number": "<string>",
  "invoice_date": "<string>",
  "total_net": 1,
  "total_tax": 1,
  "total_gross": 1,
  "currency": "<string>",
  "line_items": [
    {
      "description": "<string>",
      "quantity": 1,
      "unit_price": 1,
      "tax_rate": 1,
      "line_total": 1
    }
  ]
}