{
        "type": "form",
        "dataSource": "/api/taxcore/configuration/{org_id}",
        "submitEndpoint": "/api/taxcore/configuration",
        "sections": [
            {
                "title": "API Configuration",
                "fields": [
                    {"key": "api_base_url", "label": "API Base URL", "type": "url", "required": true, "placeholder": "https://taxcore-api.example.com", "validation": "url"},
                    {"key": "org_tin", "label": "Organization TIN", "type": "text", "required": true, "placeholder": "1234567890", "validation": "uuid"},
                    {"key": "api_version", "label": "API Version", "type": "select", "options": ["v1", "v2"], "default": "v1"}
                ]
            },
            {
                "title": "Certificate Configuration",
                "fields": [
                    {"key": "certificate_file", "label": "Certificate File", "type": "file", "accept": ".pfx,.p12", "required": true, "help": "PKCS#12 certificate file"},
                    {"key": "certificate_password", "label": "Certificate Password", "type": "password", "encrypted": true, "required": true},
                    {"key": "certificate_expiry", "label": "Certificate Expiry", "type": "date", "readonly": true, "computed": "extractExpiryFromCertificate"}
                ]
            },
            {
                "title": "Submission Settings",
                "fields": [
                    {"key": "auto_submit_invoices", "label": "Auto-submit Invoices", "type": "toggle", "default": true, "help": "Automatically submit finalized invoices to TaxCore"},
                    {"key": "auto_submit_receipts", "label": "Auto-submit Receipts", "type": "toggle", "default": true, "help": "Automatically submit sales receipts to TaxCore"},
                    {"key": "retry_max_attempts", "label": "Max Retry Attempts", "type": "number", "min": 1, "max": 10, "default": 5},
                    {"key": "retry_base_delay", "label": "Base Retry Delay (minutes)", "type": "number", "min": 1, "max": 60, "default": 5},
                    {"key": "retry_backoff_multiplier", "label": "Backoff Multiplier", "type": "number", "min": 1, "max": 5, "step": 0.5, "default": 2}
                ]
            },
            {
                "title": "Environment",
                "fields": [
                    {"key": "is_sandbox", "label": "Sandbox Mode", "type": "toggle", "default": false, "help": "Use sandbox environment for testing"},
                    {"key": "is_active", "label": "Active", "type": "toggle", "default": true, "help": "Enable TaxCore integration"}
                ]
            }
        ],
        "actions": [
            {"label": "Test Connection", "action": "taxcore:test-connection", "icon": "fa-plug", "type": "button", "class": "btn-outline"},
            {"label": "Save Configuration", "type": "submit", "icon": "fa-save", "class": "btn-primary"}
        ],
        "validation": {
            "api_base_url": {"pattern": "^https?://", "message": "Must be a valid HTTP/HTTPS URL"},
            "org_tin": {"pattern": "^[0-9a-fA-F-]{36}$", "message": "Must be a valid UUID"},
            "retry_max_attempts": {"min": 1, "max": 10, "message": "Must be between 1 and 10"}
        }
    }