API Factur-X

Validez vos PDF Factur-X et leur XML CII : POST /v1/invoices/validate extrait factur-x.xml, applique les règles du profil déclaré (de MINIMUM à EXTENDED, Factur-X 1.09.2), les règles françaises BR-FR lorsque le cadre de facturation (BT-23) est français, et vérifie le PDF/A-3 avec veraPDF. Chaque anomalie indique l’identifiant de la règle, le texte officiel, une explication et la ligne concernée.

Créez un PDF Factur-X à partir de JSON (POST /v1/invoices/generate?target=zugferd-facturx) ou convertissez-y une facture EN 16931 en UBL ou CII (POST /v1/invoices/convert?target=zugferd-facturx) : un PDF/A-3b avec une page de facture lisible et le CII embarqué sous le nom factur-x.xml, vérifié à nouveau avant d’être renvoyé. Les factures Factur-X BASIC, EN 16931 et EXTENDED se convertissent en UBL ; si une donnée ne peut pas être reprise, la conversion s’arrête et l’indique.

L’API prépare et vérifie les documents. Ce n’est pas une plateforme agréée (PA) : la transmission à vos clients et à l’administration fiscale, ainsi que l’e-reporting, passent par votre plateforme.

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

Pris en charge ici

FormatVersionsContrôles
EN 16931 core (UBL 2.1) pris en chargeEN 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 pris en chargeEN 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) pris en chargeProfile 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

Liste complète : formats pris en charge et limites.

Questions

Quel profil a un Factur-X généré ?

EN 16931, le profil qui porte la facture européenne complète. Le résultat est un PDF/A-3b avec factur-x.xml, encodé en base64 dans la réponse JSON.

La cible ZUGFeRD correspond-elle à Factur-X ?

Oui. La cible s’appelle zugferd-facturx parce que les deux noms désignent le même fichier ; le XML embarqué s’appelle factur-x.xml.

Puis-je lire un Factur-X reçu en JSON ?

Oui. POST /v1/invoices/parse renvoie les données EN 16931 de la facture embarquée en JSON.