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: invoiceninja.com/invite/hmlqsdlra3ihj1plcfkj1hcoxk1hseiw. 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?
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 ninja.dev/api/v1/download/1 -H "X-Ninja-Token: TOKEN"