Baixar fatura (PDF ou boleto)
correios_fatura_pdfDownloads a Correios invoice or boleto as a PDF and saves it to disk using the invoice number, document type, and item data from the invoice list.
Instructions
Baixa a fatura sintética ou o boleto em PDF e salva em disco (GET /faturas/v1/faturas/{fatura}/{sintetico|boleto}/pdf).
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": {
"fatura": "<fatura>",
"tipo_documento": "<tipo_documento>",
"item_fatura": "<item_fatura>"
},
"name": "correios_fatura_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fatura | Yes | Número da fatura (campo 'fatura'/'id' em correios_faturas). | |
| documento | No | sintetico = fatura resumida em PDF; boleto = boleto em PDF. | sintetico |
| dr_fatura | No | DR da fatura (padrão: o da sessão). | |
| item_fatura | Yes | itemFatura (vem em correios_faturas, ex.: '001'). | |
| tipo_documento | Yes | tipoDocumento da fatura (vem em correios_faturas). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||