InvoiceExtraction

Check if a PDF is an invoice

Changed on

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.

post/api/v1/invoice-extraction/validate

Request

  • Base URL
    https://api.partner.cubee.cz
  • URL
    https://api.partner.cubee.cz/api/v1/invoice-extraction/validate
  • Auth
    none required

Request body multipart/form-data

filestring binary

Response

OK

fileNamestring nullable

Original file name of the uploaded document.

isEnergyInvoiceboolean

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

confidencenumber double

Model confidence in isEnergyInvoice, 0.0–1.0.

supplierstring nullable

Supplier name if recognised, otherwise empty.

energyTypestring nullable

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

methodstring nullable

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

Changes