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