Extract e-invoice data
extract_invoiceRead an e-invoice and return its business data as JSON: number, dates, seller, buyer, totals, VAT breakdown, lines.
Use to get the content of a received invoice (Factur-X PDF, CII or UBL XML) for bookkeeping, matching
or summaries. Does not judge compliance: call validate_invoice for that. Read-only, nothing stored.
Returns {profile, fields{...}} and, with include_xml, the XML text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | CII or UBL XML as plain text; alternative to document_base64, give exactly one | |
| include_xml | No | Also return the raw XML text (large); default false returns only the parsed fields | |
| document_base64 | No | Factur-X PDF (the embedded XML is read) or a CII/UBL XML file, base64 encoded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||