nfse_review
Resolves one invoice stuck in status "manual_review" (the portal did not confirm whether the NFS-e exists). Only valid in that status; otherwise it fails and tells the current status. Actions: "retry" sends the invoice back to reconciliation with the same DPS: the portal is asked for that DPS before anything is sent, so it never issues a second NFS-e; it ends authorized, rejected, or back in review if the portal is still silent. It is safe. "discard" asks the portal about the DPS: if the NFS-e exists the invoice becomes authorized; only when the portal confirms it was never registered is the invoice rejected (credit refunded); otherwise it stays in review. A discarded invoice leaves its number (DPS) skipped. When the invoice error code is DPS_NUMBER_USED_BY_OTHER_NFSE the portal already has that DPS number on ANOTHER NFS-e (error_message says which one): this invoice was never issued, "retry" is refused, and "discard" rejects it and refunds the credit; the sale can then be issued again as a new invoice with a new number. "discard" leaves the invoice number skipped, while "retry" does not. The platform also checks the portal automatically every 30 minutes. The result is asynchronous: the final status shows on the invoice later. With type "nfe" or "nfce": "retry" asks the SEFAZ for the note by its access key (for an NF-e in reconciliation_required or manual_review) and "discard" drops a rejected NF-e so it can be fixed and sent again.
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>",
"action": "<action>"
},
"name": "nfse_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Kind of invoice: "nfse" (default, services), "nfe" (goods, model 55) or "nfce" (sale to the consumer, model 65). NF-e and NFC-e are homologação only and need their own release for the account. With "nfe" or "nfce" use invoice_id, not access_key. | nfse |
| action | Yes | "retry" (safe, same DPS) or "discard" (skips the number) | |
| invoice_id | Yes | UUID of the invoice in manual_review |