Process invoice with OCR for the authoring flow (v3, async)
Starts an async background job that extracts a Swiss-shaped invoice (parties, per-line MWST rate, QR reference type, Swico tags) from a base64-encoded document. Unlike v1/v2 it resolves no counterparty and creates no draft transfer: the extracted invoice is returned so the client can prefill the v3 create-invoice form for user review and correction. Requires the Bedrock language-model driver. Returns JobResponseV3 with job_id; poll GET /v3/invoices/ocr/{id} for the result when complete.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v3/invoices/ocr" \ -H "Content-Type: application/json" \ -d '{ "base64_file": "string" }'{
"job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
"status": 0,
"upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
"result": {
"invoice_number": "string",
"reference": "string",
"reference_type": "string",
"reference_number": "string",
"vat_number": "string",
"payment_conditions": "string",
"currency": "string",
"issue_date": "string",
"due_date": "string",
"creditor": {
"name": "string",
"email": "string",
"address": "string",
"iban": "string",
"bic": "string",
"bank": "string"
},
"debtor": {
"name": "string",
"email": "string",
"address": "string",
"iban": "string",
"bic": "string",
"bank": "string"
},
"items": [
{
"title": "string",
"description": "string",
"quantity": "string",
"price": "string",
"mwst_rate": "string"
}
],
"subtotal": "string",
"discount": "string",
"shipping": "string",
"vat_amount": "string",
"total": "string"
},
"message": "string"
}