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
| Name | Type | Description |
|---|---|---|
| invoice_number string required | string | Invoice number as shown in Outgoing invoices, from list_invoices. |
Request
curl https://cotlet.dev/api/v1/szamlazz-hu/invoices/invoice%20number/pdf \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("szamlazz-hu", "get_invoice_pdf", {"invoice_number":"invoice number"}) const result = await cotlet.call('szamlazz-hu', 'get_invoice_pdf', {"invoice_number":"invoice number"}); cotlet call szamlazz-hu get_invoice_pdf --data '{"invoice_number":"invoice number"}' Example response
{
"invoice_number": "ABC-2026-00142",
"file_name": "ABC-2026-00142.pdf",
"size_bytes": 48213,
"content_base64": "JVBERi0xLjQKJc..."
}