{
        "type": "form",
        "dataSource": "/api/taxcore/config/{org_id}",
        "submitEndpoint": "/api/taxcore/config/{org_id}",
        "method": "POST",
        "sections": [
            {
                "title": "API Configuration",
                "fields": [
                    {"name": "api_base_url", "label": "API Base URL", "type": "url", "required": true, "placeholder": "https://api.taxcore.gov", "help": "TaxCore API endpoint URL"},
                    {"name": "org_tin", "label": "Organization TIN", "type": "text", "required": true, "pattern": "^[0-9]{9}$", "placeholder": "123456789", "help": "9-digit Tax Identification Number"},
                    {"name": "api_version", "label": "API Version", "type": "select", "required": true, "options": [
                        {"value": "v1", "label": "Version 1.0"},
                        {"value": "v2", "label": "Version 2.0 (Recommended)"}
                    ], "default": "v2"}
                ]
            },
            {
                "title": "Certificate Configuration",
                "fields": [
                    {"name": "certificate_file", "label": "Certificate File (.p12)", "type": "file", "required": true, "accept": ".p12,.pfx", "help": "Upload your TaxCore digital certificate"},
                    {"name": "certificate_password", "label": "Certificate Password", "type": "password", "required": true, "help": "Password for the certificate file"},
                    {"name": "certificate_expiry", "label": "Certificate Expiry Date", "type": "date", "readonly": true, "help": "Automatically detected from certificate"}
                ]
            },
            {
                "title": "Submission Settings",
                "fields": [
                    {"name": "auto_submit_invoices", "label": "Auto-submit Invoices", "type": "checkbox", "default": true, "help": "Automatically submit invoices when finalized"},
                    {"name": "auto_submit_receipts", "label": "Auto-submit Sales Receipts", "type": "checkbox", "default": true, "help": "Automatically submit POS receipts"},
                    {"name": "retry_max_attempts", "label": "Max Retry Attempts", "type": "number", "required": true, "min": 1, "max": 10, "default": 3, "help": "Maximum number of retry attempts for failed submissions"},
                    {"name": "retry_base_delay", "label": "Base Retry Delay (seconds)", "type": "number", "required": true, "min": 60, "max": 3600, "default": 300, "help": "Initial delay before retrying"}
                ]
            },
            {
                "title": "Environment",
                "fields": [
                    {"name": "is_sandbox", "label": "Sandbox Mode", "type": "checkbox", "default": false, "help": "Use sandbox environment for testing"},
                    {"name": "is_active", "label": "TaxCore Integration Active", "type": "checkbox", "default": true, "help": "Enable or disable TaxCore integration"}
                ]
            }
        ],
        "actions": [
            {"label": "Test Connection", "action": "taxcore:test-connection", "icon": "fa-plug", "type": "button", "class": "btn-secondary"},
            {"label": "Save Configuration", "type": "submit", "icon": "fa-save", "class": "btn-primary"}
        ],
        "validation": {
            "showErrors": "onSubmit",
            "scrollToError": true
        }
    }