record_sales_invoice_payment
Records a payment received against a sales invoice and applies it to a selected cash or bank account, updating receivables and account balances.
Instructions
Record a collection (payment received) against a sales invoice, into a cash/bank account.
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": {
"invoice_id": "<invoice_id>",
"account_id": "<account_id>",
"amount": "<amount>",
"date": "<date>"
},
"name": "record_sales_invoice_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Payment date (YYYY-MM-DD) | |
| amount | Yes | Amount collected | |
| account_id | Yes | Cash/bank account ID receiving the collection (see list_accounts) | |
| invoice_id | Yes | Sales invoice ID | |
| description | No | Description | |
| exchange_rate | No | Exchange rate to TRL if account currency differs from the invoice |