generate_invoice_ae
Generate PINT AE UBL 2.1 e-invoice XML from structured invoice data, automatically applying the correct CustomizationID, ProfileID, and all mandatory elements for UAE FTA compliance.
Instructions
Generate a PINT AE UBL 2.1 e-invoice XML document from structured data.
Applies the correct CustomizationID (BT-24) and ProfileID (BT-23) for
the selected variant. All unconditionally-mandatory PINT AE elements
are emitted: cbc:UUID, cbc:ProfileExecutionID, per-line
cac:ItemPriceExtension, and PartyLegalEntity/CompanyID
(AEParty.trade_license_number, when set).
Returns a dict with:
xml: the generated UBL 2.1 XML stringcustomization_id: the CustomizationID applied (BT-24)profile_id: the ProfileID applied (BT-23)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | No | PINT AE profile variant: 'billing' (default) or 'selfbilling' | billing |
| invoice_data | Yes | Invoice fields matching the AEInvoice schema |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||