Apply transaction to invoices
apply_transactionApply client credit from an existing transaction to one or more invoices in the same currency.
Instructions
Apply an existing transaction's unapplied balance (client credit) to one or more invoices in the same currency. Wraps Transactions.apply.
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": {
"transaction_id": "<transaction_id>",
"amounts": "<amounts>"
},
"name": "apply_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amounts | Yes | ||
| transaction_id | Yes |