Skip to main content

companyCreate

Create a new company with complete business information and organizational structure.

Key Features:

  • Comprehensive company profile creation with validation
  • Automatic assignment of unique identifiers and system relationships
  • Support for hierarchical organizational structures
  • Integration with external systems and data sources

Business Rules:

  • Company name must be unique within the organization
  • Required fields must be provided and validated
  • Tax numbers and legal identifiers are verified for uniqueness
  • Parent-child relationships are established automatically

Error Scenarios:

  • COMPANY_ALREADY_EXISTS_ERROR: When company with same name/tax number exists
  • VALIDATION_ERROR: When required fields are missing or invalid
  • PARENT_COMPANY_NOT_FOUND_ERROR: When specified parent company doesn't exist
  • CREATE_ERROR: When system fails to create company record

Use Cases:

  • New business onboarding
  • Subsidiary and branch creation
  • Partner and vendor registration
  • Organizational restructuring

AUTH: Role=[user.OWNER]

companyCreate(
input: CreateCompanyInput!
): Company!

Arguments

companyCreate.input ● CreateCompanyInput! non-null input

Type

Company object

Company entity representing business organizations and corporate entities.

External entity from the company service that provides company identification and business information. Used as a reference for company-specific attributes and organizational relationships within the attribute system.