Check if a PDF is an invoice
Cheap pre-flight check: is the uploaded PDF an energy invoice? Runs only the gate (no extraction), so a caller can reject obviously-wrong uploads before paying for a full extraction.
Body
Response
OK
Result of the cheap pre-flight check on an uploaded PDF — "is this actually a Czech energy invoice?" — without running the full extraction. Lets a caller (e.g. the eshop) reject obviously-wrong uploads before paying for extraction.
Original file name of the uploaded document.
True if the document is an energy supply invoice / vyúčtování / výkup (electricity or gas).
Model confidence in isEnergyInvoice, 0.0–1.0.
Supplier name if recognised, otherwise empty.
electricity | gas | both | "" (unknown / not an invoice).
How the verdict was reached: "text" (page-1 text, the cheap path) or "document" (image fallback for scans).