Verify e-invoice XML
Check an invoice's e-invoice XML for errors before sending it to SDI.
MCP tool fatture_in_cloud_read → verify_einvoice
read
Runs the XML checks and returns validation errors, for example a problem in a date field. Sends nothing to SDI and changes nothing. Fix errors by editing the invoice in Fatture in Cloud, then verify again.
Parameters
| Name | Type | Description |
|---|---|---|
| company_id integer | integer | Company ID. Optional when your account has one company. |
| invoice_id integer required | integer | Invoice ID from list_invoices or create_invoice. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fatture_in_cloud_read",
"arguments": {
"operation": "verify_einvoice",
"arguments": {
"invoice_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": 88120,
"valid": false,
"validation_result": [
{
"field": "Data",
"message": "Invalid date."
}
]
},
"isError": false
}