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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_data": "<invoice_data>"
},
"name": "generate_invoice_ae"
}
}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 | |||