nfse_repeat
Issues a new NFS-e copying a previous one: same company, customer, service description, service code, municipality, amount, discount, deduction, purchase order and notes. Typical request: "emit the same invoice as last month for customer X". The previous note is identified by its invoice_id or access_key. Optional amount, description and competence_date replace the copied values (a new amount drops the copied discount and deduction); competence_date defaults to today (America/Sao_Paulo). It uses a credit like a new NFS-e and returns immediately with the queued status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nfse_repeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | New total in BRL. Defaults to the copied amount. | |
| access_key | No | Access key of the note to copy. Either this or invoice_id. | |
| invoice_id | No | UUID of the note to copy. Either this or access_key. | |
| description | No | New service description. Defaults to the copied one. | |
| competence_date | No | YYYY-MM-DD. Defaults to today (America/Sao_Paulo). | |
| idempotency_key | No | Repeat the same key to avoid issuing twice. |