Invoice ninja: Download PDF invoice

I’ve sucessfully connected n8n to my self hosted Invoice ninja instance. I’ve been using Zapier to download PDF files. To access the file, you need to provide the url and an invite key, for example: This url downloads the PDF file without logging in.

Does anyone know how to achieve the same with n8n? I’ve used the correct node, but it does not return the invite key.

tldr: how do I download a PDF file from invoice ninja?

Welcome to the community @legion

According to the docs, you can do a GET to /download/{invoiceId} with the invoice ID to download it. Sadly, the node does not support such functionality, but you can use the HTTP node instead.

curl -X GET -H "X-Ninja-Token: TOKEN"

1 Like

wow, thank you so much!
i’d never have figured that out myself. hopefully someone else will also benefit from your solution.