Apply the EU reverse charge at checkout from a VAT ID
A software company in the Netherlands sells subscriptions to businesses across the EU. A buyer with a valid VAT ID in another member state is invoiced without VAT under the reverse charge, but only if the seller can show the ID was valid at the time of sale. Checking by hand after the order means refunds, corrected invoices and no proof. Here the checkout checks the ID when it is entered: a valid ID fills the billing details and removes the VAT, an invalid one keeps VAT on, and a registry outage is treated as "not verified yet" and not as a rejection.
The billing form sends the ID to the shop backend as soon as the field is left.
API call
Check it in VIES
One call with vatNumbers and the seller's requesterVatNumber. Malformed IDs are rejected before any lookup; outages come back as error, never as invalid.
valid: true in another member state: 0% reverse charge. valid: false or no answer: VAT stays on.
Result
Order and invoice
Billing details filled from the registry, the consultation number stored with the order and printed on the invoice.
Wired into the checkout backend: when the VAT ID field loses focus the server calls the API synchronously with the seller's own number as requesterVatNumber and returns the result to the form. A scheduled run rechecks IDs that could not be verified, and can revalidate the whole customer base every quarter.
Result
The checkout decides the VAT treatment
Valid VAT ID
CheckoutBilling detailschecked in 1 s
VAT IDATU61234567Valid in VIES · Austria
Company nameLindwurm Analytik GmbHFilled from the registry
Billing addressBahnhofstrasse 14, AT-9020 KlagenfurtFilled from the registry
Contact e-maileinkauf@lindwurm-analytik.example
The buyer typed the ID with a space; the response returns it normalised. Name and address come from the registry, so the invoice matches the registration.
Order summary
Scheduling suite, Team plan, 12 months
EUR 1,080.00
Onboarding session, remote
EUR 220.00
Net
EUR 1,300.00
VAT 0% · reverse charge
EUR 0.00
Total to pay
EUR 1,300.00
Pay by cardPay by bank transfer
Reverse charge appliedConsultation WAPIAAAAbK3fQ7Lm stored with the order
Invalid VAT ID
CheckoutBilling detailschecked in 1 s
VAT IDIT01234567890This VAT ID is not registered in VIES. Correct it, or continue with VAT.
Company nameOfficina Baldessari S.r.l.Typed by the buyer
Billing addressVia dei Tigli 8, 38122 TrentoTyped by the buyer
Contact e-mailacquisti@baldessari.example
VIES answered valid: false, a definitive answer. The order can still be placed, with VAT.
Order summary
Scheduling suite, Team plan, 12 months
EUR 1,080.00
Onboarding session, remote
EUR 220.00
Net
EUR 1,300.00
VAT 22% · Italy
EUR 286.00
Total to pay
EUR 1,586.00
Pay by cardPay by bank transfer
VAT kept onNo reverse charge without a valid VAT ID
Registry unavailable
CheckoutBilling detailsregistry did not answer
VAT IDDE298765432We could not verify this ID right now. VAT is charged and refunded once the ID is confirmed.
Company nameRotbuche Werkzeugbau GmbHTyped by the buyer
Billing addressGerberstrasse 21, 73728 EsslingenTyped by the buyer
VIES consultation WAPIAAAAbK3fQ7Lm on 2026-11-10 09:41 UTC
Description
Net EUR
VAT
Amount EUR
Scheduling suite, Team plan, 12 months
1,080.00
0%
1,080.00
Onboarding session, remote
220.00
0%
220.00
Total
1,300.00
0.00
1,300.00
Reverse charge: VAT to be accounted for by the recipient (Article 196 of Directive 2006/112/EC).
Shop adminVAT ID checks3 today
VAT ID checks · Tue 10 Nov
Time (UTC)
VAT ID entered
Registry answer
Registered name
Consultation no.
Checkout result
09:41
ATU 61234567
validAustria
Lindwurm Analytik GmbH
WAPIAAAAbK3fQ7Lm
Reverse charge, 0% VAT
10:02
IT01234567890
not validItaly
none
none
VAT 22% charged
10:26
DE298765432
no answerGermany
none
none
VAT 19% charged, recheck queued
Three checkouts shown as one sample run; the live checkout sends one ID per call. Two definitive answers were charged, the outage was not.
Highlighted values are read from the API response. The data is a sample in the API's real output shape; names and figures are illustrative.
Call
The call behind it
One request with this input produces the 3 records the screen above is drawn from. Prices are the ones on the API page; records that fail or come back empty are not charged.
Input · POST /v2/actors/sfoln~vat-number-validator/run-sync-get-dataset-items