Create received document (expense)
create_received_documentCreate received documents such as expenses, passive credit notes, and self-invoices by providing description, entity, date, amounts, and payments; returns the created document.
Instructions
Create a received document (expense, passive credit note...). Requires description, entity, date, amounts (amount_net/amount_vat/amount_gross) and a payments_list covering the total. Returns the created document.
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": {
"data": "<data>"
},
"name": "create_received_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The document payload. Extra Fatture in Cloud fields beyond the ones listed are passed through as-is. | |
| company_id | No | Fatture in Cloud company ID. Omit to use the default company configured for the session; discover IDs with list_companies. |