Document
Document API
Methods
Section titled “Methods”- POSTGenerate a document from a templateGenerate a document from a template
- POSTSloeDoc: a document's status, its latest reading (fields with confidence, checks, review list) and every correction m...SloeDoc: a document's status, its latest reading (fields with confidence, checks, review list) and every correction made to it.
- POSTSloeDoc: read a receipt or invoice into ReceiptV1 fields (vendor, VAT number, date, subtotal, VAT, total, category, l...SloeDoc: read a receipt or invoice into ReceiptV1 fields (vendor, VAT number, date, subtotal, VAT, total, category, line items), each with a confidence, plus deterministic checks (subtotal + VAT = total, 15% or 0% VAT, SA VAT number format, plausible date) and the list of fields a person must review. Pass a documentId from document.upload, or content (base64, up to 6 MB) to upload and read in one call. Cheap-first: a PDF text layer is read as text; otherwise Flash-Lite, then 3.8 Flash only for doubtful fields. Nothing is posted anywhere; the app decides.
- POSTSloeDoc: record what a person fixed or confirmed (each field keeps its before/after and who did it), and optionally m...SloeDoc: record what a person fixed or confirmed (each field keeps its before/after and who did it), and optionally mark the document verified or posted.
- POSTSloeDoc: start an upload.SloeDoc: start an upload. Returns a documentId and a one-shot upload URL (PUT the bytes with the same content type within 15 minutes). Files are kept in the EU; unattached uploads are deleted after 48 hours. Types: JPEG, PNG, WebP, HEIC, PDF; up to 15 MB.
- POSTSummarize a document or textSummarize a document or text