Close monthly Stripe revenue with Stripe, ZUGFeRD, Google Sheets, Gmail and DATEV
UnknownWhat this workflow does
This workflow has 32 nodes and runs on a schedule (every month at 06:00). Along the way it connects Google Sheets, Google Drive, Gmail and Dynamic Document Api (community). It also calls api.stripe.com over HTTP.
How it runs
Trigger: On a schedule (every month at 06:00).
- Close settings (Edit Fields (Set)): sets 29 fields: seller_name, seller_vat_id, seller_tax_number…
- Month to close (Code): runs custom JavaScript code
- Get paid invoices (HTTP Request): calls api.stripe.com
- Get credit notes (HTTP Request): calls api.stripe.com
- Get balance transactions (HTTP Request): calls api.stripe.com
- Documents of the month (Code): runs custom JavaScript code
- Any documents this month? (If): checks a condition and branches into true / false
- Get lines with tax rates (HTTP Request): calls an HTTP API
- Reconcile with Stripe balance (Code): runs custom JavaScript code
- Map to EN (Code): runs custom JavaScript code
…plus 21 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
HTTP calls to: api.stripe.com
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @dynamic-document-api/n8n-nodes-dynamic-document-api is verified or supports 3.0 (used in Render e-invoices as a batch, Get rendered e-invoices, Render month report).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Dynamic Document Api
@dynamic-document-api/n8n-nodes-dynamic-document-api.dynamicDocumentApi - Google Sheets
n8n-nodes-base.googleSheets - Convert to File
n8n-nodes-base.convertToFile - Google Drive
n8n-nodes-base.googleDrive - Gmail
n8n-nodes-base.gmail
From the author
Quick overview Runs monthly to pull paid invoices, credit notes and balance transactions from Stripe, render EN 16931 ZUGFeRD/Factur-X e-invoices with Dynamic Document API, reconcile payments, refunds and VAT, write a journal to Google Sheets, CSV and DATEV,…