parse_ubl_invoice_be
Parse a UBL 2.1 XML invoice into structured fields, extracting EN 16931 core data and Belgian extensions (OGM/VCS reference). Returns parsed invoice or 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 | |||