es__generate_b2b_einvoice_es
Generate a B2B electronic invoice compliant with EN 16931 in UBL 2.1 or Facturae 3.2.2 formats, as required by Spanish Ley 18/2022 'Crea y Crece'.
Instructions
Genera una factura B2B conforme a EN 16931 en formato UBL 2.1 o Facturae 3.2.2 según la Ley 18/2022 'Crea y Crece'. El reglamento de desarrollo está pendiente de publicación.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | Datos de la factura. | |
| format | No | Formato de salida: 'ubl' (por defecto) o 'facturae'. | ubl |
Implementation Reference
- B2BFormat StrEnum defining the two allowed output formats: 'ubl' and 'facturae'.
class B2BFormat(StrEnum): """Output format for Crea y Crece B2B e-invoices (Ley 18/2022).""" ubl = "ubl" facturae = "facturae"