Raw schema
{
"type": "object",
"properties": {
"seller_name": {
"type": "string",
"description": "Seller legal name / denominazione (CedentePrestatore)."
},
"seller_vat": {
"type": "string",
"description": "Seller Partita IVA (P.IVA), 11 digits, e.g. 12345678903. IT prefix optional."
},
"seller_tax_code": {
"type": "string",
"description": "Optional seller Codice Fiscale (11 digits for companies or 16 chars for individuals)."
},
"seller_address": {
"type": "string",
"description": "Seller street address (Sede/Indirizzo)."
},
"seller_cap": {
"type": "string",
"description": "Seller postal code / CAP, 5 digits."
},
"seller_city": {
"type": "string",
"description": "Seller city / Comune."
},
"seller_province": {
"type": "string",
"description": "Optional seller province, 2-letter code (e.g. MI, RM)."
},
"seller_regime": {
"type": "string",
"description": "Seller tax regime code (RegimeFiscale). Default RF01 (ordinario). Others: RF19 (forfettario), etc."
},
"customer_name": {
"type": "string",
"description": "Buyer legal name / denominazione (CessionarioCommittente)."
},
"customer_vat": {
"type": "string",
"description": "Buyer Partita IVA (P.IVA), 11 digits. Provide this and/or customer_tax_code."
},
"customer_tax_code": {
"type": "string",
"description": "Buyer Codice Fiscale (16 chars for individuals, 11 digits for companies). Provide this and/or customer_vat."
},
"customer_address": {
"type": "string",
"description": "Buyer street address (Sede/Indirizzo)."
},
"customer_cap": {
"type": "string",
"description": "Buyer postal code / CAP, 5 digits."
},
"customer_city": {
"type": "string",
"description": "Buyer city / Comune."
},
"customer_province": {
"type": "string",
"description": "Optional buyer province, 2-letter code."
},
"customer_country": {
"type": "string",
"description": "Buyer country code (Nazione). Default IT."
},
"codice_destinatario": {
"type": "string",
"description": "Recipient SdI Codice Destinatario, 7 chars. Default 0000000 (recipient retrieves from the tax drawer / cassetto fiscale, or set pec_destinatario)."
},
"pec_destinatario": {
"type": "string",
"description": "Optional recipient PEC email โ used when codice_destinatario is 0000000 to route the invoice by certified email."
},
"invoice_number": {
"type": "string",
"description": "Invoice number (Numero). Auto-generated if omitted."
},
"issue_date": {
"type": "string",
"description": "Invoice date (Data), YYYY-MM-DD. Default: today (UTC)."
},
"document_type": {
"type": "string",
"description": "FatturaPA TipoDocumento. Default TD01 (fattura). Use TD04 for a credit note (nota di credito)."
},
"currency": {
"type": "string",
"description": "Document currency (Divisa). Default EUR."
},
"lines": {
"type": "array",
"minItems": 1,
"description": "Invoice line items. Each: description, unit_price (net, IVA-exclusive, EUR), vat_rate (22|10|5|4), optional quantity (default 1).",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Line description (Descrizione)."
},
"unit_price": {
"type": "number",
"description": "Net unit price in EUR, IVA-exclusive (PrezzoUnitario)."
},
"vat_rate": {
"type": "number",
"description": "IVA rate percent: 22 (ordinaria), 10, 5, or 4 (ridotte)."
},
"quantity": {
"type": "number",
"description": "Quantity (Quantita). Default 1."
}
},
"required": [
"description",
"unit_price",
"vat_rate"
]
}
}
},
"required": [
"seller_name",
"seller_vat",
"seller_address",
"seller_cap",
"seller_city",
"customer_name",
"customer_address",
"customer_cap",
"customer_city",
"lines"
]
}