{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/itseasy-co/json-schema/itseasy-co-patch-customer-portal-config-request-schema.json",
  "title": "PatchCustomerPortalConfigRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/itseasy-co-core-openapi-generated.yml#/components/schemas/PatchCustomerPortalConfigRequest",
  "type": "object",
  "properties": {
    "payment_methods_enabled": {
      "type": "boolean"
    },
    "accepted_payment_methods": {
      "type": "array",
      "description": "list of strings such as \"card\", \"bank_account\""
    },
    "subscriptions_enabled": {
      "type": "boolean"
    },
    "allow_plan_switch": {
      "type": "boolean"
    },
    "allow_quantity_updates": {
      "type": "boolean"
    },
    "cancellations_enabled": {
      "type": "boolean"
    },
    "cancellation_mode": {
      "type": "string",
      "description": "\"end_of_period\" or \"immediately\""
    },
    "cancellation_proration_enabled": {
      "type": "boolean"
    },
    "cancellation_reasons_enabled": {
      "type": "boolean"
    },
    "cancellation_reasons": {
      "type": "array",
      "description": "list of strings"
    },
    "return_url": {
      "type": "string",
      "description": "URL to return after portal actions"
    },
    "invoice_history_enabled": {
      "type": "boolean"
    }
  }
}