Extraction Invoice
po_extraction_invoiceWRITES DATA. Creates or changes data in the workspace. Extract invoice fields from a document (starts a job). May reach systems outside PaperOffice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | AI processing tier (flat pricing). Basic=OCR+Vision, Premium=+AI Thinking, Ultra=+AI Reasoning. per/per-Max variants add higher page limits. | premium |
| pofid | No | PaperOffice File ID of an existing document in the DMS. Alternative to upload_id/file_url — exactly one file input is required. | |
| file_url | No | Direct URL to download the file from. Alternative to upload_id/pofid — exactly one file input is required. | |
| priority | No | LEGACY queue weight (numeric). Prefer processing_lane (Start-SLA). If processing_lane is set, the lane wins. Do not use as the public SLA product. | |
| upload_id | No | Upload ID from po_documents_upload_url_get (preferred file input method). Exactly one file input is required: upload_id, file_url or pofid. | |
| async_only | No | Force async: same as client_wait=false. Returns job_id immediately; poll GET /job/get/{job_id}. | |
| idp_fields | No | OPTIONAL: Additional fields as JSON, e.g., {"key":"has_stamp","description":"Is there a stamp?"} | |
| client_wait | No | Connection hold: true (default) = API holds this HTTP request while the job runs, up to the dynamic pipeline timeout (priority, pages, pipeline type; minimum about 20s, infrastructure cap about 295s). Returns the finished result when ready, or HTTP 202 with job_id and poll_url if the hold is exceeded. false = immediate job_id. | |
| idp_collection | No | IDP template name. Default: invoice (English). For localized versions use the dedicated tools (e.g. the German/DATEV-optimized extraction profile in Document AI). Advanced: append :lang:LOCALE for custom localization e.g. invoice:fr:FR | invoice |
| processing_lane | No | Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla. |