Import one n8n workflow: it reads the active contacts in Xero, checks each supplier's register record and insolvency notices, validates an EU VAT number in VIES and marks the ones a person should look at. It is a workflow you run yourself, not a Xero app and not in Xero's app store.
Download xero-supplier-check.json and import it in n8n. It has six nodes: a daily schedule, the n8n Xero node reading contacts, a Code node that picks contacts not yet checked, two HTTP Request nodes that call the Prometiam API, and a Code node that decides what to flag. It never writes to Xero and it does not stop a payment: it produces a list for a person.
The workflow was checked against the node definitions of n8n-nodes-base 2.49.7 (the npm package, downloaded 26 November 2026) and was not run against a Xero organisation. The two Code nodes ran in plain Node on 26 November 2026 against the recorded API answers below and two invented contacts. Prometiam publishes an n8n node of its own; this workflow uses plain HTTP Request nodes so that it needs nothing installed.
A UK company has both, issued by different bodies, and neither is derived from the other. A check of one says nothing about the other.
| Number | Issued by | A check shows | It does not show |
|---|---|---|---|
| UK company number | Companies House (the register) | That a company is registered under that number, its legal name, status (active, dissolved and so on), address and, through this workflow, whether insolvency notices are linked to it. | That it trades, can pay, or that the person sending the invoice acts for it. Nothing about its VAT. |
| UK VAT number | HMRC | GOV.UK's "Check a UK VAT number" service (read 26 November 2026) tells you whether a UK VAT registration number is valid and the name and address of the business it is registered to. It works from the number, not from a name search. | That the business is the company in Companies House, unless you compare the names. Prometiam does not check UK VAT numbers. |
| EU VAT number | The member state, checked in VIES | That the number is registered for VAT in that state at the moment of the check, with a name and address where the state gives them (GET /vat/{number}, 1 credit). | Who is behind it, or solvency. A 503 means the state's service was down and the number was not checked. VIES has no Norwegian or Swiss numbers, and UK VAT is out of its scope after Brexit (Northern Ireland, prefix XI, is in). |
The API shows the split. On 26 November 2026 the company check for Tesco PLC (country=GB, company_number=00445790) answered, among other fields, with the register status and no VAT number, because the register publishes none and Prometiam builds none for the UK:
{ "company_number": "00445790", "company_name": "TESCO PLC", "status": "active", "status_group": "active",
"vat_number": null, "vat_number_source": null, "register": "Companies House", ... }
So a UK supplier is checked by its company number. A Xero contact that holds only a UK VAT number cannot be checked by this workflow; use the GOV.UK service by hand for it. A contact with an EU VAT number and no company number gets the VIES check only.
Xero's official Node SDK (the npm package xero-node, version 20.3.0, read on 26 November 2026) defines the contact fields this workflow reads: ContactID, Name, ContactStatus (ACTIVE, ARCHIVED or GDPRREQUEST), CompanyNumber (the company registration number), TaxNumber (which the SDK describes as the ABN, GST number, VAT number or tax ID number, depending on the region of the Xero organisation) and Addresses, each with a Country written as text. It also defines IsSupplier, which Xero sets itself once a bill has been entered against the contact and which cannot be set through the API. Xero's developer documentation (developer.xero.com, "Accounting API Contacts") is the authority; read it before you change the workflow.
What was read is the n8n Xero node, from the package: resources Contact and Invoice; contact operations Create, Get, Get Many and Update; for Get Many the options Include Archived, Order By, Sort Order and Where (a free-text filter passed to Xero); a Tax Number field on create; and no Xero trigger node in the package. That is why the workflow starts on a schedule rather than on a "new contact" event. A webhook start would need n8n's generic Webhook node and Xero's own validation and signature rules, which are not covered here.
| Node | Type | What it does |
|---|---|---|
| Every morning | Schedule Trigger | Daily at 07:00. |
| Read Xero contacts | Xero, Contact, Get Many | Returns all contacts. Choose your organisation in the node. |
| Pick contacts to check | Code | Skips archived contacts and any contact already checked (kept in the workflow's static data), takes at most 25 a run, and reads country, company number and tax number into one clean item each. |
| Company check | HTTP Request | GET /companies/check?country=..&company_number=..&checks=record,insolvency. 1 credit for the record, 2 for the insolvency part. |
| VIES VAT check | HTTP Request | GET /vat/{tax number}. 1 credit when VIES answers; an error is free. |
| Decide | Code | One line per supplier: review true or false and a list of flags. |
Both HTTP nodes are set to continue on error, so a supplier with no number or a VIES outage becomes a flag, not a stopped run. They use an n8n Header Auth credential named "Prometiam API key" with the header Authorization and the value Bearer <your key>.
The "Pick contacts to check" node reads ContactID, ContactStatus, Addresses[].Country, CompanyNumber and TaxNumber, each with a lower-case fallback. Those are the names Xero's SDK gives the fields; the fallback is there because the n8n node writes its own field for the tax number as taxNumber. Run the workflow once by hand, open the output of "Read Xero contacts", and confirm the names in the Code node against what Xero returned. A country written as a name is mapped for a short list of common English country names; anything else is not checked and shows as a flag.
MAX_PER_RUN at the top of the first Code node is 25. The first run therefore checks 25 of your existing contacts and the next days the rest; lower it to spend less.On 26 November 2026 the Tesco PLC company check returned data.insolvency.status none with markets listing the sixteen insolvency markets, and meta.credits.charged 3. The VIES call for the Spanish number ESA28015865 returned "is_valid": true (name and address null: VIES gave none, so the answer carries registry_match from the Spanish register as a separate, clearly labelled field). 1 credit.
Run through the "Decide" node with two invented contacts, the first with these recorded answers, the output was:
[ { "name": "TESCO PLC", "country": "GB", "companyNumber": "00445790", "taxNumber": "", "review": false, "flags": [] },
{ "name": "Telefonica SA", "country": "ES", "companyNumber": "", "taxNumber": "ESA28015865", "review": true,
"flags": ["not_checked: needs a country and a company number on the contact"] } ]
The second line is the point of the flag list: a supplier that could not be checked is marked for review, never passed silently. The other flags the node can raise are register_status_<status> when the register status group is not active, insolvency_notice_found, vat_invalid_in_vies, and vat_not_confirmed when VIES gave no answer. Informational lines (name in Xero differs from the register, country without insolvency notices) do not set review.
A supplier costs up to 3 credits for the company check plus 1 for the VIES check: up to 4. With 25 suppliers a run that is at most 100 credits. A part that did not run is not charged and an error is free. The 14-day trial gives 500 credits (card required, nothing charged during it); Starter is EUR 9.99 for 1,000 credits a month, Professional EUR 29.99 for 10,000, Scale EUR 99.99 for 50,000.
not_available, which is not a clear result. A "none" is not proof of solvency. Where insolvency sources are credited: Contains CVR data (Erhvervsstyrelsen), CC BY 4.0.sanctions among its checks.Companies House data: Contains public sector information licensed under the Open Government Licence v3.0. Source: Companies House, UK. Insolvency: Contains CVR data (Erhvervsstyrelsen), CC BY 4.0.
The free trial lasts 14 days and includes 500 credits. A card is required and nothing is charged during the trial; it then continues as Starter (EUR 9.99/month) unless you cancel.