Prepare changing the bank account of a document
prepare_set_invoice_bank_accountChecks that the bank account of an invoice draft or an open proforma can be replaced with a bank account of the company, and returns a summary of the change for the user's confirmation: the number, type and date, the customer, the gross total, the current bank account of the document (IBAN masked), the new one (IBAN in full) and the effect (the customer is asked to pay to the new account; a change of the currency), with a one-time confirmation token valid for 10 minutes. Only an existing bank account of the company can be chosen. No data of the company or its documents is changed.
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_id": "<company_id>",
"invoice_id": "<invoice_id>",
"account_id": "<account_id>"
},
"name": "prepare_set_invoice_bank_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The id of the bank account of the company the document gets, from get_company with include "accounts". | |
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the invoice draft or open proforma, from list_invoices. |