Document Inbox
List Inbox Documents
Return a unified, paginated, descending-by-created_at list combining customer PO and supplier invoice OCR extractions. Each item is normalized to the same shape so the frontend can render a single mixed-type table.
Get Pending Count (Badge)
Lightweight count of all extractions currently in 'pending_review' status (sales + purchase). Polled by the navigation drawer every 60 seconds to render the inbox badge.
Retry Failed Extraction
Re-dispatch OCR processing for a failed extraction. Path param `type` must be one of `customer_po` or `supplier_invoice` (regex-constrained); `id` is the matching extraction ID.
Bulk Delete Inbox Documents
Bulk-delete a polymorphic mix of OCR extractions from the unified Document Inbox. Powers the bulk-actions toolbar shown when rows are selected in the inbox UI.
Get Siblings (Prev/Next Navigation)
Returns the previous and next document in the unified inbox relative to the given extraction. Powers the prev/next pager on the OCR review pages so the user can walk through the queue without bouncing back to the inbox list.