nfse_substitute
Correct an authorized invoice by issuing a substitute. Only the service description, the purchase order and the notes can change: the customer, the competence date and the amount stay as issued (the tax authority refuses a substitute that changes them for MEI and Simples Nacional; to correct those, cancel the invoice and issue another). The original stays authorized until the substitute is authorized and only then becomes cancelled. The substitute uses a credit. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs.
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": {
"invoice_id": "<invoice_id>",
"description": "<description>"
},
"name": "nfse_substitute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | New notes; an empty text removes them | |
| confirm | No | true runs the action. Without it nothing changes and only a preview is returned. | |
| invoice_id | Yes | UUID of the authorized invoice to substitute | |
| description | Yes | Why the invoice is being substituted (15-255 chars) | |
| purchase_order | No | New purchase order; an empty text removes it | |
| service_description | No | New service description |