generate_invoice_be
Generate a valid UBL 2.1 Belgian e-invoice XML from structured data, ready for Peppol network or Mercurius platform submission.
Instructions
Generate a valid UBL 2.1 Belgian e-invoice XML document from structured data.
Applies the correct customizationID and profileID for the selected Belgian Peppol profile. The output XML is ready for submission to the Peppol network or the Mercurius platform.
Returns a dict with:
xml: the generated UBL 2.1 XML stringcustomization_id: the UBL customizationID applied (BT-24)profile_id: the UBL profileID applied (BT-23)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Target profile: 'peppol-bis-3' (default) or 'pint-eu' (EU PINT v1.0.1) | peppol-bis-3 |
| invoice_data | Yes | Invoice fields matching the BEInvoice schema |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||