nfe_validate
Dry-run of an NF-e or a NFC-e: checks the data and returns the problems field by field (issues), without numbering, sending or charging anything. Issuing runs the same checks. valid only says the data is fine: warnings (when present) comes from the last SEFAZ check kept for the company and says it may not be able to issue (for example the SEFAZ answered 257, no state registration or not enabled), or that it was never checked. Warnings do not block. Homologação (test) only for now.
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>",
"nfe": "<nfe>"
},
"name": "nfe_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nfe | Yes | The NF-e as in POST /v1/invoices (camelCase, without companyId and type): recipient {taxId, name, indIeDest, stateRegistration?, email?, address{street, number, district, zip, cityCode, city, state}}, items[] {code, description, ncm, cfop, unit, quantity, unitPrice, tax? {csosn}}, payments[] {tPag, amount, card? {tpIntegra?, cnpj?, tBand?, cAut?}: left out, tPag 03, 04 and 17 go with tpIntegra 2}, natOp?, change?, additionalInfo?. The customer informs CFOP, NCM and CSOSN; Arquivix Notas calculates an estimate (Simples credit and approximate taxes). Phase 1: homologação only, Simples Nacional (CSOSN 102 or 400). For type "nfce" (consumer sale, model 65) put the NFC-e here instead: recipient? {taxId?, name?, email?, address? (needed for indPres 4)}, indPres? (1 in person, 4 delivery, 5 in person outside the store), items[], payments[] {tPag, amount, card? {tpIntegra?, cnpj?, tBand?, cAut?}}, change?, additionalInfo?; no natOp. The CPF/CNPJ of the consumer is optional but required above the limit of the state (R$ 10.000,00 by default). The NFC-e uses QR Code v3 (no CSC), has no correction letter and can be cancelled within 30 minutes. | |
| type | No | Which note to check: "nfe" (default) or "nfce" (consumer sale). | nfe |
| company_id | Yes | UUID of the issuing company. |