{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beel-es/json-schema/beel-es-update-invoice-customization-request-schema.json",
  "title": "UpdateInvoiceCustomizationRequest",
  "description": "Partial update. Properties absent from the body are left unchanged; the logo is managed through the `logo` sub-resource.",
  "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/UpdateInvoiceCustomizationRequest",
  "type": "object",
  "properties": {
    "invoice_template_type": {
      "allOf": [
        {
          "$ref": "#/$defs/InvoiceTemplateType"
        }
      ],
      "description": "Template used to render the invoice PDF."
    },
    "invoice_accent_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$",
      "description": "Accent colour applied to the invoice PDF, in `#RRGGBB` format."
    },
    "invoice_language": {
      "allOf": [
        {
          "$ref": "#/$defs/Language"
        },
        {
          "description": "Language used to render the invoice PDF."
        }
      ]
    },
    "email_language": {
      "allOf": [
        {
          "$ref": "#/$defs/Language"
        },
        {
          "description": "Language used for the emails that deliver the invoice."
        }
      ]
    }
  },
  "$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"
      ]
    }
  }
}