document_allocate
Apply an existing payment to one or more invoices or bills in an atomic batch to record exactly what it paid.
Instructions
Apply an existing payment to one or more documents in an atomic batch. Use this to record that a payment paid typed invoices or bills; account aging and document_aging both honour it. Journal-only charges take an applies_to link on the payment when it is posted, or a transaction link of kind payment afterwards.
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": {
"company": "<company>",
"source": "<source>",
"date": "<date>",
"allocations": "<allocations>"
},
"name": "document_allocate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| source | Yes | ||
| company | Yes | ||
| allocations | Yes |