Get Latest Attachment Extraction
GET/api/vendor-credits/:vendorCredit/attachments/:attachment/ocr
Get the latest OCR extraction for a vendor credit attachment, including extracted header, matched lines, and related records. Returns data: null (200) when the attachment has never been scanned. Returns 404 if the attachment does not belong to the vendor credit.
Classification fields: document_type (credit_memo | invoice | unknown), detection_signals (array of raw classifier signals, e.g. keyword:credit memo, doc_number:CM prefix, total:negative; null when not classified) and auto_routed (true when the document arrived via the supplier-invoice intake and was automatically routed to the credit memo queue by the document type classifier).
Request
Responses
- 200
OK
Response Headers
Content-Type