Facturae API
POST /v1/invoices/validate checks a Facturae file against the official schema and the calculation formulas it defines (FAC-R01 to FAC-R11, FAC-B01 to FAC-B05). If the file is signed, the XAdES signature is verified and its certificate checked against the EU trusted lists.
Convert EN 16931 or XRechnung invoices to Facturae 3.2.2 with POST /v1/invoices/convert?target=facturae, passing Spanish data that EN 16931 does not carry, such as person and residence types, the province or FACe centres, as options. Facturae converts back to EN 16931 UBL or CII; withheld taxes such as IRPF and other Facturae-only data are listed, and the conversion runs only when you accept the loss.
Converted Facturae files are not signed: FACe needs a XAdES signature with the issuer's certificate, which this service does not hold. The result carries the warning facturae_unsigned.
curl https://einvoiceengine.com/v1/invoices/parse \ -H "Authorization: Bearer $EINV_KEY" \ -H "Content-Type: application/xml" \ --data-binary @invoice.xml
Supported here
| Format | Versions | Checks |
|---|---|---|
| Facturae 3.2 / 3.2.1 / 3.2.2 (Spain) supported | 3.2.2; 3.2.1; 3.2 | XML well-formedness, Facturae XML Schema of the version (Ministerio de Hacienda), Calculation rules defined in the official schema documentation (line totals, invoice totals, batch totals): FAC-R01..R11, FAC-B01..B05, XAdES signature: presence (FAC-S01, warning), cryptographic integrity of every signed reference and the signature value, coverage of the whole document (FAC-S02, FAC-S03), certificate validity period at signing time (FAC-S04), Signing certificate trust (hosted API): issued under a qualified certification service (CA/QC) granted on the Spanish trusted list at signing time, reached through the signature-verified EU List of Trusted Lists (FAC-SIG-TRUST); not revoked at signing time, by OCSP with CRL fallback (FAC-SIG-REVOKED); unavailable lists or revocation services give a warning (FAC-SIG-TRUST-UNKNOWN) |
Full list: supported formats and limitations.
Questions
Do you submit invoices to FACe?
No. The API validates and converts. Signing and submission stay with the issuer.
Which invoices can be converted to Facturae?
Invoices (380) and self-billed invoices (389). Credit notes and corrective invoices are refused with unsupported_conversion, because Facturae corrective data is not part of EN 16931.
Does the signature check contact anyone?
The revocation check asks the certificate authority (OCSP, falling back to the revocation list) and sends it the certificate's serial number. It can be switched off per request with revocationCheck=false.
E-Invoicing API