Skip to main content
POST
Check if a PDF is an invoice

Body

multipart/form-data
file
file

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.

fileName
string | null

Original file name of the uploaded document.

isEnergyInvoice
boolean

True if the document is an energy supply invoice / vyúčtování / výkup (electricity or gas).

confidence
number<double>

Model confidence in isEnergyInvoice, 0.0–1.0.

supplier
string | null

Supplier name if recognised, otherwise empty.

energyType
string | null

electricity | gas | both | "" (unknown / not an invoice).

method
string | null

How the verdict was reached: "text" (page-1 text, the cheap path) or "document" (image fallback for scans).