parse_fattura_semplificata_xml
Parse simplified invoice XML into structured data, extracting seller, buyer, document details, and line items. Use to inspect TD07/TD08/TD09 invoices or verify generated output.
Instructions
Parse a FatturaSemplificata XML string into a structured Python dict.
Use this to inspect simplified invoices (TD07/TD08/TD09) received from counterparties or to verify output of generate_fattura_semplificata().
Extracts: versione, transmission data, seller identity and address, buyer fiscal identifiers and optional address, document type/date/number, all DatiBeniServizi entries, and DatiFatturaRettificata if present.
On success returns {'versione': str, 'header': {...}, 'body': {...}}. On error returns {'error': ''}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_string | Yes | FatturaSemplificata XML string to parse. Accepts VFSM10 format (namespace v1.0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||