Get invoice PDF

The invoice as a PDF file, base64 encoded.

MCP tool ifirma_read → get_invoice_pdf

read

Returns the PDF of one issued invoice as base64 with its file name. Set duplicate to true for a duplicate, which carries the date it was downloaded.

Parameters

Parameters: get_invoice_pdf
NameTypeDescription
invoice_id integer required integer Invoice ID from list_invoices.
duplicate boolean boolean true for a duplicate. Default: false.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ifirma_read",
    "arguments": {
      "operation": "get_invoice_pdf",
      "arguments": {
        "invoice_id": 1
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invoice_id": 7020118,
    "file_name": "41-2026.pdf",
    "content_base64": "JVBERi0xLjQKJcfsj6IK..."
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.