Skip to content

Da XML della fattura a JSON

L'endpoint di parsing legge UBL, CII o un PDF ZUGFeRD / Factur-X e restituisce per tutti un'unica struttura JSON che segue i business term EN 16931: venditore, acquirente, righe, riepilogo IVA, totali, istruzioni di pagamento.

Gli importi restano stringhe decimali esatte. Tutto ciò che il modello non può contenere viene elencato come avviso con il relativo percorso e la riga, così nulla scompare senza segnalazione.

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

Supportato qui

FormatoVersioniControlli
XRechnung 3.0 (UBL 2.1 Invoice / CreditNote) supportato3.0.2XML well-formedness, UBL 2.1 XML Schema, EN 16931 Schematron (CEN, UBL binding), XRechnung 3.0.2 CIUS Schematron (KoSIT)
XRechnung 3.0 (UN/CEFACT CII D16B) supportato3.0.2XML well-formedness, CII D16B XML Schema, EN 16931 Schematron (CEN, CII binding), XRechnung 3.0.2 CIUS Schematron (KoSIT)
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)
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, EN 16931 Schematron (CEN, CII binding)

Elenco completo: formati supportati e limitazioni.

Domande

Esiste uno JSON Schema?

Sì, nel documento OpenAPI sotto components.schemas.Invoice.