User Guides
Invoice Upload AI
Upload a supplier invoice, review AI suggestions next to the PDF, and save a verified draft.
Invoice Upload AI
Upload a PDF or image. The platform suggests supplier, category, project, account, and amounts. You verify every field. Copy on every AI surface: suggested — please verify. Nothing is posted automatically.
Dashboard
| Screen | Path |
|---|---|
| Invoices list | /dashboard/invoices |
| Upload | /dashboard/invoices/upload |
| Review (PDF + form) | /dashboard/invoices/upload/[id] |
Suggested values are amber until you touch or confirm them. Supplier, total, currency and VAT each need an explicit confirm click before save. Fields the model could not read stay empty.
Money is integer minor units (cents) with an ISO-4217 currency. €10.50 is 1050.
API (authenticated)
| Method | Path | Notes |
|---|---|---|
| POST | /invoices/ai/upload | Enqueues extract. Same file → same draft. PDF/PNG/JPEG/WEBP, max 8 MiB. This route alone accepts a 12mb JSON body; other POSTs stay at the 2mb default. |
| GET | /invoices/ai/:id | Suggestions + source + citations. Source is empty while extract is still running, or when the stored MIME is not pdf/png/jpeg/webp. |
| POST | /invoices/ai/:id/confirm | Writes the draft only while status is suggested; records a flywheel decision |
Chat can call confirm_invoice_ai on a draft the form already created. Do not
upload base64 through chat.