Skip to main content

Company Setup

Setting Up a Company and Restoring from a Backup via REST API

Written by Lenka Haringerová

Via the REST API you can also create companies or restore from a backup.

PUT /admin/zalozeni-firmy


Creation parameters

?name=Firma

Name of the newly created company

?use-demo=true

Whether the newly created company should be populated with demo data (only for certain organization types — see below)

?country=CZ

Legislation of the newly created company (see below)

?org-type=PODNIKATELE+PU

Organization type of the newly created company (see below)

?ic=123

Company registration number (IČO) to be used for the basic setup (VAT payer status, registered office, file reference, …)

?vatid=CZ456

Company's tax identification number

The only required field is name. If the default values don't suit your needs, you also need to specify country and org-type. If ic is also specified, some additional data will be filled in from the ARES registry when the company is created.

⚠️ As usual, make sure the values are correctly encoded in the URL. The + character is part of the organization type code, not a separator.

If the company is created successfully, the response is 201 and the company's URL is in the Location header.


Supported countries and organization types

country

org-type

Description

Demo data

CZ — Czech Republic

PODNIKATELE+PU

Businesses — double-entry bookkeeping

yes

CZ

PODNIKATELE+DE

Businesses — tax records (simple bookkeeping)

yes

CZ

ROZPOCTOVE

Contributory organizations

no

CZ

NEZISKOVE

Non-profit organizations

no

SK — Slovakia

PODNIKATELIA+PU

Businesses — double-entry bookkeeping

yes

SK

PODNIKATELIA+DE

Businesses — single-entry bookkeeping

no


List of available organizations

You can get a list of supported countries and organization types recognized by a given installation as follows:

GET /admin/organization-type-list.xml

⚠️ Specify the extension .xml (or .json), or send the Accept header. Without this, the call will fail with error 404.

Example of a single record from the output:

<organization-type> 
<country-code>CZ</country-code>
<double-entry-bookkeeping>true</double-entry-bookkeeping>
<demo>true</demo>
<country>Česká republika</country>
<description>Společnosti s ručením omezeným, akciové společnosti, veřejné obchodní společnosti, komanditní společnost a fyzické osoby vedoucí účetnictví.</description>
<label>Podnikatelé - podvojné účetnictví</label>
<unique-code>PODNIKATELE+PU</unique-code>
<vat-payer-changeable>true</vat-payer-changeable>
</organization-type>

Use the value from country-code as the country parameter, and the value from unique-code as org-type. The demo flag indicates for which organization types use-demo=true can be used.


Related

Did this answer your question?