{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-company-create-request-schema.json",
  "title": "CompanyCreateRequest",
  "description": "Create model for companies",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-openapi.json#/components/schemas/CompanyCreateRequest",
  "properties": {
    "customer_id": {
      "type": "string",
      "format": "uuid",
      "title": "Customer Id",
      "description": "Owning customer UUID"
    },
    "name": {
      "type": "string",
      "maxLength": 255,
      "title": "Name"
    },
    "team_size": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Team Size",
      "default": 0
    },
    "industry": {
      "type": "string",
      "maxLength": 128,
      "title": "Industry"
    },
    "is_onprem": {
      "type": "boolean",
      "title": "Is Onprem",
      "default": false
    },
    "website": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Website"
    },
    "logo_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Logo Url"
    },
    "address": {
      "type": "string",
      "title": "Address",
      "description": "Primary office address"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email",
      "description": "Company contact email"
    },
    "is_onboarded": {
      "type": "boolean",
      "title": "Is Onboarded",
      "default": false
    },
    "billing_tax_number": {
      "type": "string",
      "maxLength": 64,
      "title": "Billing Tax Number"
    },
    "billing_tax_office": {
      "type": "string",
      "maxLength": 128,
      "title": "Billing Tax Office"
    },
    "billing_address": {
      "type": "string",
      "title": "Billing Address",
      "description": "Billing address"
    },
    "billing_email": {
      "type": "string",
      "format": "email",
      "title": "Billing Email",
      "description": "Billing contact email"
    },
    "billing_phone_number": {
      "type": "string",
      "maxLength": 50,
      "title": "Billing Phone Number"
    },
    "billing_title": {
      "type": "string",
      "maxLength": 255,
      "title": "Billing Title"
    }
  },
  "type": "object",
  "required": [
    "customer_id",
    "name",
    "industry",
    "address",
    "email",
    "billing_tax_number",
    "billing_tax_office",
    "billing_address",
    "billing_email",
    "billing_phone_number",
    "billing_title"
  ]
}