nfse_download_pdf
Get the PDF of an authorized NFS-e invoice, by invoice_id or by access_key. By default it returns a temporary signed download link (valid for one hour), because the PDF itself is large. With inline: true it returns the file content as a base64-encoded string instead. With type "nfe" or "nfce" it takes invoice_id (the DANFE or DANFCE comes only as a link).
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_download_pdf"
}
}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 |
| inline | No | true returns pdf_base64 instead of a link. Default false (link). | |
| access_key | No | The NFS-e access key. Either this or invoice_id (required for NFS-e when there is no invoice_id). | |
| invoice_id | No | UUID of the invoice (NFS-e, NF-e or NFC-e). Either this or access_key. |