Get invoice PDF

The invoice PDF as Számlázz.hu produced it, base64 encoded.

GET https://cotlet.dev/api/v1/szamlazz-hu/invoices/{invoice_number}/pdf

read

Returns the PDF copy of one issued invoice, base64 encoded, with its file name and size. Use it to attach the invoice to an email or save it to storage. It returns the document as issued; it does not change the invoice or send anything.

Parameters

Parameters: get_invoice_pdf
NameTypeDescription
invoice_number string required string Invoice number as shown in Outgoing invoices, from list_invoices.

Request

cURL
curl https://cotlet.dev/api/v1/szamlazz-hu/invoices/invoice%20number/pdf \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("szamlazz-hu", "get_invoice_pdf", {"invoice_number":"invoice number"})
Node.js
const result = await cotlet.call('szamlazz-hu', 'get_invoice_pdf', {"invoice_number":"invoice number"});
CLI
cotlet call szamlazz-hu get_invoice_pdf --data '{"invoice_number":"invoice number"}'

Example response

JSON

{
  "invoice_number": "ABC-2026-00142",
  "file_name": "ABC-2026-00142.pdf",
  "size_bytes": 48213,
  "content_base64": "JVBERi0xLjQKJc..."
}

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.