Documentazione API

Lo schema fattura (InvoiceRequest)

Uno schema JSON per entrambe le direzioni: /v1/convert lo accetta in ingresso, /v1/read lo restituisce per le fatture in arrivo (round-trip). Copre i campi semantici EN 16931; i casi speciali passano dal passthrough XML CII.

Gruppo di campiEsempi
Intestazionenumber, typeCode (380/381/384), issueDate, dueDate, currency, buyerReference, notes
RiferimentiorderReference, contractReference, projectId, correctedInvoice
PagamentopaymentTerms, paymentMeansCode, cashDiscounts, prepaidAmount, taxCurrency
Partiseller/buyer/payee/deliveryAddress con indirizzo, vatId, iban/bic, contact, endpointId
Righeitems[] con name, quantity, unit, unitPrice, vatPercent, vatCategory, gtin, sconti/maggiorazioni
Livello documentoallowances/charges, attachments, totals

Il blocco opzionale totals viene ricalcolato lato server — uno scostamento produce un 422 dettagliato, mai una correzione silenziosa. Elenco completo dei campi: openapi.json. Esempio minimo:

{
  "number": "RE-2026-0042",
  "issueDate": "2026-07-08",
  "dueDate": "2026-08-07",
  "currency": "EUR",
  "seller": { "name": "Muster GmbH", "street": "Musterstraße 1", "zip": "4020",
              "city": "Linz", "country": "AT", "vatId": "ATU12345678",
              "iban": "AT611904300234573201" },
  "buyer":  { "name": "Beispiel GmbH", "street": "Beispielweg 2", "zip": "80331",
              "city": "München", "country": "DE", "vatId": "DE123456789" },
  "items": [ { "name": "Softwareentwicklung", "quantity": 16, "unit": "HUR",
               "unitPrice": 120.0, "vatPercent": 20 } ]
}