Tax document (invoice) details
get_tax_documentOne tax document (invoice) of the self-employed tax books, by id (from list_tax_documents): dates (invoice, operation, registration, accrual), fiscal amount, tax base and VAT (per rate when the invoice has several), VAT exemption, income-tax withholding, intra-community or reverse-charge treatment, deductible share for income tax and VAT (the document's own value or the one inherited from its category or tag), depreciation, tax-return box, and the payments linked to it. The client or supplier comes partially hidden unless reveal_third_parties is true; it is returned under untrusted with the notes and line descriptions. Read-only. Needs the self-employed module.
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": {
"id": "<id>"
},
"name": "get_tax_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tax document id. | |
| book | No | Account book id (from list_books). Optional if the user has only one. | |
| reveal_third_parties | No | Full names and tax ids of clients, suppliers and payees. Default false: they come partially hidden (first letters of each word, first and last characters of the tax id). |