Skip to main content

Upload Supplier Invoice PDF

POST 

/api/purchase-invoices/ocr/upload

Upload a supplier invoice PDF to start the OCR extraction. Requires Invoice OCR to be enabled in Settings → Invoice OCR (returns 422 if not enabled).

Response 201:

{
"data": {
"extraction_id": 7,
"tracked_job_log_id": 1234,
"status": "processing"
},
"message": "OCR processing started"
}

Poll GET /purchase-invoices/ocr/{id} until status is 'pending_review' (or 'failed' / 'duplicate_detected').

Request

Responses

Successful response