# Close monthly Stripe revenue with Stripe, ZUGFeRD, Google Sheets, Gmail and DATEV

> 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, and file everything in Google Drive and email your accountant with Gmail. How it works 1. Runs on a schedule on the 1st of every month and determines the month to close (previous month by default, or a manual YYYY-MM override). 2. Retrieves paid Stripe invoices, Stripe credit notes, and Stripe balance transactions for the month (including expanded payment and source details). 3. Fetches up to 100 line items per document from Stripe and maps invoices and credit notes into EN 16931 invoice data, flagging documents that cannot be mapped. 4. Sends the mapped documents to Dynamic Document API to render ZUGFeRD/Factur-X PDF e-invoices in a single batch and collects per-document render results. 5. Reconciles Stripe balance activity agains

- **Domain**: `n8n-workflow-22379.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/22379
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22379.n8n.io
- Documentation: https://n8n.io/workflows/22379
