Create a company
create_companyCreates a company (the legal entity that sends invoices) in the workspace of the API key and returns its com_ ID. Run check_peppol_id first: the Peppol ID must fit the country, or the call fails. WARNING: when the KYC of the workspace is approved, the new company goes live on the real Peppol network at once, also with a ps_test_ key. Not idempotent: each call makes a new company. Free.
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": {
"name": "<name>",
"country": "<country>"
},
"name": "create_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | Bank account IBAN of the company. Optional. A document of this company with a `payment_means` that has no `iban` and no `accounts` gets this IBAN in `payment_means.iban` when, with spaces and dashes removed, it is a valid IBAN (15 to 34 characters, two letters, and the IBAN check digits). The compact value is stored. | |
| name | Yes | Legal company name. | |
| No | Contact email for the company. Optional. | ||
| tax_id | No | VAT number (e.g., `BE0123456749`). Optional. A Peppol ID in the VAT scheme of the country must be this VAT number. | |
| address | No | Company address. Optional. | |
| country | Yes | ISO 3166-1 alpha-2 country code. Must be a country with active Peppol support (e.g. `BE`); trimmed and upper-cased server-side. Unknown or non-active codes are rejected with `invalid_country`. | |
| peppol_id | No | Peppol participant identifier in `scheme:id` form (e.g. `0208:0123456749`). Required, except for a Belgian company with a `company_registration_id`: it defaults to `0208:<company_registration_id>` without dots and spaces. Without one the request fails with `missing_peppol_id`. The scheme must be active in the OpenPeppol participant identifier scheme code list and the identifier must have its format and check digit (`invalid_peppol_id`). The identifier has 1 to 130 characters: letters, digits, `-`, `.`, `_` and `~`, no whitespace; a `0208` identifier is 10 digits (`0208:0410086603`, not `0208:0410.086.603`) and a `9925` identifier is `BE` plus those digits. The scheme must belong to `country` or be international (`peppol_id_country_mismatch`). An EU VAT scheme (`99xx`) takes the VAT number with its country prefix (`9930:DE123456788`; Greece `9933` without `EL`), and it must be the VAT number in `tax_id` when `tax_id` is one (`peppol_id_tax_id_mismatch`). | |
| invoice_contact | No | The Invoice contact of the company: the default for the seller contact of a document. When a document is accepted, each of `from.contact_name`, `from.email` and `from.phone` that it leaves out gets the value here; a value of the document wins, per field. The result is stored with the document, so a later change here leaves documents already accepted as they are. Peppol requires the three fields when seller and buyer are both in Germany (DE-R-005, DE-R-006, DE-R-007). Optional. On `PATCH`, a field that is absent stays as it is, `null` for a field clears it, and `null` for the object clears the three fields. A refused value fails with `invalid_field` (400) and the field in `param` (`invoice_contact.phone`). It is separate from the company `email`, which is never put on a document. | |
| company_registration_id | No | Company registration number (e.g. KBO/CBE number). Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The com_ ID; other tools take it as company_id. | |
| name | Yes | ||
| tax_id | Yes | ||
| country | Yes | ||
| is_live | Yes | True when the company went live on the Peppol network. | |
| peppol_id | Yes | ||
| invoice_contact | Yes | The Invoice contact: the default for the seller contact name, email and phone of a document that leaves them out. |