Export E-Invoice XML
einvoice_exportExport invoices to e-invoicing XML in formats like Facturae, XRechnung, and PEPPOL. Optionally produce XAdES-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 |
|---|---|---|---|
| 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. | |
| invoiceId | Yes | Frihet invoice ID to export / ID de la factura a exportar |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Raw e-invoice XML content (the document itself, returned inline by the CF) | |
| format | Yes | E-invoice format used (echoes the requested format) | |
| signed | Yes | Whether XAdES signature was applied (Facturae + signed=true only) | |
| filename | Yes | Suggested filename (e.g. INV-2026-001_Facturae.xml) | |
| contentType | Yes | MIME type of the XML payload (application/xml) |