API Factur-X
Valide PDF Factur-X y su XML CII: POST /v1/invoices/validate extrae factur-x.xml, aplica las reglas del perfil declarado (de MINIMUM a EXTENDED, Factur-X 1.09.2), las reglas francesas BR-FR cuando el marco de facturación (BT-23) es francés, y comprueba PDF/A-3 con veraPDF. Cada hallazgo incluye el identificador de la regla, el texto oficial, una explicación y la línea.
Cree un PDF Factur-X a partir de JSON (POST /v1/invoices/generate?target=zugferd-facturx) o convierta a él una factura EN 16931 en UBL o CII (POST /v1/invoices/convert?target=zugferd-facturx): un PDF/A-3b con una página de factura legible y el CII incrustado como factur-x.xml, validado de nuevo antes de devolverlo. Las facturas Factur-X BASIC, EN 16931 y EXTENDED se convierten a UBL; si un dato no puede trasladarse, la conversión se detiene y lo indica.
La API prepara y comprueba documentos. No es una plataforma autorizada (PA): la transmisión a clientes y a la administración tributaria, y el e-reporting, pasan por su plataforma.
curl https://einvoiceengine.com/v1/invoices/parse \ -H "Authorization: Bearer $EINV_KEY" \ -H "Content-Type: application/xml" \ --data-binary @invoice.xml
Compatible aquí
| Formato | Versiones | Comprobaciones |
|---|---|---|
| EN 16931 core (UBL 2.1) compatible | EN 16931-1:2017 (CEN artefacts 1.3.16) | XML well-formedness, UBL 2.1 XML Schema, EN 16931 Schematron (CEN, UBL binding), France: when the business process (BT-23, cbc:ProfileID) is an XP Z12-012 billing framework code (B1, S1, M1 ...), the French CTC rules BR-FR (FNFE-MPE France_RFE 1.4.0.04) and the EN 16931 rules as packaged by FNFE-MPE |
| EN 16931 core (UN/CEFACT CII D16B) — also Factur-X / ZUGFeRD 'EN 16931' profile XML compatible | EN 16931-1:2017 (CEN artefacts 1.3.16) | XML well-formedness, CII D16B XML Schema (the syntax binding of EN 16931-3-3), EN 16931 Schematron (CEN, CII binding), France: when the business process (BT-23) is an XP Z12-012 billing framework code (B1, S1, M1 ...), the UN/CEFACT CII D22B XML Schema, the EN 16931 rules as packaged by FNFE-MPE and the French CTC rules BR-FR (France_RFE 1.4.0.04) instead |
| ZUGFeRD 2.x / Factur-X 1.0 (PDF/A-3 with embedded CII XML, or the CII XML alone) compatible | Profile MINIMUM; Profile BASIC WL; Profile BASIC; Profile EN 16931 (COMFORT); Profile EXTENDED; Profile XRECHNUNG | Extraction of the embedded XML (factur-x.xml, zugferd-invoice.xml, xrechnung.xml), Factur-X 1.09.2 / ZUGFeRD 2.5 XML Schema of the profile (FNFE-MPE / FeRD), Factur-X 1.09.2 / ZUGFeRD 2.5 Schematron of the profile, including the EN 16931 rules for BASIC, EN 16931 and EXTENDED, Profile XRECHNUNG: XRechnung 3.0.2 CIUS (see XRechnung CII), France: profiles EN 16931, EXTENDED and BASIC WL whose business process (BT-23) is an XP Z12-012 billing framework code get the Factur-X 1.09.2 schema and Schematron as published by FNFE-MPE (France_RFE 1.4.0.04) plus the French CTC rules BR-FR, PDF/A-3 conformance of the PDF container (veraPDF), when the PDF checker is enabled |
Lista completa: formatos compatibles y limitaciones.
API por formato
Preguntas
¿Qué perfil tiene un Factur-X generado?
EN 16931, el perfil que contiene la factura europea completa. El resultado es un PDF/A-3b con factur-x.xml, codificado en base64 en la respuesta JSON.
¿El destino ZUGFeRD es lo mismo que Factur-X?
Sí. El destino se llama zugferd-facturx porque ambos nombres describen el mismo archivo; el XML incrustado se llama factur-x.xml.
¿Puedo leer un Factur-X recibido como JSON?
Sí. POST /v1/invoices/parse devuelve los datos EN 16931 de la factura incrustada en JSON.
EInvoiceEngine