Check an electronic invoice
einvoicing_validateWrites the electronic invoice of a posted sale invoice or credit note, in the profile its company's country pack declares, and lists every rule of the format it breaks — as the format names them, word for word. Records nothing and sends nothing. A broken rule is fixed in the books (the customer's electronic address, a due date, a reference), never in the file. A profile no brick writes is refused as format_without_brick.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "einvoicing_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The posted sale invoice or credit note. list_documents finds it. | |
| include_file | No | Hand the file back too. Left out, the answer is what is wrong with it. |