Retry Failed Extraction
POST/api/document-inbox/customer_po/:extraction_id/retry
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.
Validations (return 422):
- Extraction status must be 'failed'
- Original file must still be present (file_path != null)
- type must be customer_po or supplier_invoice
On success: resets the extraction status to 'processing', clears error_message, dispatches the appropriate OCR job (ProcessCustomerPOOcrJob or ProcessSupplierInvoiceEmailOcrJob), and returns:
{ "message": "Retry queued." }
Request
Responses
- 200
Successful response