transform_to_ubl
Converts structured JSON invoice data into UBL 2.1 XML for Belgian e-invoicing without built-in validation, enabling separate validation or direct submission.
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 | |||