Quick overview
This workflow lets users upload an invoice PDF, scan, or photo via an n8n form, extracts header fields and line items using tools.funwords.eu, optionally validates the supplier’s EU VAT number via VIES, and outputs one record per line item plus a downloadable CSV file.
How it works
- Receives an uploaded invoice file through an n8n Form trigger.
- Sends the file to tools.funwords.eu
/document/extract with a configurable list of fields to extract, including line items.
- If a supplier VAT number is present, calls tools.funwords.eu
/vat/validate (VIES) to validate it and retrieve the registered name when available.
- Normalizes the extracted invoice data (and VAT validation result when available) into a single structured invoice object.
- Expands the invoice into one output item per line item, repeating invoice-level fields on each row and listing any missing fields.
- Converts the line-item rows into a CSV file named
invoice-lines.csv for downstream storage or export.
Setup
- Create an API key at https://tools.funwords.eu/credits and add an n8n HTTP Header Auth credential with
Authorization: Bearer YOUR_KEY.
- Select that Header Auth credential in both HTTP Request steps that call tools.funwords.eu.
- Update the
fields list in the Settings step to match the invoice fields and line-item attributes you want to extract.
- Activate the workflow and use the Form trigger URL to upload invoices from your browser or share it with your team.
Requirements
- An API key for the document API at tools.funwords.eu (paid per call: $0.03 per invoice read, $0.01 per VAT check; a file that cannot be read is not charged). No other account is needed.
Additional info
Disclosure: the document API this workflow calls is run by SpellzCode, the author of this template. An AI model reads the invoice, so check amounts that matter before acting on them. Tested on n8n 2.47.4 with text PDFs in English, Dutch and German.