transform_to_ubl
Transform a structured JSON invoice to UBL 2.1 XML without validation, for separate validation or direct submission to e-invoicing platforms.
Instructions
Convert a structured JSON invoice payload to UBL 2.1 XML.
Unlike generate_invoice_be, this tool does not run validation after
transformation. Intended as a conversion step when the caller will validate
separately or submit directly to a platform that performs its own validation.
Returns a dict with:
xml: the generated UBL 2.1 XML stringwarnings: list of non-fatal issues detected during transformation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Source invoice data matching the BEInvoice schema |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||