generate_invoice_be
Generate a valid UBL 2.1 Belgian e-invoice XML from structured data, applying the correct Peppol profile for submission to the Peppol network or Mercurius platform.
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 |
|---|---|---|---|
| invoice_data | Yes | Invoice fields matching the BEInvoice schema | |
| profile | No | Target profile: 'peppol-bis-3' (default) or 'pint-be' | peppol-bis-3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||