Creates a new organization based on another organization or template. Returns 200 on success, or 400 if the creation is not valid.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Organization name
-
Main language of the organization
-
ISO 4217 currency code
-
How to determine the template organization
Values are
NOGA_CODEorTEMPLATE_ORGANIZATION. -
NOGA economic activity code ID. Required when templateCompanyBy = NOGA_CODE
-
Template organization ID. Required when templateCompanyBy = TEMPLATE_ORGANIZATION
-
Start date (format dd/MM/yyyy)
-
Primary address for the organization
-
Fiscal year start date (format dd/MM/yyyy)
-
Fiscal year end date (format dd/MM/yyyy)
-
VAT rule type
Values are
NONE,AGREED_SERVICE,RECEIVED_COMPENSATION,NTDR_AGREED_SERVICE,NTDR_RECEIVED_COMPENSATION,FLAT_RATE_RECEIVED_COMPENSATION,FLAT_RATE_AGREED_SERVICE, orSIMPLE_TAX_RATE. -
Whether timesheets are enabled for this organization
-
Managing company (fiduciary) organization ID
curl \
--request POST 'https://wyzio.app/api-v1/organization' \
--header "Content-Type: application/json" \
--data '[{"name":"Acme Corp","mainLanguage":{"id":42,"code":"string","name":"string","isMain":true},"currency":"CHF","templateCompanyBy":"NOGA_CODE","nogaCodeId":12345678,"templateOrganizationId":12345678,"startDate":"01/01/2026","address":{"id":42,"name":"string","line1":"string","line2":"string","city":"string","region":{"id":42,"name":"string","code":"string","taxMode":"ANNUALLY"},"countryCode2":"string","postCode":"string","toTheAttentionOf":"string","position":42,"countryId":42,"houseNumber":"string","service":"string","dtbNumber":"string","cedNumber":"string","fiduciaryId":42,"inventoryLocation":true},"fiscalYearStart":"01/01/2026","fiscalYearEnd":"31/12/2026","vatRuleType":"EFFECTIVE","timesheets":false,"managingCompanyId":12345678}]'
# Headers
# Payload
[
{
"name": "Acme Corp",
"mainLanguage": {
"id": 42,
"code": "string",
"name": "string",
"isMain": true
},
"currency": "CHF",
"templateCompanyBy": "NOGA_CODE",
"nogaCodeId": 12345678,
"templateOrganizationId": 12345678,
"startDate": "01/01/2026",
"address": {
"id": 42,
"name": "string",
"line1": "string",
"line2": "string",
"city": "string",
"region": {
"id": 42,
"name": "string",
"code": "string",
"taxMode": "ANNUALLY"
},
"countryCode2": "string",
"postCode": "string",
"toTheAttentionOf": "string",
"position": 42,
"countryId": 42,
"houseNumber": "string",
"service": "string",
"dtbNumber": "string",
"cedNumber": "string",
"fiduciaryId": 42,
"inventoryLocation": true
},
"fiscalYearStart": "01/01/2026",
"fiscalYearEnd": "31/12/2026",
"vatRuleType": "EFFECTIVE",
"timesheets": false,
"managingCompanyId": 12345678
}
]
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}