# Check Gmail e-invoices with Dynamic Document API, Sheets, Drive and DATEV

> Quick overview This workflow monitors supplier invoice emails in Gmail, validates PDF/XML e-invoices with Dynamic Document API, stores files in Google Drive, maintains an invoice register and supplier list in Google Sheets, sends payment-due reminders by email, and exports ready invoices monthly as a DATEV Buchungsstapel CSV for your accountant. How it works 1. Triggers when a new Gmail message matching has:attachment label:incoming-invoices arrives and downloads its attachments. 2. Splits each email into one item per PDF or XML attachment and validates each file with Dynamic Document API (E-Invoice → Validate) to detect e-invoices and extract invoice data. 3. Compares validated invoices against the Google Sheets invoice register and supplier list to skip duplicates and assign statuses like ready, newsupplier, onhold, invalid, noeinvoice, unchecked, or checkfailed. 4. Creates (or reuses) a monthly folder in Google Drive, uploads each invoice file, and appends a row to the Google Sheets

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