Create company
create_companyCreates a company (the seller) of the signed-in user; the user becomes its owner. The company is created without bank accounts (create_bank_account adds them); the logo and the KSeF connection are set up 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": {
"type": "<type>",
"name": "<name>",
"address": "<address>"
},
"name": "create_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | No | The VAT settings of the company. | |
| name | Yes | The name of the company as printed on documents (one line). | |
| type | Yes | 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 | Yes | The address of the company; the country is required. | |
| contact | No | The contact data printed on documents. | |
| 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). | |
| invoice_prefix | No | The prefix of the invoice numbers; by default <year>-. 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; by default <year>-PR-. 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. | |
| electronic_address | No | The electronic address where the company receives e-invoices. | |
| 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. |