Problem
The ticket says “validate the VAT ID”. A number can be checked by format only, or online in the EU VIES registry, which is sometimes unavailable.
Question
Should the order be blocked when VIES does not answer?
Options
- A
Format check only
Fast and never blocks, but accepts made-up numbers.
- B
Format now, VIES in the background recommended
The order goes through, an invalid number flags the invoice for the accountant.
- C
Block until VIES confirms
Safest, but orders fail whenever VIES is down.
Recommended path
B. The checkout scenario “order completes in under 3 s” would fail with C, and B follows how the payment webhook already retries. Meanwhile I am working on the other scenarios of this ticket.
B. And email the accountant when an invoice is flagged.
Added the scenario “Invalid VAT ID flags the invoice and notifies the accountant”. Resuming.