Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/organization
curl \
--request POST 'https://wyzio.app/api-v1/organization' \
--header "Content-Type: application/json" \
--data '{"name":"string","mainLanguage":{"id":42,"code":"string","name":"string","isMain":true},"currency":"string","templateCompanyBy":"NOGA_CODE","nogaCodeId":42,"templateOrganizationId":42,"startDate":"string","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":"string","fiscalYearEnd":"string","vatRuleType":"NONE","timesheets":true,"managingCompanyId":42,"id":42}'
Request examples
# Headers
# Payload
{
"name": "string",
"mainLanguage": {
"id": 42,
"code": "string",
"name": "string",
"isMain": true
},
"currency": "string",
"templateCompanyBy": "NOGA_CODE",
"nogaCodeId": 42,
"templateOrganizationId": 42,
"startDate": "string",
"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": "string",
"fiscalYearEnd": "string",
"vatRuleType": "NONE",
"timesheets": true,
"managingCompanyId": 42,
"id": 42
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}