Extract e-invoice data
extract_invoiceRead-onlyIdempotent
Extract invoice parties, dates, lines, totals and VAT as JSON for bookkeeping or matching.
Use validate_invoice for compliance; this performs no OCR or recalculation. Supply one source:
nonblank xml overrides document_base64 without inspecting it, so omit xml to extract a PDF's
attachment. include_xml returns that selected source for archiving or validation, not XML
reconstructed from fields. Extracted fields need mapping before use as generate_invoice input.
Returns fields and format/profile metadata, plus PDF metadata for PDF input. Missing business values
remain null; numeric values are strings. Missing input, invalid base64, malformed/unrecognized XML
or a PDF without embedded XML returns a tool error, not an empty extraction.
Requires a trial, prepaid or subscription allowance via OAuth or API key; success consumes one
operation, errors consume none. Nothing is stored or sent.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | CII or UBL XML as unencoded text. | |
| include_xml | No | Include source XML text in the result; this can substantially increase response size. | |
| document_base64 | No | Standard base64 of a Factur-X PDF, CII XML or UBL XML file; no data-URI prefix. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||