{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beel-es/json-schema/beel-es-invoice-customization-schema.json",
  "title": "InvoiceCustomization",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beel-es-companybranding-api-openapi.yml#/components/schemas/InvoiceCustomization",
  "type": "object",
  "required": [
    "company_id",
    "invoice_template_type",
    "invoice_accent_color",
    "invoice_language",
    "email_language"
  ],
  "properties": {
    "company_id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier (UUID) of the company this customization belongs to."
    },
    "invoice_template_type": {
      "$ref": "#/$defs/InvoiceTemplateType"
    },
    "invoice_accent_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$",
      "description": "Accent colour applied to the invoice PDF, in `#RRGGBB` format."
    },
    "invoice_language": {
      "$ref": "#/$defs/Language"
    },
    "email_language": {
      "$ref": "#/$defs/Language"
    },
    "logo_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Public URL of the logo, or `null` when none is set."
    }
  },
  "$defs": {
    "InvoiceTemplateType": {
      "type": "string",
      "description": "Invoice PDF template. `MODERN_TABLE` is a structured table layout for\nproduct/service lines; `PROFESSIONAL_SERVICE` is a text-based layout.\n",
      "enum": [
        "MODERN_TABLE",
        "PROFESSIONAL_SERVICE"
      ]
    },
    "Language": {
      "type": "string",
      "description": "Supported languages: `es` Spanish, `en` English, `ca` Catalan.\n",
      "enum": [
        "es",
        "en",
        "ca"
      ]
    }
  }
}