Task: Generate Chargebee invoices and upload to NextCloud

n8n workflow JSON:
{"nodes":[{"name":"Get Invoice PDF","type":"n8n-nodes-base.chargebee","position":[900,300],"parameters":{"invoiceId":"={{$node[\"Chargebee API\"].data[\"id\"]}}","operation":"pdfUrl"},"credentials":{"chargebeeApi":""},"typeVersion":1},{"name":"Chargebee API","type":"n8n-nodes-base.chargebee","position":[700,300],"parameters":{"filters":{"date":[{"value":"={{new Date(new Date().getFullYear(), new Date().getMonth()-1, 1).toISOString()}}"},{"value":"={{new Date(new Date().getFullYear(), new Date().getMonth(), 1).toISOString()}}","operation":"before"}],"total":[{}]},"maxResults":5},"credentials":{"chargebeeApi":""},"typeVersion":1},{"name":"NextCloud Write","type":"n8n-nodes-base.nextCloud","position":[1300,300],"parameters":{"path":"=invoices/{{new Date($data.date*1000).toISOString().split('T')[0]}} {{$data.billing_address.first_name}} {{$data.billing_address.last_name}}{{$data.billing_address.company?' - ' + $data.billing_address.company:''}}.pdf","binaryDataUpload":true},"credentials":{"nextCloudApi":""},"typeVersion":1},{"name":"Cron","type":"n8n-nodes-base.cron","position":[500,300],"parameters":{"triggerTimes":{"item":[{"hour":3,"mode":"everyMonth"}]}},"typeVersion":1},{"name":"Read File URL","type":"n8n-nodes-base.httpRequest","position":[1100,300],"parameters":{"url":"={{$data.pdfUrl}}","responseFormat":"file"},"typeVersion":1}],"connections":{"Cron":{"main":[[{"node":"Chargebee API","type":"main","index":0}]]},"Chargebee API":{"main":[[{"node":"Get Invoice PDF","type":"main","index":0}]]},"Read File URL":{"main":[[{"node":"NextCloud Write","type":"main","index":0}]]},"Get Invoice PDF":{"main":[[{"node":"Read File URL","type":"main","index":0}]]}}}