API Factur-X

Valida i PDF Factur-X e il loro XML CII: POST /v1/invoices/validate estrae factur-x.xml, applica le regole del profilo dichiarato (da MINIMUM a EXTENDED, Factur-X 1.09.2), le regole francesi BR-FR quando il quadro di fatturazione (BT-23) è francese, e verifica PDF/A-3 con veraPDF. Ogni rilievo riporta l’identificativo della regola, il testo ufficiale, una spiegazione e la riga.

Crea un PDF Factur-X da JSON (POST /v1/invoices/generate?target=zugferd-facturx) o converti in Factur-X una fattura EN 16931 in UBL o CII (POST /v1/invoices/convert?target=zugferd-facturx): un PDF/A-3b con una pagina di fattura leggibile e il CII incorporato come factur-x.xml, verificato di nuovo prima di essere restituito. Le fatture Factur-X BASIC, EN 16931 ed EXTENDED si convertono in UBL; se un dato non può essere riportato, la conversione si ferma e lo indica.

L’API prepara e verifica i documenti. Non è una piattaforma autorizzata (PA): la trasmissione ai clienti e all’amministrazione fiscale, e l’e-reporting, passano per la tua piattaforma.

curl https://einvoiceengine.com/v1/invoices/parse \
  -H "Authorization: Bearer $EINV_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @invoice.xml

Supportato qui

FormatoVersioniControlli
EN 16931 core (UBL 2.1) supportatoEN 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 supportatoEN 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) supportatoProfile MINIMUM; Profile BASIC WL; Profile BASIC; Profile EN 16931 (COMFORT); Profile EXTENDED; Profile XRECHNUNGExtraction 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

Elenco completo: formati supportati e limitazioni.

Domande

Che profilo ha un Factur-X generato?

EN 16931, il profilo che contiene la fattura europea completa. Il risultato è un PDF/A-3b con factur-x.xml, codificato in base64 nella risposta JSON.

La destinazione ZUGFeRD è la stessa di Factur-X?

Sì. La destinazione si chiama zugferd-facturx perché i due nomi indicano lo stesso file; l’XML incorporato si chiama factur-x.xml.

Posso leggere un Factur-X ricevuto come JSON?

Sì. POST /v1/invoices/parse restituisce in JSON i dati EN 16931 della fattura incorporata.