parse_ubl_invoice_be
Converts Peppol BIS 3.0 or EU PINT UBL 2.1 XML invoices into structured data with EN 16931 fields and Belgian extensions, returning parsed invoice details or a clear parse error.
Instructions
Parse a UBL 2.1 XML invoice into a structured dict.
Accepts a Peppol BIS Billing 3.0 or EU PINT v1.0.1 UBL 2.1 document and extracts the EN 16931 core field set (header, parties, lines, tax breakdown, totals) plus Belgian extensions (OGM/VCS reference, endpoint scheme info).
Returns {"success": true, "invoice": {...}, "be_extensions": {...}, "warnings": []}
on success, or {"success": false, "error": "..."} on parse failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_content | Yes | Raw UBL 2.1 XML invoice content (Peppol BIS 3.0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||