parse_cii_invoice
Parse CII XML invoices (Factur-X, ZUGFeRD) into a structured EN 16931 dict for inspection and verification.
Instructions
Parse a CII CrossIndustryInvoice XML string into an EN 16931 structured dict.
Extracts the EN 16931 core field set. Italian national fields are returned with their ItalianInvoice defaults since CII does not carry them.
Use this to inspect Factur-X / ZUGFeRD invoices, or to round-trip the output of generate_cii_invoice() for verification.
On success returns the ItalianInvoice fields as a JSON-serialisable dict. On failure returns {'error': str}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_string | Yes | CII CrossIndustryInvoice XML string to parse. Returns an EN 16931 field dict. National extensions are silently ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||