{
        "type": "form",
        "dataSource": "/api/taxcore/configuration/{org_id}",
        "submitUrl": "/api/taxcore/configuration/{org_id}",
        "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": "required"
                    },
                    {
                        "key": "api_version",
                        "label": "API Version",
                        "type": "select",
                        "required": true,
                        "options": [
                            {"value": "v1", "label": "Version 1"},
                            {"value": "v2", "label": "Version 2"}
                        ],
                        "default": "v1"
                    }
                ]
            },
            {
                "title": "Certificate Configuration",
                "fields": [
                    {
                        "key": "certificate_file",
                        "label": "Certificate File (.pfx or .p12)",
                        "type": "file",
                        "accept": ".pfx,.p12",
                        "required": true
                    },
                    {
                        "key": "certificate_password",
                        "label": "Certificate Password",
                        "type": "password",
                        "required": true,
                        "encrypted": true
                    },
                    {
                        "key": "certificate_expiry",
                        "label": "Certificate Expiry Date",
                        "type": "date",
                        "readonly": true
                    }
                ]
            },
            {
                "title": "Submission Settings",
                "fields": [
                    {
                        "key": "auto_submit_invoices",
                        "label": "Auto-submit Invoices",
                        "type": "toggle",
                        "default": true,
                        "help": "Automatically submit invoices when finalized"
                    },
                    {
                        "key": "auto_submit_receipts",
                        "label": "Auto-submit Sales Receipts",
                        "type": "toggle",
                        "default": true,
                        "help": "Automatically submit POS receipts in real-time"
                    },
                    {
                        "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.0
                    }
                ]
            },
            {
                "title": "Environment",
                "fields": [
                    {
                        "key": "is_sandbox",
                        "label": "Sandbox Mode",
                        "type": "toggle",
                        "default": false,
                        "help": "Use TaxCore sandbox environment for testing"
                    },
                    {
                        "key": "is_active",
                        "label": "Active",
                        "type": "toggle",
                        "default": true,
                        "help": "Enable/disable TaxCore integration"
                    }
                ]
            }
        ],
        "actions": [
            {
                "label": "Test Connection",
                "icon": "fa-plug",
                "action": "taxcore:test-connection",
                "color": "info",
                "type": "button"
            },
            {
                "label": "Save Configuration",
                "icon": "fa-save",
                "type": "submit",
                "color": "primary"
            }
        ]
    }