einvoice_config_save
Create or update an e-invoice provider configuration with API credentials to enable e-invoicing for a company. Set provider-specific JSON settings for xrechnung, sdi, ksef, or facturx.
Instructions
Create or update an e-invoice provider configuration for a company. Use this to enable a provider and set API credentials. Config is provider-specific JSON: xrechnung requires {clientId, clientSecret} for ZRE API; sdi requires {certPath, certPassword} or {apiEndpoint, apiKey} for intermediary; ksef requires {authToken, nip}; facturx requires {clientId, clientSecret, siret} for Chorus Pro. ANAF config is managed separately via ANAF tokens.
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>"
},
"name": "einvoice_config_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | Provider-specific configuration as JSON object | |
| enabled | No | Whether this provider is active (default: true) | |
| provider | Yes | E-invoicing provider to configure | |
| companyId | No | Company UUID (uses default if not specified) |