Propose recording an invoice payment
invoices_collect[Invoicing changes] Propose recording payments (incasare) on an issued invoice: bank order (Ordin de plata), receipt (Chitanta, needs receipt_series), card, cash, etc. One payment with type/value/date/document_number, or several in payments (for example several bank orders that paid one invoice); without value the whole invoice is collected. Refused when the payments exceed the invoice total: an advance larger than the invoice stays for the next invoice. Simulated first; nothing is recorded until the seller approves. Works on: Demo invoicing (sample data).
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": {
"series": "<series>",
"number": "<number>"
},
"name": "invoices_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, the day the money arrived. Default: today. | |
| type | No | Default: Ordin de plata. | |
| value | No | Default: the invoice total. | |
| number | Yes | ||
| series | Yes | ||
| account | No | Account id from list_accounts. Optional when only one account is connected. | |
| mentions | No | ||
| payments | No | Several payments on the same invoice, instead of the single-payment fields. | |
| receipt_series | No | Receipt series, for type Chitanta. | |
| document_number | No | Bank order / payment document number (required unless type is Chitanta). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||