Company management¶
Creating a company¶
PUT /admin/zalozeni-firmy
URL parameters:
Parameter |
Description |
|---|---|
|
required, display name of the new company |
|
seed with demo data (CZ + PODNIKATELE+PU combination only) |
|
legislation |
|
organization type — for CZ: |
|
company registration number — auto-fills more fields (VAT payer status, registered seat, file reference, …) from the ARES registry |
|
VAT ID |
Success: 201, new company URL in the Location header.
Restoring from backup¶
Backup: GET /c/{db_name}/backup (Accept: application/x-winstrom-backup
or application/octet-stream).
Restore: PUT /c/{db_name}/restore?name=Company — body = raw backup file
bytes; the target company must not already exist (else “Company
‘restored_company’ already exists”).
Test-mode restore (&forTesting=1) — flags (each enabled=1 by default
unless explicitly set to 0): disableEet (turn off EET reporting),
disableAutoSendMail (turn off auto document emailing), disableWebHooks
(deregister all webhooks), skipZurnal (don’t restore change history),
skipChangelog (don’t restore Changes API history).
PUT /c/db_name/restore?name=Company&forTesting=1&disableAutoSendMail=0&skipZurnal
Company identifier and listing companies¶
See Identifiers and data types — “Company identifier” section.
Company settings¶
A dedicated evidence /nastaveni (Company > Settings in the app).
GET /c/{company}/nastaveni.xml?detail=full
Returns multiple <nastaveni> records — settings are versioned by
effective date (like a changelog), not a single row.
To add a new settings version effective from a date, reference the version
it’s based on via <puvodniNastaveni><id>1</id></puvodniNastaveni> and
<platiOdData>...</platiOdData>; unlisted fields stay the same as the
referenced version:
XML |
JSON |
|---|---|
<nastaveni>
<puvodniNastaveni><id>1</id></puvodniNastaveni>
<platiOdData>2021-12-29</platiOdData>
<uliceNazev>Relocated Street</uliceNazev>
</nastaveni>
|
{
"winstrom": {
"nastaveni": [
{
"puvodniNastaveni": {"id": "1"},
"platiOdData": "2021-12-29",
"uliceNazev": "Relocated Street"
}
]
}
}
|
To insert a new earliest settings version before the current first one,
use prvniNastaveni=true + prvniNastaveniPlatiDoData= (end date for
the new first version; the app auto-sets this as the existing first
version’s new platiOdData), nested inside puvodniNastaveni:
<nastaveni>
<puvodniNastaveni>
<id>1</id>
<prvniNastaveni>true</prvniNastaveni>
<prvniNastaveniPlatiDoData>2026-12-22</prvniNastaveniPlatiDoData>
</puvodniNastaveni>
</nastaveni>
If prvniNastaveniPlatiDoData does not precede the existing initial
settings’ validity, the server returns 400 with code
nastaveniVytvorPrvniNastNeplatneDatum.
Warning
puvodniNastaveni, prvniNastaveni and
prvniNastaveniPlatiDoData are import-only — they do not appear in
/nastaveni/properties and are not returned on export.
Try with ?dry-run=true first. Overview of validity periods only:
GET /c/{company}/nastaveni.xml?detail=custom:id,platiOdData.
Source: podpora.flexibee.eu.