{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/phone-inc/main/json-schema/phone-inc-patch-v1-company-response-schema.json",
  "title": "PatchV1CompanyResponse",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/phone-inc-openapi-generated.yml#/components/schemas/PatchV1CompanyResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the company."
    },
    "name": {
      "type": "string",
      "description": "The registered company name."
    },
    "address": {
      "type": "string",
      "description": "Street address."
    },
    "city": {
      "type": "string",
      "description": "City."
    },
    "state": {
      "type": "string",
      "description": "State or region."
    },
    "zip": {
      "type": "string",
      "description": "Postal code."
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code."
    },
    "vat_id": {
      "type": "string",
      "description": "VAT registration number."
    },
    "requires_two_factor": {
      "type": "boolean",
      "description": "Whether employees must use two‑factor authentication."
    },
    "plan": {
      "type": "string",
      "description": "Read‑only subscription plan."
    },
    "entitlements": {
      "type": "object",
      "description": "Read‑only access decisions."
    },
    "entitlements.add_employees": {
      "type": "boolean",
      "description": "Allows creating another employee."
    },
    "entitlements.outbound_calls": {
      "type": "boolean",
      "description": "Controls the web outbound‑call upgrade prompt."
    },
    "entitlements.add_business_numbers": {
      "type": "boolean",
      "description": "Allows acquiring another business number."
    }
  }
}