nfse_get_download_url
Generate a temporary signed download URL for the PDF or XML of an authorized NFS-e invoice, by invoice_id or by access_key. The URL expires in one hour. With type "nfe" or "nfce" send invoice_id (the XML is the authorized nfeProc; the PDF is the DANFE, or the DANFCE of 80 mm for a NFC-e).
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": {
"format": "<format>"
},
"name": "nfse_get_download_url"
}
}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 |
| format | Yes | Document format to download | |
| 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. |