einvoice_config_test
Validate e-invoice provider credentials before saving by testing authentication against the provider API. Supports xrechnung, sdi, ksef, and facturx providers to confirm the connection works.
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.
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) |