nfe_settings_update
Set the NF-e and NFC-e settings of a company: state registration (IE, validated for the state of the company; leave it out to use the IE the SEFAZ has for the CNPJ when there is exactly one enabled) plus optional defaults (default_series for the NF-e, nfce_default_series for the NFC-e). The CRT follows the tax regime of the company (Simples Nacional 1, MEI 4); send crt only to override it. Returns the settings, what is still missing and registrationWarning when the SEFAZ cadastro says the IE will be refused.
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": {
"company_id": "<company_id>"
},
"name": "nfe_settings_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crt | No | CRT: 1 Simples Nacional, 4 MEI. Só para trocar o que vem do regime da empresa. | |
| company_id | Yes | UUID of the company | |
| default_csosn | No | CSOSN padrão: "102" (sem crédito) ou "400" (não tributada). | |
| default_nat_op | No | Natureza da operação padrão, ex.: "Venda de mercadoria". | |
| default_origin | No | Origem padrão da mercadoria, de 0 a 8; 0 = nacional. | |
| default_series | No | Série padrão da NF-e, de 0 a 999. | |
| state_registration | No | IE, digits. Optional: left out, the IE found at the SEFAZ is used (when there is exactly one enabled) | |
| nfce_default_series | No | Série padrão da NFC-e, de 0 a 999. |