Re-run extraction on one document
Changed onRequires an accountant assigned to the customer; a person only (no service API key). Sends the document's retained file to the configured document extraction provider (the existing extraction path) and records a new extraction (metadata source accountant_re_extract, with the requesting user). Side effects: only EMPTY vendor, customer, invoice number, document date and due date are filled, never a field a person set; the stored inline extraction metadata is replaced; the document type may change to the type the extraction resolves (unless a person set it). It never writes money (money is certified only through the separate certification path), never matches, posts or creates AR/AP items. With the scoped Median Labs Vertex review enabled, a currently assigned reviewer or firm admin with legal entity access may review a clean, supported electronic receipt. Vertex receives only a locally derived financial projection and may confirm the missing receipt date. The fill is computed from the document as it is after the provider call and written only if the document did not change meanwhile. Each authorized call writes one audit log row. 404 for unassigned or missing documents and for a document without a retained file; 403 when external extraction is not allowed for the company; 503 when extraction is not configured. 409 codes: DOCUMENT_REEXTRACT_COOLDOWN (a completed extraction is less than 10 minutes old), DOCUMENT_EXTRACTION_FAILED (the provider returned nothing or a failure), DOCUMENT_CHANGED_DURING_EXTRACTION (nothing written), DOCUMENT_SOURCE_UNAVAILABLE (the retained file cannot be read).
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Response
The accountant document after extraction
Accountant document DTO (toAccountantDocumentDto); money fields follow the accountant document money projection.
Changes
- info
endpoint added
- info