Change the bank account of a document
set_invoice_bank_accountReplaces the bank account of an invoice draft or an open proforma with the bank account of the company summarised by prepare_set_invoice_bank_account once the user has confirmed it, using its confirmation token and the same account_id. Refused, with the token used up, when the token expired or doesn't match, or the document or the chosen bank account changed after the preparation (e.g. its IBAN was edited in the app). A repeated call with the same token returns the same answer without changing anything again.
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>",
"confirmation_token": "<confirmation_token>"
},
"name": "set_invoice_bank_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The id of the bank account of the company, the same as given to prepare_set_invoice_bank_account. | |
| 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. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_set_invoice_bank_account for this document and bank account. |