Templates / Re-check EU VAT numbers on Stripe invoices with VIES and notify finance via Gmail

Re-check EU VAT numbers on Stripe invoices with VIES and notify finance via Gmail

Ready for 3.0

by Melbin Francis ✓ · 2 views · created 2026-09-29 · Invoice Processing

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 22 nodes and runs on Stripe events (invoice.created). Along the way it connects Stripe and Gmail.

How it runs

Trigger: On Stripe events (invoice.created).

  1. Handle Each Invoice Once (Remove Duplicates): removes duplicate items
  2. VAT Rules (Edit Fields (Set)): sets 10 fields: seller_country, seller_vat_number, eu_country_codes…
  3. Read The Buyer (Stripe): get (customer)
  4. Which VAT Case Is This? (Code): runs custom JavaScript code
  5. Route The Case (Switch): routes items into 2 branches
  6. Build The VIES Question (Code): runs custom JavaScript code
  7. Decide The VAT Treatment (Code): runs custom JavaScript code
  8. Ask VIES Today (HTTP Request): calls an HTTP API (POST)
  9. Does The Treatment Change? (If): checks a condition and branches into true / false
  10. Read The VIES Answer (Code): runs custom JavaScript code

…plus 9 more steps. See the full node list below.

Services it uses

StripeGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

Quick overview This workflow triggers when Stripe drafts an invoice, re-checks the customer’s EU VAT number against the EU Commission’s VIES API, updates Stripe’s tax treatment or holds the draft when needed, writes the VIES result into invoice metadata, and…

Excerpt from Melbin Francis's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.