nfe_repeat
Issue a new NF-e or NFC-e copying a previous one: same company, recipient, items, payments, nature of operation and additional information. Typical request: "emit the same note as last time". The previous note is identified by its invoice_id and type. It never copies the number, access key, protocol or date: the new note is numbered and dated when it is issued, and goes through the same checks as a new note (data such as prices are copied as they were). Optional additional_info replaces the copied text. It uses a credit like a new note and returns immediately with the queued status. 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": {
"invoice_id": "<invoice_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "nfe_repeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Kind of the note to copy: "nfe" (default) or "nfce". | nfe |
| invoice_id | Yes | UUID of the NF-e or NFC-e to copy | |
| additional_info | No | New additional information. Defaults to the copied one. | |
| idempotency_key | Yes | Repeat the same key to avoid issuing twice. |