Export E-Invoice XML
einvoice_exportExport invoices to e-invoicing XML in multiple formats including Facturae, XRechnung, PEPPOL, and FatturaPA. Supports signed XML for Spanish FACe/AEAT submission.
Instructions
Export an invoice as e-invoicing XML in a specific format. Supports Facturae (ES B2G), XRechnung-CII (DE), XRechnung-UBL (DE), Factur-X profiles (FR), FatturaPA (IT), PEPPOL-BIS-3 (EU network), UBL and CII (generic). For Facturae, set signed=true to get XAdES-enveloped XML for FACe/AEAT submission. Returns a signed download URL valid for 24 hours.
/ Exporta una factura como XML de facturacion electronica en el formato especificado. Para Facturae con signed=true devuelve XML firmado XAdES para envio a FACe/AEAT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | Frihet invoice ID to export / ID de la factura a exportar | |
| format | Yes | E-invoice format. Choose based on recipient country: ES B2G→facturae, DE→xrechnung-cii/ubl, FR→facturx-*, IT→fatturapa, EU PEPPOL→peppol-bis-3, generic→ubl or cii / Formato de factura electronica. | |
| signed | No | If true, returns XAdES-enveloped signed XML (Facturae only). Requires workspace signing certificate configured. / Si true, devuelve XML firmado XAdES (solo Facturae). Requiere certificado de firma configurado. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xmlUrl | Yes | Signed URL to download the e-invoice XML (valid 24h) | |
| filename | Yes | Suggested filename (e.g. INV-2026-001-facturae.xml) | |
| format | Yes | E-invoice format used | |
| signed | Yes | Whether XAdES signature was applied (Facturae only) |