Extract invoice draft from PDF, image, or XML
extract_invoice_draftSingle Orders are for businesses only (§ 14 BGB), no sale to consumers (§ 13 BGB). Consumers use a user account. Uploads an invoice file (PDF, XML, JPEG/PNG scan, CSV/XLSX) to create or update a job and extract structured EN 16931 invoice fields plus preflight field_issues (free preview). Without an API key, the first call of a new job MUST set buyer_is_business: true and accept_avv: "1.3" after your user confirmed acting as a business and accepted the AVV. Anonymous jobs default to allow_ai: false (deterministic local parsing only); set allow_ai: true only after your user explicitly consented to sending file content to Microsoft Azure OpenAI (EU).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"content_base64": "<content_base64>"
},
"name": "extract_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_ai | No | Anonymous jobs only: set true ONLY after explicit user consent to Azure OpenAI (EU) extraction; false withdraws consent. | |
| filename | Yes | File name with extension (.pdf, .xml, .jpg, .png, .csv, .xlsx). | |
| job_token | No | Optional existing job_token to re-extract or update consent on the same job. | |
| accept_avv | No | Required ("1.3") on the first anonymous Single Order upload confirming acceptance of the AVV. | |
| content_base64 | Yes | Base64-encoded file bytes (max 10 MiB decoded). | |
| buyer_is_business | No | Required (true) on the first anonymous Single Order upload confirming the user acts as a business (§ 14 BGB). |