Prepare changing the payment details
prepare_change_payment_detailsChecks a change of the details where the customers of a company pay and send e-invoices to (the electronic address of the company, the IBAN of a bank account, the default bank account) and returns a summary of the change for the user's confirmation: each change as old and new value (the new IBAN of an account and the IBAN of the new default account in full, the old ones masked), the invoice drafts that get a new electronic address and the effect of each change, with a one-time confirmation token valid for 10 minutes. 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>"
},
"name": "prepare_change_payment_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | The new IBAN of the bank account account_id; spaces are allowed and removed. | |
| account_id | No | The id of the bank account whose IBAN changes, from get_company with include "accounts"; required with iban. | |
| company_id | Yes | The id of the company, from list_companies. | |
| electronic_address | No | The new electronic address where the company receives e-invoices; only the given keys change, null removes the address. | |
| primary_account_id | No | The id of the bank account that becomes the default account of the company, from get_company with include "accounts". |