Create company
POST/v1/companies
Creates a company (head office or branch). To create a branch, provide parent_company_id — the CNPJ must share the same prefix as the head office. Only CNPJ companies can have branches. The first company created in the organization is flagged as is_default automatically.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 429
- 500
Company created.
Request body failed validation.
Missing or invalid bearer token.
Token is valid but lacks permission for this operation.
Resource not found in the current organization.
Request body failed validation.
Rate limit exceeded.
Unexpected server error.