invoice_convert
Convert ZUGFeRD or XRechnung invoices across profiles and syntaxes, including CII to UBL. Upgrade or downgrade profiles, with explicit approval to permit data loss on downgrades.
Instructions
Convert a ZUGFeRD or XRechnung invoice to a different profile or syntax.
Supports ZUGFeRD profile upgrades and downgrades, ZUGFeRD <-> XRechnung conversion, and cross-syntax CII <-> UBL transformation. Profile downgrades may result in data loss; set allow_data_loss=True to permit this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_base64 | No | Base64-encoded XML bytes. | |
| xml_content | No | Raw XML string of the source invoice. | |
| target_syntax | No | Target syntax: 'CII' or 'UBL'. UBL is only valid for XRECHNUNG. | CII |
| target_profile | Yes | One of: MINIMUM, BASIC_WL, BASIC, EN_16931, EXTENDED, XRECHNUNG. | |
| allow_data_loss | No | If True, allow profile downgrades that discard data. Discarded fields are listed in the output. If False and data loss would occur, the conversion is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||