# Send monthly Stripe invoice CSV reports via Gmail

> Quick Overview This workflow runs monthly (or manually) to export all paid Stripe invoices from the previous month, convert them into a structured CSV report, and email the file via Gmail. How it works 1. Runs on the 1st day of every month at 07:00 (or when executed manually). 2. Calculates the previous month’s start and end timestamps and builds a monthly filename. 3. Calls the Stripe Invoices API to fetch all paid invoices created within that date range, automatically paginating through all results. 4. Flattens the Stripe API response into individual invoice items and formats invoice, customer, address, VAT/tax, and payment fields while converting amounts from cents to euros. 5. Generates a CSV file named like stripeYYYY-MM.csv with a header row. 6. Sends an email through Gmail with the CSV attached. Setup 1. Add a Stripe API bearer token (HTTP Bearer Auth) and ensure it has permission to read invoices. 2. Configure Gmail OAuth2 credentials and set the recipient email address, subjec

- **Domain**: `n8n-workflow-20613.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/20613
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20613.n8n.io
- Documentation: https://n8n.io/workflows/20613
