Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

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

When something happens in a connected app, it handles email using Gmail, Stripe.

What it does

## Re-check EU VAT numbers before each Stripe invoice Stripe checks a customer's EU VAT number with VIES once, when it is added. Stripe Tax reverse-charges any correctly formatted number, valid or not. A buyer who deregisters keeps getting 0% invoices, and the unpaid VAT becomes yours. ### How it works 1. When Stripe drafts an invoice, the buyer is sorted: a cross-border EU business, a reverse charge that no longer applies, a domestic reverse charge to confirm, or nothing to do. Customers marked exempt are never touched. 2. Cross-border numbers are asked of VIES again, today, and the registered name is compared with the Stripe customer where the member state publishes it. 3. Valid keeps reverse charge. Invalid removes it, or holds the draft under Stripe Tax, where only removing the tax ID stops it. A different company name, a VIES error or a long outage holds the draft so it cannot finalise. 4. The VIES answer is written onto the invoice as proof, and finance gets an email saying what to do. ### Setup 1. Add a Stripe credential and a Gmail credential. 2. Open VAT Rules: your country, your own VAT number and the finance address. A mistyped VAT number makes VIES reject every check, so drafts are held, never cleared. 3. Activate. Stripe finalises a draft about an hour after this runs. ### Good to know Germany does not publish names in VIES. Greek names come back in Greek script. Both are confirmed on the number alone and say so.

The steps

  1. When A Stripe Invoice Is Drafted
  2. Handle Each Invoice Once
  3. VAT Rules
  4. Read The Buyer
  5. Which VAT Case Is This?
  6. Route The Case
  7. Not A Reverse Charge Sale
  8. Build The VIES Question
  9. Ask VIES Today
  10. Read The VIES Answer
  11. Did VIES Answer?
  12. Any Tries Left?
  13. Hold The Draft While VIES Is Down
  14. Keep The Case Once Held

22 steps in total.

Similar automations