Extract invoice via OCR
Reads an uploaded document via OCR and extracts structured invoice fields (vendor, amounts, line items, due dates). The result is stored on the document as ocr_result.
extract_invoice_data
Authorization
Authorization string header required API key in the format
ll_.... Pass as a Bearer token in the OAuth flow. Scopes
kreditoren:readjournal:write
Parameters
document_id string (uuid) required ID of the previously uploaded document
Response
200
Success
MCP
JSON extract_invoice_data {
"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
}
]
}