Peppol ID and VAT checks in Google Sheets
A free Google Sheets add-on by GoRoute that checks a customer list at once: whether each customer is on the Peppol network, under which Peppol ID and access point, which documents it receives, and whether its EU VAT number is valid in VIES. No GoRoute account is needed. The answers are read live from the Peppol registers by GoRoute, a certified Peppol Access Point and SMP provider (POP000991), and from VIES, the European Commission's VAT number validation service.
For an overview, see the page on goroute.ai.
Installโ
- Install GoRoute Peppol Lookup from the Google Workspace Marketplace. It is free and needs no GoRoute account.
- Open a spreadsheet and choose Extensions โบ GoRoute Peppol Lookup โบ Formulas: how to use them (or Check selected
rows). Do this once in each spreadsheet: Google turns an add-on's functions on per spreadsheet, the first time one
of its menu items is used there. Until then a formula shows
#NAME?. - Type
=PEPPOL_LOOKUP,=PEPPOL_IDor=VAT_CHECKin any cell of that spreadsheet.
The three functionsโ
Each function takes a single value or a range, so a whole column is checked in one formula (up to 300 rows). The answers spill into the cells to the right; leave those cells empty.
PEPPOL_LOOKUPโ
=PEPPOL_LOOKUP(scheme_or_country, [id], [fields])
| You give | Example |
|---|---|
| A full Peppol ID | =PEPPOL_LOOKUP("0208:0403019261") |
| A scheme and an identifier | =PEPPOL_LOOKUP("0208", "0403019261") |
| A country and a VAT or company number | =PEPPOL_LOOKUP("BE", "BE0403019261") |
| A whole list | =PEPPOL_LOOKUP(A2:A200, B2:B200) |
It answers, by default: on Peppol (Yes or No), the Peppol ID, the name the customer publishes on Peppol, the access point
that receives for it (provider and seat ID, from the certificate its SMP publishes) and the document types it receives,
such as Invoice (BIS 3) or Credit note (BIS 3).
PEPPOL_IDโ
=PEPPOL_ID(country, vat_or_reg_no, [fields])
The Peppol ID of a business from its country and its VAT or company number. GoRoute works out the identifiers a business of that country is registered under and asks the Peppol network which one is live:
| Country | Asked, in order |
|---|---|
| Belgium | The enterprise number under 0208, then the VAT number under 9925 |
| Norway | The organisation number under 0192 |
| Australia | The ABN under 0151 |
| New Zealand | The NZBN under 0088 |
| Sweden | The organisation number under 0007 |
| Other EU countries and the United Kingdom | The VAT number under the country's VAT scheme (Germany 9930, the Netherlands 9944, France 9957 ...) |
Where the VAT number gives candidates, the Peppol Directory is also searched for businesses that list that VAT number
on their business card (a Dutch company registered under its KvK number is found this way). When none is live, the
function shows the identifier the rules give and marks it "No". For a country with no rule (Denmark, for example) the
answer is "Not supported": give the Peppol ID to PEPPOL_LOOKUP instead.
A Belgian enterprise number typed into a number cell loses its leading zero (403019261); the add-on puts it back.
VAT_CHECKโ
=VAT_CHECK(vat_number, [country], [fields])
Whether an EU VAT number is valid in VIES, with the name and address where the member state publishes them (Germany and
some others do not). Give the number with its country prefix (DE811907980), or the country as the second argument.
VIES covers the EU member states and Northern Ireland (XI); other numbers answer "Not supported".
Choosing the answersโ
The last argument picks the columns, in any order, separated by commas:
| Function | Fields |
|---|---|
PEPPOL_LOOKUP, PEPPOL_ID | status, id, name, country, invoice, credit_note, documents, access_point, provider, seat, endpoint, smp, expected_id, tried |
VAT_CHECK | status, name, address, date, vat |
For example =PEPPOL_LOOKUP("BE", B2, "status, access_point").
Check selected rowsโ
For a long list, select the rows and open Check selected rows from the add-on's menu under Extensions. Choose the column with the VAT number, company number or Peppol ID, the column with the country (or none, when the numbers carry their country prefix), which checks to run and where to write the answers. The add-on checks 25 rows at a time, writes headers into the first empty row 1 cells, and shows how many customers are on Peppol and how many VAT numbers are valid. You can stop at any time; the rows already checked keep their answers.
What the answers meanโ
| Answer | Meaning |
|---|---|
| Yes | On Peppol. invoice and credit_note say whether it receives each |
| No | Not on the Peppol network under the identifier asked |
| Valid / Invalid | What VIES answered for the VAT number |
| Unknown, try again | A register did not answer in time. Never a "No": check the row again later |
| Not supported | No rule or register covers this country or number |
| Invalid input | The cell does not hold a usable identifier; the reason follows |
Answers are kept for up to six hours in the spreadsheet's cache, so a sheet that recalculates does not ask again.
Limitsโ
- Up to 300 rows in one formula (Google gives a spreadsheet function 30 seconds); the sidebar takes any number of rows.
- GoRoute limits the number of checks it answers per hour from one internet address. Google runs every add-on from its own servers, so on a very busy hour a formula may answer "Unknown, try again" for a while.
Privacyโ
The add-on asks Google for three permissions: to read and write the spreadsheet it is used in, to show its sidebar, and to connect to GoRoute. It sends GoRoute only the identifiers in the cells you check (Peppol IDs, VAT and company numbers, countries): never your name, your email address, other cells or the spreadsheet itself. GoRoute processes the checks on its servers in the United States, keeps the public answers in a cache for at most a day and its technical logs for 30 days, and does not link the numbers you asked about to you. See section 3.9 of the privacy policy and the add-on terms.
Sending e-invoices to the customers you foundโ
GoRoute E-Invoicing for Google Workspace sends e-invoices from Google Sheets over Peppol, or by email with the e-invoice inside the PDF, checked against the official rules first.
Supportโ
Write to support@goroute.ai with the identifier you checked and the answer the add-on gave.