Update company
update_companyChanges the data of a company (the seller). Only the given fields change; a nested object (address, vat, contact) changes only its given keys. document_theme sets the colour theme of new documents. The electronic address, the country, the logo and KSeF are not changed by this tool: the electronic address is changed by change_payment_details, the others are set only in the app.
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": "update_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | No | The VAT settings of the company; only the given keys change, null removes all VAT settings. | |
| name | No | The name of the company as printed on documents (one line). | |
| type | No | The legal form of the company. | |
| notes | No | Internal notes about the company, never printed on documents; null means no notes (on update it removes them). | |
| address | No | The address of the company; only the given keys change. The country can't be changed. | |
| contact | No | The contact data printed on documents; only the given keys change, null removes it. | |
| timezone | No | The time zone of the company (an IANA name of its country, e.g. Europe/Ljubljana); it sets the dates of documents. | |
| company_id | Yes | The id of the company, from list_companies. | |
| tax_number | No | The tax number of the company, digits only; null clears it. | |
| pdf_einvoice | No | Whether the PDF of issued invoices embeds the e-invoice data (ZUGFeRD / Factur-X); null means automatic (on for companies in Germany). | |
| document_theme | No | The colour theme new documents of the company take, a DOCUMENT_THEME value of get_reference_data; null means the default SLATE. A theme other than SLATE needs the theme feature of the plan of the company owner. Existing documents keep their theme. | |
| invoice_prefix | No | The prefix of the invoice numbers. It must differ from the proforma prefix: equal prefixes, or one being the other followed by digits only, would share one number counter, so proformas would take numbers from the invoice series; such a value is a validation error. | |
| proforma_prefix | No | The prefix of the proforma numbers. It must differ from the invoice prefix and the corrective invoice prefix: equal prefixes, or one being the other followed by digits only, would share one number counter, so proformas would take numbers from the invoice series; such a value is a validation error. | |
| registration_number | No | The company registration number, digits only; null clears it. | |
| proforma_validity_days | No | How many days a proforma is valid by default. |