Change the payment details
change_payment_detailsChanges the electronic address of a company, the IBAN of a bank account and / or the default bank account as summarised by prepare_change_payment_details once the user has confirmed it, using its confirmation token and the same input. Refused, with the token used up, when the token expired or doesn't match, or these details changed after the preparation (e.g. the 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>",
"confirmation_token": "<confirmation_token>"
},
"name": "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. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_change_payment_details for the same input. | |
| 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". |