Export PDF invoices from SmartBill to Google Drive
This workflow automates the retrieval of invoice PDFs from the Smartbill API and saves them to Google Drive in a dynamically created folder based on last mon...
🔌 Nodes & Integrations Used (2)
📖 Implementation & Setup Guide
This workflow automates the retrieval of invoice PDFs from the Smartbill API and saves them to Google Drive in a dynamically created folder based on last month’s date. It also generates a range of invoice numbers, ensuring proper formatting, and uploads each PDF with a structured filename.
Overview
- **Trigger and Data Setup:**
- The workflow is manually triggered. It sets the invoice range (start and end numbers), invoice series, the parent Google Drive folder ID and the folder where to save the PDF files.
2. **Folder Handling:** - **Folder Name Calculation:** Calculates a default folder name based on last month’s date (formatted as `YYYY-MM`).
3. **Invoice Generation:** A code node generates invoice items by iterating over a specified range of numbers. Each invoice number is padded to custom number of digits (e.g., `0013`), and the invoice series and folder ID are attached to each item.
4. **Retrieving Invoice PDFs:** For each generated invoice, the Smartbill API is called (using an HTTP Request node) to retrieve the corresponding invoice PDF.
How to Use
- **Credentials:**
- Ensure you have configured the Smartbill API (HTTP Basic Auth) and Google API credentials correctly.
- **Parameter Adjustment:**
- Modify the `SetData` node if you need to change the invoice range, series, or target parent folder.
- **Execution:**
- Click **Execute Workflow** to run the workflow manually.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Export PDF invoices from SmartBill to Google Drive.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Docs, PDF & OCR Workflows
View All in Docs, PDF & OCR →Add articles to a Notion list by accessing a Discord slash comma
This workflow allows you to add articles to a Notion reading list by accessing a Discord slash command. Prerequisites - A Notion account and [credentials](),...
Adobe PDF Services API Automation
Production-ready n8n automation template for Adobe PDF Services API Automation built by AhiXLight. Seamlessly connects HTTP Request, Execute Workflow Trigger, Dropbox with 20 configured nodes.
Adobe PDF Services API Workflow
Production-ready n8n automation template for Adobe PDF Services API Workflow built by AhiXLight. Seamlessly connects HTTP Request, Execute Workflow Trigger, Dropbox with 20 configured nodes.
AI Brand Voice Content Generator
Production-ready n8n automation template for AI Brand Voice Content Generator built by AhiXLight. Seamlessly connects Lm Chat Open Ai, Information Extractor, HTTP Request with 27 configured nodes.