einvoice_config_test
Test e-invoice provider credentials before saving by validating authentication against Xrechnung, SDI, KSEF, or FacturX APIs to confirm a working connection.
Instructions
Test e-invoice provider connection with given credentials before saving. Validates that the credentials can authenticate with the provider API. Supports: xrechnung (ZRE OAuth2), sdi (intermediary API or cert validation), ksef (session init), facturx (Chorus Pro OAuth2). ANAF uses a separate OAuth flow and cannot be tested here.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"config": "<config>"
},
"name": "einvoice_config_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Provider-specific credentials to test. xrechnung: {clientId, clientSecret}; sdi: {apiEndpoint, apiKey} or {certPassword}; ksef: {authToken, nip}; facturx: {clientId, clientSecret} | |
| provider | Yes | E-invoicing provider to test connection for | |
| companyId | No | Company UUID (uses default if not specified) |