API Factur-X
Valide PDF Factur-X e o seu XML CII: POST /v1/invoices/validate extrai o factur-x.xml, aplica as regras do perfil declarado (de MINIMUM a EXTENDED, Factur-X 1.09.2), as regras francesas BR-FR quando o quadro de faturação (BT-23) é francês, e verifica o PDF/A-3 com o veraPDF. Cada constatação inclui o identificador da regra, o texto oficial, uma explicação e a linha.
Crie um PDF Factur-X a partir de JSON (POST /v1/invoices/generate?target=zugferd-facturx) ou converta para ele uma fatura EN 16931 em UBL ou CII (POST /v1/invoices/convert?target=zugferd-facturx): um PDF/A-3b com uma página de fatura legível e o CII incorporado como factur-x.xml, validado novamente antes de ser devolvido. As faturas Factur-X BASIC, EN 16931 e EXTENDED convertem-se para UBL; se um dado não puder ser transposto, a conversão para e indica-o.
A API prepara e verifica documentos. Não é uma plataforma aprovada (PA): a transmissão a clientes e à administração fiscal, e o e-reporting, passam pela sua plataforma.
curl https://einvoiceengine.com/v1/invoices/parse \ -H "Authorization: Bearer $EINV_KEY" \ -H "Content-Type: application/xml" \ --data-binary @invoice.xml
Suportado aqui
| Formato | Versões | Verificações |
|---|---|---|
| EN 16931 core (UBL 2.1) suportado | 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 suportado | 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) suportado | 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 suportados e limitações.
API por formato
Perguntas
Que perfil tem um Factur-X gerado?
EN 16931, o perfil que contém a fatura europeia completa. O resultado é um PDF/A-3b com factur-x.xml, codificado em base64 na resposta JSON.
O destino ZUGFeRD é o mesmo que Factur-X?
Sim. O destino chama-se zugferd-facturx porque os dois nomes descrevem o mesmo ficheiro; o XML incorporado chama-se factur-x.xml.
Posso ler um Factur-X recebido como JSON?
Sim. POST /v1/invoices/parse devolve em JSON os dados EN 16931 da fatura incorporada.
EInvoiceEngine