Upload Landed Cost Invoice PDF
POST/api/landed-cost-invoices/ocr/upload
Upload a landed cost invoice PDF to start OCR extraction. Requires Invoice OCR to be enabled in Settings → Invoice OCR (returns 422 if not enabled).
Async — returns immediately with a tracked_job_log_id for progress tracking via the global job tray. Poll GET /landed-cost-invoices/ocr/{id} until status is pending_review (or failed / duplicate_detected).
Response 201:
{
"data": {
"extraction_id": 18,
"tracked_job_log_id": 9221,
"status": "processing"
},
"message": "OCR processing started."
}
Response 422 (OCR disabled):
{ "message": "Landed Cost Invoice OCR is not enabled. Please configure it in Settings → Invoice OCR." }
Request
Responses
- 200
Successful response